Changeset 4190


Ignore:
Timestamp:
Feb 20, 2014 7:40:21 PM (10 years ago)
Author:
ldelgass
Message:

Apply -normscale -gscale settings

File:
1 edited

Legend:

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

    r4151 r4190  
    20502050    array set style {
    20512051        -color BCGYR
     2052        -edgecolor black
    20522053        -edges 0
    2053         -edgecolor black
     2054        -gscale 1
     2055        -lighting 1
    20542056        -linewidth 1.0
     2057        -normscale 1
     2058        -opacity 1.0
     2059        -orientGlyphs 1
     2060        -outline 0
    20552061        -ptsize 1.0
    2056         -opacity 1.0
     2062        -quality 1
     2063        -scaleMode "vmag"
     2064        -shape "arrow"
    20572065        -wireframe 0
    2058         -lighting 1
    2059         -outline 0
    2060         -shape "arrow"
    2061         -orientGlyphs 1
    2062         -scaleMode "vmag"
    2063         -quality 1
    20642066    }
    20652067    set numComponents [$dataobj numComponents $comp]
     
    21032105    SendCmd "glyphs edges $style(-edges) $tag"
    21042106    # normscale=1 and gscale=1 are defaults
    2105     #SendCmd "glyphs normscale 1 $tag"
    2106     #SendCmd "glyphs gscale 1 $tag"
    2107 
     2107    if {$style(-normscale) != 1} {
     2108        SendCmd "glyphs normscale $style(-normscale) $tag"
     2109    }
     2110    if {$style(-gscale) != 1} {
     2111        SendCmd "glyphs gscale $style(-gscale) $tag"
     2112    }
    21082113    SendCmd "outline add $tag"
    21092114    SendCmd "outline color [Color2RGB $itk_option(-plotforeground)] $tag"
     
    21112116    set _settings(glyphOutline) $style(-outline)
    21122117    set _settings(glyphEdges) $style(-edges)
    2113     #SendCmd "glyphs color [Color2RGB $settings(-color)] $tag"
     2118    # constant color only used if colormode set to constant
     2119    SendCmd "glyphs color [Color2RGB $itk_option(-plotforeground)] $tag"
    21142120    # Omitting field name for gorient and smode commands
    21152121    # defaults to active scalars or vectors depending on mode
Note: See TracChangeset for help on using the changeset viewer.