Changeset 4964


Ignore:
Timestamp:
Jan 30, 2015 9:02:42 AM (9 years ago)
Author:
ldelgass
Message:

Initialize x,y,z cutplane position/state from style in vtkisosurfacevewier's
SetObjectStyle? method. Should fix nanohub ticket #272677

File:
1 edited

Legend:

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

    r4942 r4964  
    21972197    SendCmd "cutplane add $tag"
    21982198    SendCmd "cutplane color [Color2RGB $itk_option(-plotforeground)] $tag"
     2199    foreach axis {x y z} {
     2200        set pos [expr $_settings(-${axis}cutplaneposition) * 0.01]
     2201        set visible $_settings(-${axis}cutplanevisible)
     2202        SendCmd "cutplane slice $axis $pos"
     2203        SendCmd "cutplane axis $axis $visible"
     2204    }
    21992205    SendCmd "cutplane visible $style(-cutplanesvisible) $tag"
    22002206
Note: See TracChangeset for help on using the changeset viewer.