Changeset 4321 for trunk/gui/scripts/mapviewer.tcl
- Timestamp:
- Apr 6, 2014, 5:59:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/mapviewer.tcl
r4318 r4321 83 83 protected method Pan {option x y} 84 84 protected method Rebuild {} 85 protected method Receive Dataset{ args }85 protected method ReceiveMapInfo { args } 86 86 protected method ReceiveImage { args } 87 87 protected method Rotate {option x y} … … 134 134 private variable _motion 135 135 private variable _sendEarthFile 0 136 private variable _useServerManip 1136 private variable _useServerManip 0 137 137 } 138 138 … … 170 170 # 171 171 $_parser alias image [itcl::code $this ReceiveImage] 172 $_parser alias dataset [itcl::code $this ReceiveDataset]172 $_parser alias map [itcl::code $this ReceiveMapInfo] 173 173 $_parser alias camera [itcl::code $this camera] 174 174 … … 846 846 847 847 # 848 # Receive Dataset--849 # 850 itcl::body Rappture::MapViewer::Receive Dataset{ args } {848 # ReceiveMapInfo -- 849 # 850 itcl::body Rappture::MapViewer::ReceiveMapInfo { args } { 851 851 if { ![isconnected] } { 852 852 return … … 855 855 switch -- $option { 856 856 "coords" { 857 foreach { x y z } [lrange $args 1 end] break 858 puts stderr "Coords: $x $y $z" 857 set len [llength $args] 858 if {$len < 4} { 859 puts stderr "Coords out of range" 860 } elseif {$len < 6} { 861 foreach { x y z } [lrange $args 1 end] break 862 puts stderr "Coords: $x $y $z" 863 } else { 864 foreach { x y z pxX pxY } [lrange $args 1 end] break 865 puts stderr "Coords($pxX,$pxY): $x $y $z" 866 } 859 867 } 860 868 "names" { 861 869 foreach { name } [lindex $args 1] { 862 #puts stderr "layer: $name"870 puts stderr "layer: $name" 863 871 } 864 872 } 865 873 default { 866 error "unknown datasetoption \"$option\" from server"874 error "unknown map option \"$option\" from server" 867 875 } 868 876 }
Note: See TracChangeset
for help on using the changeset viewer.