Changeset 2450 for trunk/gui/scripts
- Timestamp:
- Aug 30, 2011, 10:11:26 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkcontourviewer.tcl
r2425 r2450 72 72 protected method FixSettings {what {value ""}} 73 73 protected method Pan {option x y} 74 protected method Pick {x y} 74 75 protected method Rebuild {} 75 76 protected method ReceiveDataset { args } … … 314 315 bind $itk_component(view) <ButtonRelease-2> \ 315 316 [itcl::code $this Pan release %x %y] 317 318 bind $itk_component(view) <ButtonRelease-3> \ 319 [itcl::code $this Pick %x %y] 316 320 317 321 # Bindings for panning via keyboard … … 803 807 set option [lindex $args 0] 804 808 switch -- $option { 805 " value" {809 "scalar" { 806 810 set option [lindex $args 1] 807 811 switch -- $option { 808 812 "world" { 809 foreach { x y z value } [lrange $args 2 end] break810 puts stderr "world x=$x y=$y z=$z value=$value "813 foreach { x y z value tag } [lrange $args 2 end] break 814 puts stderr "world x=$x y=$y z=$z value=$value tag=$tag" 811 815 } 812 816 "pixel" { 813 foreach { x y value } [lrange $args 2 end] break814 puts stderr "pixel x=$x y=$y value=$value "817 foreach { x y value tag } [lrange $args 2 end] break 818 puts stderr "pixel x=$x y=$y value=$value tag=$tag" 815 819 } 816 820 } 821 } 822 "vector" { 823 set option [lindex $args 1] 824 switch -- $option { 825 "world" { 826 foreach { x y z vx vy vz tag } [lrange $args 2 end] break 827 puts stderr "world x=$x y=$y z=$z value=$vx $xy $vz tag=$tag" 828 } 829 "pixel" { 830 foreach { x y vx vy vz tag } [lrange $args 2 end] break 831 puts stderr "pixel x=$x y=$y value=$vx $xy $vz tag=$tag" 832 } 833 } 834 } 835 "names" { 836 foreach { name } [lindex $args 1] { 837 puts stderr "Dataset: $name" 838 } 817 839 } 818 840 default { … … 1035 1057 } 1036 1058 } 1059 } 1060 1061 itcl::body Rappture::VtkContourViewer::Pick {x y} { 1062 foreach tag [CurrentDatasets -visible] { 1063 SendCmd "dataset getscalar pixel $x $y $tag" 1064 } 1037 1065 } 1038 1066
Note: See TracChangeset
for help on using the changeset viewer.