Changeset 4123


Ignore:
Timestamp:
Jan 15, 2014, 2:32:52 PM (11 years ago)
Author:
gah
Message:

try to make outline work in vtkvolumeviewer: can't stop initial outline (assuming pilot error)

File:
1 edited

Legend:

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

    r4122 r4123  
    260260        cutplaneWireframe       0
    261261        legendVisible           1
     262        outline                 0
    262263        volumeAmbient           40
    263264        volumeBlendMode         composite
     
    10241025        }
    10251026        DoRotate
    1026         InitSettings background axisGridX axisGridY axisGridZ axisFlyMode \
     1027        InitSettings outline background axisGridX axisGridY axisGridZ axisFlyMode \
    10271028            axesVisible axisLabels
    10281029        PanCamera
     
    13931394        "outline" {
    13941395            set bool $_settings(outline)
    1395             SendCmd "outline visible $bool"
     1396            SendCmd "outline visible 0"
     1397            foreach tag [GetDatasetsWithComponent $_current] {
     1398                SendCmd "outline visible $bool $tag"
     1399            }
     1400        }
     1401        "legendVisible" {
     1402            set bool $_settings(legendVisible)
     1403            set _settings($_current-legendVisible) $bool
    13961404        }
    13971405        "volumeVisible" {
     
    22742282    SendCmd "volume colormap $cname $tag"
    22752283    SendCmd "$_cutplaneCmd colormap $cname-opaque $tag"
     2284    SendCmd "outline add $tag"
     2285    SendCmd "outline visible 0 $tag"
    22762286}
    22772287
Note: See TracChangeset for help on using the changeset viewer.