Ignore:
Timestamp:
Nov 17, 2014, 1:56:13 AM (10 years ago)
Author:
ldelgass
Message:

Try to keep style names more consistent.

File:
1 edited

Legend:

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

    r4730 r4735  
    22322232    set tag $dataobj-$cname
    22332233    array set styles {
    2234         -color BCGYR
    2235         -volumelighting         1
    2236         -volumeoutline          0
    2237         -volumevisible          1
     2234        -color      BCGYR
     2235        -lighting   1
     2236        -outline    0
     2237        -visible    1
    22382238    }
    22392239    array set styles [$dataobj style $cname]
    2240     SendCmd "volume add $tag"
    2241     set _settings($cname-volumelighting)        $styles(-volumelighting)
    2242     set _settings($cname-volumeoutline)         $styles(-volumeoutline)
    2243     set _settings($cname-volumevisible)         $styles(-volumevisible)
     2240    set _settings($cname-volumelighting)        $styles(-lighting)
     2241    set _settings($cname-volumeoutline)         $styles(-outline)
     2242    set _settings($cname-volumevisible)         $styles(-visible)
    22442243
    22452244    $itk_component(colormap) value $styles(-color)
     2245
     2246    SendCmd "outline add $tag"
     2247    SendCmd "outline visible $styles(-outline) $tag"
    22462248
    22472249    SendCmd "$_cutplaneCmd add $tag"
    22482250    SendCmd "$_cutplaneCmd visible 0 $tag"
    2249     SendCmd "volume lighting $styles(-volumelighting) $tag"
     2251
     2252    SendCmd "volume add $tag"
     2253    SendCmd "volume lighting $styles(-lighting) $tag"
     2254    SendCmd "volume visible $styles(-visible) $tag"
     2255
    22502256    SetInitialTransferFunction $dataobj $cname
    22512257    SendCmd "volume colormap $cname $tag"
    22522258    SendCmd "$_cutplaneCmd colormap $cname-opaque $tag"
    2253     SendCmd "outline add $tag"
    2254     SendCmd "outline visible $styles(-volumeoutline) $tag"
    22552259}
    22562260
Note: See TracChangeset for help on using the changeset viewer.