Changeset 3544 for trunk/gui/scripts


Ignore:
Timestamp:
Mar 19, 2013, 6:48:23 PM (11 years ago)
Author:
ldelgass
Message:

Switch clients to use new outline command in vtkvis.

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

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

    r3537 r3544  
    10401040        #
    10411041        SendCmd "axis color all [Color2RGB $itk_option(-plotforeground)]"
    1042         SendCmd "dataset color [Color2RGB $itk_option(-plotforeground)]"
     1042        SendCmd "outline color [Color2RGB $itk_option(-plotforeground)]"
    10431043        ResetAxes
    10441044        set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     
    15861586        "outline" {
    15871587            if { $_settings(isHeightmap) } {
    1588                 SendCmd "dataset outline 0"
     1588                SendCmd "outline visible 0"
    15891589            } else {
    15901590                set _settings(saveOutline) $_settings(outline)
    15911591                set bool $_settings(outline)
    1592                 SendCmd "dataset outline $bool"
     1592                SendCmd "outline visible $bool"
    15931593            }
    15941594        }
     
    17651765    if { [isconnected] } {
    17661766        set rgb [Color2RGB $itk_option(-plotforeground)]
    1767         SendCmd "dataset color $rgb"
     1767        SendCmd "outline color $rgb"
    17681768        SendCmd "axis color all $rgb"
    17691769    }
     
    22532253        DrawLegend
    22542254    }
    2255     SendCmd "dataset outline $_settings(outline) $tag"
    2256     SendCmd "dataset color [Color2RGB $itk_option(-plotforeground)] $tag"
     2255    SendCmd "outline add $tag"
     2256    SendCmd "outline color [Color2RGB $itk_option(-plotforeground)] $tag"
     2257    SendCmd "outline visible $_settings(outline) $tag"
    22572258    set scale [GetHeightmapScale]
    22582259    SendCmd "heightmap add numcontours $_currentNumIsolines $scale $tag"
  • trunk/gui/scripts/vtkisosurfaceviewer.tcl

    r3543 r3544  
    14451445        "isosurfaceOutline" {
    14461446            set bool $_settings(isosurfaceOutline)
    1447             SendCmd "dataset outline $bool"
     1447            SendCmd "outline visible $bool"
    14481448        }
    14491449        "isolineColor" {
     
    15611561        set rgb [Color2RGB $itk_option(-plotforeground)]
    15621562        SendCmd "axis color all $rgb"
    1563         SendCmd "dataset color $rgb"
     1563        SendCmd "outline color $rgb"
    15641564        SendCmd "cutplane ccolor $rgb"
    15651565    }
     
    21772177    SendCmd [list contour3d add contourlist $_contourList $tag]
    21782178    SendCmd "contour3d edges $style(-edges) $tag"
    2179     SendCmd "dataset outline $style(-outline) $tag"
    2180     SendCmd "dataset color [Color2RGB $itk_option(-plotforeground)]"
     2179    SendCmd "outline add $tag"
     2180    SendCmd "outline color [Color2RGB $itk_option(-plotforeground)] $tag"
     2181    SendCmd "outline visible $style(-outline) $tag"
    21812182    set _settings(isosurfaceOutline) $style(-outline)
    21822183    set _settings(isosurfaceEdges) $style(-edges)
Note: See TracChangeset for help on using the changeset viewer.