Ignore:
Timestamp:
Nov 12, 2014 11:56:13 PM (10 years ago)
Author:
ldelgass
Message:

Add per-component visibility control

File:
1 edited

Legend:

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

    r4711 r4712  
    150150    private variable _transferFunctionEditors
    151151    private variable _settings
    152     private variable _alphamap
    153152    private variable _widget
    154153
     
    16901689    #set bfg [option get $itk_component(hull) boldFont Font]
    16911690
    1692     checkbutton $inner.vol -text "Show volume" -font $fg \
    1693         -variable [itcl::scope _settings(-volumevisible)] \
    1694         -command [itcl::code $this AdjustSetting -volumevisible]
    16951691    label $inner.shading -text "Shading:" -font $fg
    16961692
     
    16981694        -variable [itcl::scope _settings(-light2side)] \
    16991695        -command [itcl::code $this AdjustSetting -light2side]
     1696
     1697    checkbutton $inner.visibility -text "Visible" -font $fg \
     1698        -variable [itcl::scope _settings(-volumevisible)] \
     1699        -command [itcl::code $this AdjustSetting -volumevisible]
    17001700
    17011701    label $inner.dim -text "Glow" -font $fg
     
    17471747        1,0 $inner.shading -cspan 4 -anchor w -pady {10 2} \
    17481748        2,0 $inner.light2side -cspan 4 -anchor w -pady 2 \
    1749         3,0 $inner.dim -anchor e -pady 2 \
    1750         3,1 $inner.light -cspan 2 -pady 2 -fill x \
    1751         3,3 $inner.bright -anchor w -pady 2 \
    1752         4,0 $inner.fog -anchor e -pady 2 \
    1753         4,1 $inner.transp -cspan 2 -pady 2 -fill x \
    1754         4,3 $inner.plastic -anchor w -pady 2 \
    1755         5,0 $inner.thin -anchor e -pady 2 \
    1756         5,1 $inner.thickness -cspan 2 -pady 2 -fill x\
    1757         5,3 $inner.thick -anchor w -pady 2
     1749        3,0 $inner.visibility -cspan 4 -anchor w -pady 2 \
     1750        4,0 $inner.dim -anchor e -pady 2 \
     1751        4,1 $inner.light -cspan 2 -pady 2 -fill x \
     1752        4,3 $inner.bright -anchor w -pady 2 \
     1753        5,0 $inner.fog -anchor e -pady 2 \
     1754        5,1 $inner.transp -cspan 2 -pady 2 -fill x \
     1755        5,3 $inner.plastic -anchor w -pady 2 \
     1756        6,0 $inner.thin -anchor e -pady 2 \
     1757        6,1 $inner.thickness -cspan 2 -pady 2 -fill x\
     1758        6,3 $inner.thick -anchor w -pady 2
    17581759
    17591760    blt::table configure $inner c0 c1 c3 r* -resize none
    1760     blt::table configure $inner r6 -resize expand
     1761    blt::table configure $inner r7 -resize expand
    17611762}
    17621763
     
    17721773        -command [itcl::code $this AdjustSetting -cutplanesvisible] \
    17731774        -font "Arial 9"
    1774    
     1775
    17751776    # X-value slicer...
    17761777    itk_component add xCutButton {
     
    18571858
    18581859    blt::table $inner \
    1859         1,1 $itk_component(xCutButton) \
    1860         1,2 $itk_component(yCutButton) \
    1861         1,3 $itk_component(zCutButton) \
    1862         0,1 $itk_component(xCutScale) \
    1863         0,2 $itk_component(yCutScale) \
    1864         0,3 $itk_component(zCutScale)
    1865 
    1866     blt::table configure $inner r0 r1 c* -resize none
    1867     blt::table configure $inner r2 c4 -resize expand
     1860        0,1 $inner.visible              -anchor w -pady 2 -cspan 4 \
     1861        1,1 $itk_component(xCutScale) \
     1862        1,2 $itk_component(yCutScale) \
     1863        1,3 $itk_component(zCutScale) \
     1864        2,1 $itk_component(xCutButton) \
     1865        2,2 $itk_component(yCutButton) \
     1866        2,3 $itk_component(zCutButton)
     1867
     1868    blt::table configure $inner r0 r1 r2 c* -resize none
     1869    blt::table configure $inner r3 c4 -resize expand
    18681870    blt::table configure $inner c0 -width 2
    18691871    blt::table configure $inner c1 c2 c3 -padx 2
Note: See TracChangeset for help on using the changeset viewer.