Ignore:
Timestamp:
Feb 25, 2013 2:35:31 PM (11 years ago)
Author:
gah
Message:

fix for cutplane dataset lines when background changes

File:
1 edited

Legend:

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

    r3330 r3355  
    19191919itcl::configbody Rappture::VtkHeightmapViewer::plotbackground {
    19201920    if { [isconnected] } {
    1921         SendCmd "screen bgcolor [Color2RGB $itk_option(-plotbackground)]"
     1921        set rgb [Color2RGB $itk_option(-plotbackground)]
     1922        SendCmd "screen bgcolor $rgb"
    19221923        $itk_component(view) configure -background $itk_option(-plotbackground)
    19231924    }
     
    19291930itcl::configbody Rappture::VtkHeightmapViewer::plotforeground {
    19301931    if { [isconnected] } {
    1931         SendCmd "axis color all [Color2RGB $itk_option(-plotforeground)]"
     1932        set rgb [Color2RGB $itk_option(-plotforeground)]
     1933        SendCmd "dataset color $rgb"
     1934        SendCmd "cutplane ccolor $rgb"
     1935        SendCmd "axis color all $rgb"
    19321936    }
    19331937}
Note: See TracChangeset for help on using the changeset viewer.