Changeset 4047 for trunk/gui


Ignore:
Timestamp:
Nov 12, 2013 5:22:18 PM (10 years ago)
Author:
ldelgass
Message:

Make cutplanes use opaque alpha map

File:
1 edited

Legend:

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

    r4046 r4047  
    25652565
    25662566    set wmap [ComputeAlphamap $cname]
     2567    set opaqueWmap "0.0 1.0 1.0 1.0"
    25672568    set _cname2transferFunction($cname) [list $cmap $wmap]
    25682569    SendCmd [list colormap add $cname $cmap $wmap]
     2570    SendCmd [list colormap add $cname-opaque $cmap $opaqueWmap]
    25692571}
    25702572
     
    25832585    set _cname2transferFunction($cname) [list $cmap $wmap]
    25842586    SendCmd [list colormap add $cname $cmap $wmap]
    2585     SendCmd [list cutplane colormap $cname]
     2587    SendCmd [list cutplane colormap $cname-opaque]
    25862588    EventuallyRequestLegend
    25872589}
Note: See TracChangeset for help on using the changeset viewer.