- Timestamp:
- Nov 17, 2014, 6:26:46 AM (10 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkisosurfaceviewer.tcl
r4735 r4745 990 990 # Reset the camera and other view parameters 991 991 $_arcball quaternion [ViewToQuaternion] 992 InitSettings -ortho 992 993 DoRotate 993 994 PanCamera 994 995 set _first "" 995 InitSettings -xgrid -ygrid -zgrid -axismode \ 996 -axesvisible -axislabels -axisminorticks -ortho 996 InitSettings -background \ 997 -xgrid -ygrid -zgrid -axismode \ 998 -axesvisible -axislabels -axisminorticks 997 999 #SendCmd "axis lformat all %g" 998 1000 StopBufferingCommands … … 2190 2192 2191 2193 SendCmd "cutplane add $tag" 2194 SendCmd "cutplane color [Color2RGB $itk_option(-plotforeground)] $tag" 2192 2195 SendCmd "cutplane visible $style(-cutplanesvisible) $tag" 2193 2196 -
trunk/gui/scripts/vtkvolumeviewer.tcl
r4744 r4745 691 691 } 692 692 # Determine limits for each axis. 693 foreach axis { x y z v} {693 foreach axis { x y z } { 694 694 foreach { min max } [$dataobj limits $axis] break 695 695 if {"" != $min && "" != $max} { … … 1019 1019 } 1020 1020 DoRotate 1021 InitSettings -volumeoutline -background \ 1021 PanCamera 1022 set _first "" 1023 InitSettings -background \ 1022 1024 -xgrid -ygrid -zgrid -axisflymode \ 1023 1025 -axesvisible -axislabels -axisminorticks 1024 PanCamera1025 }1026 1027 SendCmd "imgflush"1026 StopBufferingCommands 1027 SendCmd "imgflush" 1028 StartBufferingCommands 1029 } 1028 1030 set _first "" 1029 1031 … … 1119 1121 -volumeambient -volumediffuse -volumespecularlevel \ 1120 1122 -volumespecularexponent -volumeblendmode -volumethickness \ 1121 -volume opacity -volumequality-volumevisible \1123 -volumelighting -volumeopacity -volumequality -volumeoutline -volumevisible \ 1122 1124 -cutplanesvisible \ 1123 1125 -xcutplaneposition -ycutplaneposition -zcutplaneposition \ … … 1125 1127 1126 1128 if { $_reset } { 1127 InitSettings -volumelighting1128 1129 SendCmd "camera reset" 1129 1130 SendCmd "camera zoom $_view(-zoom)" … … 2120 2121 5,1 $itk_component(yCutScale) -fill y \ 2121 2122 4,2 $itk_component(zCutButton) -anchor e -padx 2 -pady 2 \ 2122 5,2 $itk_component(zCutScale) -fill y \2123 5,2 $itk_component(zCutScale) -fill y 2123 2124 2124 2125 blt::table configure $inner r* c* -resize none … … 2234 2235 -color BCGYR 2235 2236 -lighting 1 2237 -opacity 0.5 2236 2238 -outline 0 2237 2239 -visible 1 … … 2239 2241 array set styles [$dataobj style $cname] 2240 2242 set _settings($cname-volumelighting) $styles(-lighting) 2243 set _settings($cname-volumeopacity) [expr $styles(-opacity) * 100] 2241 2244 set _settings($cname-volumeoutline) $styles(-outline) 2242 2245 set _settings($cname-volumevisible) $styles(-visible) … … 2245 2248 2246 2249 SendCmd "outline add $tag" 2250 SendCmd "outline color [Color2RGB $itk_option(-plotforeground)] $tag" 2247 2251 SendCmd "outline visible $styles(-outline) $tag" 2248 2252 2249 2253 SendCmd "$_cutplaneCmd add $tag" 2254 SendCmd "$_cutplaneCmd color [Color2RGB $itk_option(-plotforeground)] $tag" 2250 2255 SendCmd "$_cutplaneCmd visible 0 $tag" 2251 2256 2252 2257 SendCmd "volume add $tag" 2253 2258 SendCmd "volume lighting $styles(-lighting) $tag" 2259 SendCmd "volume opacity $styles(-opacity) $tag" 2254 2260 SendCmd "volume visible $styles(-visible) $tag" 2255 2261
Note: See TracChangeset
for help on using the changeset viewer.