Changeset 4431
- Timestamp:
- Jun 25, 2014 2:28:42 PM (10 years ago)
- Location:
- branches/1.3/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3/gui/scripts/vtkglyphviewer.tcl
r4340 r4431 119 119 # heightmaps displayed. 120 120 private variable _currentColormap "" 121 private variable _currentOpacity ""122 121 123 122 private variable _dataset2style ;# maps dataobj-component to transfunc … … 2094 2093 2095 2094 if { $_changed(glyphOpacity) } { 2096 set style(-opacity) $_settings(glyphOpacity)2095 set style(-opacity) [expr $_settings(glyphOpacity) * 0.01] 2097 2096 } 2098 2097 if { $_changed(colormap) } { … … 2102 2101 $itk_component(colormap) value $style(-color) 2103 2102 } 2104 set _currentOpacity $style(-opacity)2105 2103 SendCmd "glyphs add $style(-shape) $tag" 2106 2104 SendCmd "glyphs edges $style(-edges) $tag" … … 2129 2127 SendCmd "glyphs linewidth $style(-linewidth) $tag" 2130 2128 SendCmd "glyphs ptsize $style(-ptsize) $tag" 2131 SendCmd "glyphs opacity $ _currentOpacity$tag"2132 set _settings(glyphOpacity) $style(-opacity)2129 SendCmd "glyphs opacity $style(-opacity) $tag" 2130 set _settings(glyphOpacity) [expr $style(-opacity) * 100.0] 2133 2131 SetCurrentColormap $style(-color) 2134 2132 SendCmd "glyphs wireframe $style(-wireframe) $tag" 2135 2133 set _settings(glyphWireframe) $style(-wireframe) 2136 set _settings(glyphOpacity) [expr $style(-opacity) * 100.0]2137 2134 } 2138 2135 -
branches/1.3/gui/scripts/vtkisosurfaceviewer.tcl
r4429 r4431 122 122 private variable _currentColormap "" 123 123 private variable _currentNumContours -1 124 private variable _currentOpacity ""125 124 126 125 private variable _dataset2style ;# maps dataobj-component to transfunc … … 354 353 $itk_component(contour) select 355 354 Rappture::Tooltip::for $itk_component(contour) \ 356 " Don't displaythe isosurface"355 "Hide the isosurface" 357 356 pack $itk_component(contour) -padx 2 -pady 2 358 357 … … 365 364 } 366 365 Rappture::Tooltip::for $itk_component(cutplane) \ 367 "Show /Hide cutplanes"366 "Show the cutplanes" 368 367 pack $itk_component(cutplane) -padx 2 -pady 2 369 368 … … 1720 1719 -showvalue off \ 1721 1720 -command [itcl::code $this AdjustSetting -isosurfaceopacity] 1722 1723 label $inner.scale_l -text "Scale" -font "Arial 9"1724 ::scale $inner.scale -from 1 -to 100 -orient horizontal \1725 -variable [itcl::scope _settings(-contourscale)] \1726 -width 10 \1727 -showvalue off \1728 -command [itcl::code $this AdjustSetting -contourscale]1729 1721 1730 1722 itk_component add field_l { … … 2210 2202 2211 2203 if { $_changed(-isosurfaceopacity) } { 2212 set style(-opacity) $_settings(-isosurfaceopacity)2204 set style(-opacity) [expr $_settings(-isosurfaceopacity) * 0.01] 2213 2205 } 2214 2206 if { $_changed(-numcontours) } { … … 2222 2214 $itk_component(colormap) value $style(-color) 2223 2215 } 2224 set _currentOpacity $style(-opacity)2225 2216 if { $_contourList(numLevels) != $style(-levels) } { 2226 2217 set _settings(-numcontours) $style(-levels) … … 2252 2243 SendCmd "contour3d linecolor [Color2RGB $style(-edgecolor)] $tag" 2253 2244 SendCmd "contour3d linewidth $style(-linewidth) $tag" 2254 SendCmd "contour3d opacity $ _currentOpacity$tag"2255 set _settings(-isosurfaceopacity) $style(-opacity)2245 SendCmd "contour3d opacity $style(-opacity) $tag" 2246 set _settings(-isosurfaceopacity) [expr $style(-opacity) * 100.0] 2256 2247 SetCurrentColormap $style(-color) 2257 2248 SendCmd "contour3d wireframe $style(-wireframe) $tag" 2258 2249 set _settings(-isosurfacewireframe) $style(-wireframe) 2259 set _settings(-isosurfaceopacity) [expr $style(-opacity) * 100.0]2260 2250 } 2261 2251
Note: See TracChangeset
for help on using the changeset viewer.