Changeset 5670 for trunk


Ignore:
Timestamp:
Jun 7, 2015 2:58:11 PM (9 years ago)
Author:
ldelgass
Message:

Fix glyph style settings in vtkviewer to match glyph viewer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/vtkviewer.tcl

    r5347 r5670  
    26652665                -normscale 0
    26662666                -opacity 1.0
    2667                 -orientGlyphs 0
     2667                -orientglyphs 0
    26682668                -outline 0
    26692669                -ptsize 1.0
    26702670                -quality 1
    2671                 -scaleMode "vcomp"
     2671                -scalemode "vcomp"
    26722672                -shape "sphere"
    26732673                -visible 1
     
    26782678            if {$shape != ""} {
    26792679                set settings(-shape) $shape
     2680            }
     2681            # Backwards compat with camel case style option
     2682            if { [info exists settings(-orientGlyphs)] } {
     2683                set settings(-orientglyphs) $settings(-orientGlyphs)
     2684                array unset settings -orientGlyphs
     2685            }
     2686            # Backwards compat with camel case style option
     2687            if { [info exists settings(-scaleMode)] } {
     2688                set settings(-scalemode) $settings(-scaleMode)
     2689                array unset settings -scaleMode
    26802690            }
    26812691            SendCmd "outline add $tag"
     
    26922702            # Omitting field name for gorient and smode commands
    26932703            # defaults to active scalars or vectors depending on mode
    2694             SendCmd "glyphs gorient $settings(-orientGlyphs) {} $tag"
    2695             SendCmd "glyphs smode $settings(-scaleMode) {} $tag"
     2704            SendCmd "glyphs gorient $settings(-orientglyphs) {} $tag"
     2705            SendCmd "glyphs smode $settings(-scalemode) {} $tag"
    26962706            SendCmd "glyphs edges $settings(-edges) $tag"
    26972707            SendCmd "glyphs linecolor [Color2RGB $settings(-edgecolor)] $tag"
Note: See TracChangeset for help on using the changeset viewer.