Changeset 4046 for trunk/gui/scripts/vtkvolumeviewer.tcl
- Timestamp:
- Nov 12, 2013 5:14:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkvolumeviewer.tcl
r4045 r4046 730 730 foreach {min max} $limits(v) break 731 731 if { ![info exists _limits($cname)] } { 732 set vmin $min 733 set vmax $max 732 set _limits($cname) [list $min $max] 734 733 } else { 735 if { $vmin > $min } { 734 foreach {vmin vmax} $_limits($cname) break 735 if { $min < $vmin } { 736 736 set vmin $min 737 737 } 738 if { $ vmax < $max } {738 if { $max > $vmax } { 739 739 set vmax $max 740 740 } 741 }742 set _limits($cname) [list $vmin $vmax]741 set _limits($cname) [list $vmin $vmax] 742 } 743 743 } 744 744 } … … 1366 1366 "volumeVisible" { 1367 1367 set bool $_settings(volumeVisible) 1368 set _settings($_current-volumeVisible) 1368 set _settings($_current-volumeVisible) $bool 1369 1369 foreach tag [GetDatasetsWithComponent $_current] { 1370 1370 SendCmd "volume visible $bool $tag"
Note: See TracChangeset
for help on using the changeset viewer.