Changeset 5371


Ignore:
Timestamp:
Apr 30, 2015, 3:52:20 AM (9 years ago)
Author:
ldelgass
Message:

add cutplane position to AdjustSetting?

File:
1 edited

Legend:

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

    r5367 r5371  
    13381338            }
    13391339        }
     1340        "-xcutplaneposition" - "-ycutplaneposition" - "-zcutplaneposition" {
     1341            set axis [string range $what 1 1]
     1342            set pos [expr $_settings($what) * 0.01]
     1343            # We only set cutplanes on the first dataset.
     1344            set datasets [CurrentDatasets -cutplanes]
     1345            set tag [lindex $datasets 0]
     1346            SendCmd "cutplane position $pos $axis $tag"
     1347        }
    13401348        "-xcutplanevisible" - "-ycutplanevisible" - "-zcutplanevisible" {
    13411349            set axis [string range $what 1 1]
     
    15741582}
    15751583
    1576 # ----------------------------------------------------------------------
    1577 # USAGE: UpdateTransferFuncs
    1578 # ----------------------------------------------------------------------
    15791584itcl::body Rappture::NanovisViewer::updateTransferFunctions {} {
    15801585    $_dispatcher event -idle !send_transfunc
     
    16321637    }
    16331638    $inner.background choices insert end \
    1634         "black"              "black"            \
    1635         "white"              "white"            \
    1636         "grey"               "grey"
     1639        "black" "black" \
     1640        "white" "white" \
     1641        "grey"  "grey"
    16371642
    16381643    $itk_component(background) value $_settings(-background)
Note: See TracChangeset for help on using the changeset viewer.