Changeset 6330


Ignore:
Timestamp:
May 14, 2016, 4:42:36 AM (8 years ago)
Author:
ldelgass
Message:

Remove redundant SetCurrentColormap? in vtkisosurfaceviewer SetObjectStyle?. Need
to wait until objects are created to change the colormap. Also add constcolor
style for consistency.

File:
1 edited

Legend:

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

    r6329 r6330  
    22562256    array set style {
    22572257        -color                  BCGYR
     2258        -constcolor             white
    22582259        -cutplaneedges          0
    22592260        -cutplanelighting       1
     
    22812282        set style(-opacity) 1.0
    22822283    }
     2284    set style(-constcolor) $itk_option(-plotforeground)
    22832285    array set style [$dataobj style $comp]
    22842286    #DebugTrace [array get style]
     
    23122314    }
    23132315    if { $_currentColormap == "" } {
    2314         SetCurrentColormap $style(-color)
    23152316        $itk_component(colormap) value $style(-color)
    23162317    }
     
    23402341
    23412342    SendCmd "cutplane add $tag"
    2342     SendCmd "cutplane color [Color2RGB $itk_option(-plotforeground)] $tag"
     2343    SendCmd "cutplane color [Color2RGB $style(-constcolor)] $tag"
    23432344    foreach axis {x y z} {
    23442345        set pos [expr $style(-${axis}cutplaneposition) * 0.01]
     
    23562357
    23572358    SendCmd "outline add $tag"
    2358     SendCmd "outline color [Color2RGB $itk_option(-plotforeground)] $tag"
     2359    SendCmd "outline color [Color2RGB $style(-constcolor)] $tag"
    23592360    SendCmd "outline visible $style(-outline) $tag"
    23602361
     
    23642365    SendCmd "contour3d edges $style(-edges) $tag"
    23652366    set _settings(-isosurfaceedges) $style(-edges)
    2366     #SendCmd "contour3d color [Color2RGB $style(-color)] $tag"
     2367    #SendCmd "contour3d color [Color2RGB $style(-constcolor)] $tag"
    23672368    SendCmd "contour3d lighting $style(-lighting) $tag"
    23682369    set _settings(-isosurfacelighting) $style(-lighting)
Note: See TracChangeset for help on using the changeset viewer.