Changeset 5664
- Timestamp:
- Jun 5, 2015, 3:11:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkglyphviewer.tcl
r5659 r5664 2150 2150 set tag $dataobj-$comp 2151 2151 array set style { 2152 -color white2153 -co lormap BCGYR2152 -color BCGYR 2153 -constcolor white 2154 2154 -colormode vmag 2155 2155 -edgecolor black … … 2168 2168 -wireframe 0 2169 2169 } 2170 set $style(-co lor) $itk_option(-plotforeground)2170 set $style(-constcolor) $itk_option(-plotforeground) 2171 2171 set numComponents [$dataobj numComponents $comp] 2172 2172 if {$numComponents == 3} { … … 2212 2212 } 2213 2213 if { $_changed(-colormap) } { 2214 set style(-color map) $_settings(-colormap)2214 set style(-color) $_settings(-colormap) 2215 2215 } 2216 2216 if { $_currentColormap == "" } { 2217 $itk_component(colormap) value $style(-color map)2217 $itk_component(colormap) value $style(-color) 2218 2218 } 2219 2219 2220 2220 SendCmd "outline add $tag" 2221 SendCmd "outline color [Color2RGB $style(-co lor)] $tag"2221 SendCmd "outline color [Color2RGB $style(-constcolor)] $tag" 2222 2222 SendCmd "outline visible $style(-outline) $tag" 2223 2223 set _settings(-glyphoutline) $style(-outline) … … 2239 2239 set _settings(-glyphscale) $style(-gscale) 2240 2240 2241 if {$style(-colormode) == "constant" || $style(-color map) == "none"} {2241 if {$style(-colormode) == "constant" || $style(-color) == "none"} { 2242 2242 SendCmd "glyphs colormode constant {} $tag" 2243 2243 set _settings(-colormapvisible) 0 … … 2246 2246 SendCmd "glyphs colormode $style(-colormode) $_curFldName $tag" 2247 2247 set _settings(-colormapvisible) 1 2248 set _settings(-colormap) $style(-color map)2249 SetCurrentColormap $style(-color map)2248 set _settings(-colormap) $style(-color) 2249 SetCurrentColormap $style(-color) 2250 2250 } 2251 2251 $itk_component(colormap) value $_settings(-colormap) 2252 2252 set _colorMode $style(-colormode) 2253 2253 # constant color only used if colormode set to constant 2254 SendCmd "glyphs color [Color2RGB $style(-co lor)] $tag"2254 SendCmd "glyphs color [Color2RGB $style(-constcolor)] $tag" 2255 2255 # Omitting field name for gorient and smode commands 2256 2256 # defaults to active scalars or vectors depending on mode
Note: See TracChangeset
for help on using the changeset viewer.