- Timestamp:
- Apr 28, 2015, 7:10:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkglyphviewer.tcl
r5336 r5339 2152 2152 -color white 2153 2153 -colormap BCGYR 2154 -color Mode vmag2154 -colormode vmag 2155 2155 -edgecolor black 2156 2156 -edges 0 … … 2160 2160 -normscale 1 2161 2161 -opacity 1.0 2162 -orient Glyphs 12162 -orientglyphs 1 2163 2163 -outline 0 2164 2164 -ptsize 1.0 2165 2165 -quality 1 2166 -scale Mode vmag2166 -scalemode vmag 2167 2167 -shape arrow 2168 2168 -wireframe 0 … … 2172 2172 if {$numComponents == 3} { 2173 2173 set style(-shape) "arrow" 2174 set style(-orient Glyphs) 12175 set style(-scale Mode) "vmag"2176 set style(-color Mode) "vmag"2174 set style(-orientglyphs) 1 2175 set style(-scalemode) "vmag" 2176 set style(-colormode) "vmag" 2177 2177 } else { 2178 2178 set style(-shape) "sphere" 2179 set style(-orient Glyphs) 02180 set style(-scale Mode) "scalar"2181 set style(-color Mode) "scalar"2179 set style(-orientglyphs) 0 2180 set style(-scalemode) "scalar" 2181 set style(-colormode) "scalar" 2182 2182 } 2183 2183 array set style [$dataobj style $comp] 2184 # Backwards compat with camel case style option 2185 if { [info exists style(-orientGlyphs)] } { 2186 set style(-orientglyphs) $style(-orientGlyphs) 2187 array unset style -orientGlyphs 2188 } 2189 # Backwards compat with camel case style option 2190 if { [info exists style(-scaleMode)] } { 2191 set style(-scalemode) $style(-scaleMode) 2192 array unset style -scaleMode 2193 } 2184 2194 if { $dataobj != $_first } { 2185 2195 set style(-opacity) 1 … … 2234 2244 set _settings(-colormap) "none" 2235 2245 } else { 2236 SendCmd "glyphs colormode $style(-color Mode) $_curFldName $tag"2246 SendCmd "glyphs colormode $style(-colormode) $_curFldName $tag" 2237 2247 set _settings(-colormapvisible) 1 2238 2248 set _settings(-colormap) $style(-colormap) … … 2240 2250 } 2241 2251 $itk_component(colormap) value $_settings(-colormap) 2242 set _colorMode $style(-color Mode)2252 set _colorMode $style(-colormode) 2243 2253 # constant color only used if colormode set to constant 2244 2254 SendCmd "glyphs color [Color2RGB $style(-color)] $tag" 2245 2255 # Omitting field name for gorient and smode commands 2246 2256 # defaults to active scalars or vectors depending on mode 2247 SendCmd "glyphs gorient $style(-orient Glyphs) {} $tag"2248 set _settings(-glyphorient) $style(-orient Glyphs)2249 SendCmd "glyphs smode $style(-scale Mode) {} $tag"2250 set _settings(-glyphscalemode) $style(-scale Mode)2251 $itk_component(scaleMode) value "[$itk_component(scaleMode) label $style(-scale Mode)]"2257 SendCmd "glyphs gorient $style(-orientglyphs) {} $tag" 2258 set _settings(-glyphorient) $style(-orientglyphs) 2259 SendCmd "glyphs smode $style(-scalemode) {} $tag" 2260 set _settings(-glyphscalemode) $style(-scalemode) 2261 $itk_component(scaleMode) value "[$itk_component(scaleMode) label $style(-scalemode)]" 2252 2262 SendCmd "glyphs quality $style(-quality) $tag" 2253 2263 SendCmd "glyphs lighting $style(-lighting) $tag"
Note: See TracChangeset
for help on using the changeset viewer.