Changeset 2733 for trunk/gui/scripts/nanovisviewer.tcl
- Timestamp:
- Dec 14, 2011, 10:28:10 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/nanovisviewer.tcl
r2671 r2733 767 767 } 768 768 } 769 770 # The colormap may have changed. Resync the slicers with the colormap. 771 set vols [CurrentVolumes -cutplanes] 772 SendCmd "volume data state $_settings($this-volume) $vols" 773 774 # Adjust the cutplane for only the first component in the topmost volume 775 # (i.e. the first volume designated in the field). 776 set vol [lindex $vols 0] 777 foreach axis {x y z} { 778 # Turn off cutplanes for all volumes 779 SendCmd "cutplane state 0 $axis" 780 if { $_settings($this-${axis}cutplane) } { 781 # Turn on cutplane for this particular volume and set the position 782 SendCmd "cutplane state 1 $axis $vol" 783 set pos [expr {0.01*$_settings($this-${axis}cutposition)}] 784 SendCmd "cutplane position $pos $axis $vol" 785 } 786 } 769 787 } 770 788 … … 909 927 updatetransferfuncs 910 928 } 911 912 # Sync the state of slicers913 set vols [CurrentVolumes -cutplanes]914 foreach axis {x y z} {915 SendCmd "cutplane state $_settings($this-${axis}cutplane) $axis $vols"916 set pos [expr {0.01*$_settings($this-${axis}cutposition)}]917 set vol [lindex $vols 0]918 SendCmd "cutplane position $pos $axis $vol"919 }920 SendCmd "volume data state $_settings($this-volume) $vols"921 929 set _buffering 0; # Turn off buffering. 922 930 # Actually write the commands to the server socket. If it fails, we don't
Note: See TracChangeset
for help on using the changeset viewer.