Changeset 6454 for trunk


Ignore:
Timestamp:
Jul 29, 2016, 3:16:15 PM (8 years ago)
Author:
ldelgass
Message:

Add -constcolor style to surface viewer

File:
1 edited

Legend:

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

    r6379 r6454  
    18831883    array set style {
    18841884        -color           BCGYR
     1885        -constcolor      white
    18851886        -edgecolor       black
    18861887        -edges           0
     
    19551956    SendCmd "polydata edges $style(-edges) $tag"
    19561957    set _settings(-surfaceedges) $style(-edges)
    1957     #SendCmd "polydata color [Color2RGB $settings(-color)] $tag"
     1958    SendCmd "polydata color [Color2RGB $settings(-constcolor)] $tag"
    19581959    SendCmd "polydata lighting $style(-lighting) $tag"
    19591960    set _settings(-surfacelighting) $style(-lighting)
     
    22542255itcl::body Rappture::VtkSurfaceViewer::SetCurrentColormap { name } {
    22552256    # Keep track of the colormaps that we build.
    2256     if { ![info exists _colormaps($name)] } {
     2257    if { $name != "none" && ![info exists _colormaps($name)] } {
    22572258        BuildColormap $name
    22582259        set _colormaps($name) 1
Note: See TracChangeset for help on using the changeset viewer.