Changeset 5666 for branches/1.4/gui/scripts
- Timestamp:
- Jun 5, 2015, 3:27:12 PM (9 years ago)
- Location:
- branches/1.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.4
- Property svn:mergeinfo changed
/trunk merged: 4337-4338,5664
- Property svn:mergeinfo changed
-
branches/1.4/gui/scripts/vtkglyphviewer.tcl
r5660 r5666 1733 1733 Rappture::Combobox $inner.colormap -width 10 -editable no 1734 1734 } 1735 1736 $inner.colormap choices insert end [GetColormapList] 1735 $inner.colormap choices insert end [GetColormapList -includeNone] 1737 1736 $itk_component(colormap) value "BCGYR" 1738 1737 bind $inner.colormap <<Value>> \ … … 2152 2151 array set style { 2153 2152 -color BCGYR 2153 -constcolor white 2154 -colormode vmag 2154 2155 -edgecolor black 2155 2156 -edges 0 … … 2167 2168 -wireframe 0 2168 2169 } 2170 set $style(-constcolor) $itk_option(-plotforeground) 2169 2171 set numComponents [$dataobj numComponents $comp] 2170 2172 if {$numComponents == 3} { … … 2172 2174 set style(-orientglyphs) 1 2173 2175 set style(-scalemode) "vmag" 2176 set style(-colormode) "vmag" 2174 2177 } else { 2175 2178 set style(-shape) "sphere" 2176 2179 set style(-orientglyphs) 0 2177 2180 set style(-scalemode) "scalar" 2181 set style(-colormode) "scalar" 2178 2182 } 2179 2183 array set style [$dataobj style $comp] … … 2215 2219 2216 2220 SendCmd "outline add $tag" 2217 SendCmd "outline color [Color2RGB $ itk_option(-plotforeground)] $tag"2221 SendCmd "outline color [Color2RGB $style(-constcolor)] $tag" 2218 2222 SendCmd "outline visible $style(-outline) $tag" 2219 2223 set _settings(-glyphoutline) $style(-outline) … … 2235 2239 set _settings(-glyphscale) $style(-gscale) 2236 2240 2241 if {$style(-colormode) == "constant" || $style(-color) == "none"} { 2242 SendCmd "glyphs colormode constant {} $tag" 2243 set _settings(-colormapvisible) 0 2244 set _settings(-colormap) "none" 2245 } else { 2246 SendCmd "glyphs colormode $style(-colormode) $_curFldName $tag" 2247 set _settings(-colormapvisible) 1 2248 set _settings(-colormap) $style(-color) 2249 SetCurrentColormap $style(-color) 2250 } 2251 $itk_component(colormap) value $_settings(-colormap) 2252 set _colorMode $style(-colormode) 2237 2253 # constant color only used if colormode set to constant 2238 SendCmd "glyphs color [Color2RGB $ itk_option(-plotforeground)] $tag"2254 SendCmd "glyphs color [Color2RGB $style(-constcolor)] $tag" 2239 2255 # Omitting field name for gorient and smode commands 2240 2256 # defaults to active scalars or vectors depending on mode … … 2252 2268 SendCmd "glyphs opacity $style(-opacity) $tag" 2253 2269 set _settings(-glyphopacity) [expr $style(-opacity) * 100.0] 2254 SetCurrentColormap $style(-color)2255 2270 SendCmd "glyphs wireframe $style(-wireframe) $tag" 2256 2271 set _settings(-glyphwireframe) $style(-wireframe)
Note: See TracChangeset
for help on using the changeset viewer.