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

Switch clients to use new outline command in vtkvis.

File:
1 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"
Note: See TracChangeset for help on using the changeset viewer.