Changeset 4391 for branches/1.3


Ignore:
Timestamp:
Jun 17, 2014 3:13:44 PM (6 years ago)
Author:
gah
Message:

fix for extra outlines, cutplanes

Location:
branches/1.3/gui/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3/gui/scripts/visviewer.tcl

    r4260 r4391  
    11001100# StopBufferingCommands --
    11011101#
     1102#       This gets called when we want to stop buffering the commands for
     1103#       the server and actually send then to the server.  Note that there's
     1104#       a reference count on buffering.  This is so that you can can
     1105#       Start/Stop multiple times without worrying about the current state.
     1106#
    11021107itcl::body Rappture::VisViewer::StopBufferingCommands { } {
    11031108    incr _buffering -1
  • branches/1.3/gui/scripts/vtkisosurfaceviewer.tcl

    r4351 r4391  
    10031003            lappend _obj2datasets($dataobj) $tag
    10041004            if { [info exists _obj2ovride($dataobj-raise)] } {
    1005                 # Setting dataset visible enables outline
    1006                 # and contour3d
    10071005                SendCmd "contour3d visible 1 $tag"
    10081006            }
     
    10701068        set _reset 0
    10711069    }
     1070    # Redraw the legend even if we're using the same colormap. The position
     1071    # of the isolines may have changed because the range of data changed.
     1072    DrawLegend
    10721073
    10731074    # Actually write the commands to the server socket.  If it fails, we don't
     
    13481349        "-cutplanesvisible" {
    13491350            set bool $_settings($what)
    1350             SendCmd "cutplane visible $bool"
     1351            SendCmd "cutplane visible 0"
     1352            if { $bool } {
     1353                foreach tag [CurrentDatasets -visible] {
     1354                    SendCmd "cutplane visible $bool $tag"
     1355                }
     1356            }
     1357            if { $bool } {
     1358                Rappture::Tooltip::for $itk_component(cutplane) \
     1359                    "Hide the cutplanes"
     1360            } else {
     1361                Rappture::Tooltip::for $itk_component(cutplane) \
     1362                    "Show the cutplanes"
     1363            }
    13511364        }
    13521365        "-cutplanewireframe" {
     
    14321445                    "Show the isosurface"
    14331446            }
    1434             DrawLegend
    14351447        }
    14361448        "-isosurfacelighting" {
     
    14441456        "-isosurfaceoutline" {
    14451457            set bool $_settings($what)
    1446             SendCmd "outline visible $bool"
     1458            SendCmd "outline visible 0"
     1459            if { $bool } {
     1460                foreach tag [CurrentDatasets -visible] {
     1461                    SendCmd "outline visible $bool $tag"
     1462                }
     1463            }
     1464            if { $bool } {
     1465                Rappture::Tooltip::for $itk_component(contour) \
     1466                    "Hide the isosurface"
     1467            } else {
     1468                Rappture::Tooltip::for $itk_component(contour) \
     1469                    "Show the isosurface"
     1470            }
    14471471        }
    14481472        "-isolinecolor" {
Note: See TracChangeset for help on using the changeset viewer.