Changeset 5447 for branches/1.4


Ignore:
Timestamp:
May 6, 2015, 7:23:07 PM (9 years ago)
Author:
ldelgass
Message:

merge r5339:5340 from trunk

Location:
branches/1.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.4

  • branches/1.4/gui/scripts/vtkglyphviewer.tcl

    r5349 r5447  
    21512151        -normscale 1
    21522152        -opacity 1.0
    2153         -orientGlyphs 1
     2153        -orientglyphs 1
    21542154        -outline 0
    21552155        -ptsize 1.0
    21562156        -quality 1
    2157         -scaleMode "vmag"
     2157        -scalemode "vmag"
    21582158        -shape "arrow"
    21592159        -wireframe 0
     
    21622162    if {$numComponents == 3} {
    21632163        set style(-shape) "arrow"
    2164         set style(-orientGlyphs) 1
    2165         set style(-scaleMode) "vmag"
     2164        set style(-orientglyphs) 1
     2165        set style(-scalemode) "vmag"
    21662166    } else {
    21672167        set style(-shape) "sphere"
    2168         set style(-orientGlyphs) 0
    2169         set style(-scaleMode) "scalar"
     2168        set style(-orientglyphs) 0
     2169        set style(-scalemode) "scalar"
    21702170    }
    21712171    array set style [$dataobj style $comp]
     2172    # Backwards compat with camel case style option
     2173    if { [info exists style(-orientGlyphs)] } {
     2174        set style(-orientglyphs) $style(-orientGlyphs)
     2175        array unset style -orientGlyphs
     2176    }
     2177    # Backwards compat with camel case style option
     2178    if { [info exists style(-scaleMode)] } {
     2179        set style(-scalemode) $style(-scaleMode)
     2180        array unset style -scaleMode
     2181    }
    21722182    if { $dataobj != $_first } {
    21732183        set style(-opacity) 1
     
    22212231    # Omitting field name for gorient and smode commands
    22222232    # defaults to active scalars or vectors depending on mode
    2223     SendCmd "glyphs gorient $style(-orientGlyphs) {} $tag"
    2224     set _settings(-glyphorient) $style(-orientGlyphs)
    2225     SendCmd "glyphs smode $style(-scaleMode) {} $tag"
    2226     set _settings(-glyphscalemode) $style(-scaleMode)
    2227     $itk_component(scaleMode) value "[$itk_component(scaleMode) label $style(-scaleMode)]"
     2233    SendCmd "glyphs gorient $style(-orientglyphs) {} $tag"
     2234    set _settings(-glyphorient) $style(-orientglyphs)
     2235    SendCmd "glyphs smode $style(-scalemode) {} $tag"
     2236    set _settings(-glyphscalemode) $style(-scalemode)
     2237    $itk_component(scaleMode) value "[$itk_component(scaleMode) label $style(-scalemode)]"
    22282238    SendCmd "glyphs quality $style(-quality) $tag"
    22292239    SendCmd "glyphs lighting $style(-lighting) $tag"
Note: See TracChangeset for help on using the changeset viewer.