Changeset 3901 for trunk/gui


Ignore:
Timestamp:
Aug 27, 2013 11:12:39 PM (11 years ago)
Author:
ldelgass
Message:

Reset cutplane visible state on rebuild

File:
1 edited

Legend:

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

    r3899 r3901  
    963963
    964964        InitSettings light2side light transp isosurface grid axes \
    965             cutplaneVisible xcutplane ycutplane zcutplane
     965            xcutplane ycutplane zcutplane
    966966
    967967        if {"" != $_first} {
     
    977977    }
    978978    # Outline seems to need to be reset every update.
    979     InitSettings outline
     979    InitSettings outline cutplaneVisible
    980980    # nothing to send -- activate the proper ivol
    981981    SendCmd "volume state 0"
     
    18371837    $inner configure -borderwidth 4
    18381838
     1839    checkbutton $inner.visible \
     1840        -text "Show Cutplanes" \
     1841        -variable [itcl::scope _settings($this-cutplaneVisible)] \
     1842        -command [itcl::code $this AdjustSetting cutplaneVisible] \
     1843        -font "Arial 9"
     1844
    18391845    # X-value slicer...
    18401846    itk_component add xCutButton {
     
    19171923    $itk_component(zCutScale) set 50
    19181924    $itk_component(zCutScale) configure -state disabled
    1919     #$itk_component(zCutScale) configure -state disabled
    19201925    Rappture::Tooltip::for $itk_component(zCutScale) \
    19211926        "@[itcl::code $this SlicerTip z]"
    19221927
    19231928    blt::table $inner \
    1924         1,1 $itk_component(xCutButton) \
    1925         1,2 $itk_component(yCutButton) \
    1926         1,3 $itk_component(zCutButton) \
    1927         0,1 $itk_component(xCutScale) \
    1928         0,2 $itk_component(yCutScale) \
    1929         0,3 $itk_component(zCutScale)
    1930 
    1931     blt::table configure $inner r0 r1 c* -resize none
    1932     blt::table configure $inner r2 c4 -resize expand
     1929        0,1 $inner.visible              -anchor w -pady 2 -cspan 4 \
     1930        1,1 $itk_component(xCutScale) \
     1931        1,2 $itk_component(yCutScale) \
     1932        1,3 $itk_component(zCutScale) \
     1933        2,1 $itk_component(xCutButton) \
     1934        2,2 $itk_component(yCutButton) \
     1935        2,3 $itk_component(zCutButton)
     1936
     1937    blt::table configure $inner r0 r1 r2 c* -resize none
     1938    blt::table configure $inner r3 c4 -resize expand
    19331939    blt::table configure $inner c0 -width 2
    19341940    blt::table configure $inner c1 c2 c3 -padx 2
Note: See TracChangeset for help on using the changeset viewer.