Ignore:
Timestamp:
Jun 10, 2014 10:49:12 PM (7 years ago)
Author:
ldelgass
Message:

opacity style setting fixes for VTK viewers (expect vtkvolumeviewer which does
not yet support the style setting). Also note that nanovisviewer (and
flowvisviewer?) have a regression which changes the -opacity style to [0,100]
instead of [0,1]

File:
1 edited

Legend:

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

    r4344 r4381  
    123123    private variable _currentColormap ""
    124124    private variable _currentNumIsolines -1
    125     private variable _currentOpacity ""
    126125
    127126    private variable _maxScale 100;     # This is the # of times the x-axis
     
    22632262        -color BCGYR
    22642263        -levels 10
    2265         -opacity 100
     2264        -opacity 1.0
    22662265    }
    22672266    set stylelist [$dataobj style $comp]
     
    22792278
    22802279    if { $_changed(opacity) } {
    2281         set style(-opacity) $_settings(opacity)
     2280        set style(-opacity) [expr $_settings(opacity) * 0.01]
    22822281    }
    22832282    if { $_changed(numIsolines) } {
     
    22942293        AdjustSetting stretchToFit
    22952294    }
    2296     set _currentOpacity $style(-opacity)
    22972295    if { $_currentNumIsolines != $style(-levels) } {
    22982296        set _currentNumIsolines $style(-levels)
     
    23162314    SendCmd "heightmap isolines $_settings(isolinesVisible) $tag"
    23172315    SendCmd "heightmap surface $_settings(colormapVisible) $tag"
     2316    SendCmd "heightmap opacity $style(-opacity) $tag"
     2317    set _settings(opacity) [expr $style(-opacity) * 100.0]
    23182318}
    23192319
Note: See TracChangeset for help on using the changeset viewer.