Changeset 3971 for trunk/gui


Ignore:
Timestamp:
Oct 1, 2013 8:11:18 PM (11 years ago)
Author:
ldelgass
Message:

allow outline in 3d image view

File:
1 edited

Legend:

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

    r3968 r3971  
    228228        outline                 0
    229229        saveOpacity             100
    230         saveOutline             0
    231230        stretchToFit            0
    232231        view3D                  0
     
    14531452            if { $bool } {
    14541453                set _settings(opacity) $_settings(saveOpacity)
    1455                 set _settings(outline) 0
    14561454            } else {
    14571455                set _settings(opacity) 100
    1458                 set _settings(outline)  $_settings(saveOutline)
    14591456            }
    14601457            AdjustSetting opacity
    1461             AdjustSetting outline
    1462             if { $bool } {
     1458            if { $bool } {
    14631459                $itk_component(opacity) configure -state normal
    14641460                $itk_component(opacity_l) configure -state normal
    1465                 $itk_component(outline) configure -state disabled
    14661461                if {$_view(ortho)} {
    14671462                    SendCmd "camera mode ortho"
     
    14721467                $itk_component(opacity) configure -state disabled
    14731468                $itk_component(opacity_l) configure -state disabled
    1474                 $itk_component(outline) configure -state normal
    14751469                SendCmd "camera mode image"
    14761470            }
     
    15231517        }
    15241518        "outline" {
    1525             if { $_settings(view3D) } {
    1526                 SendCmd "outline visible 0"
    1527             } else {
    1528                 set _settings(saveOutline) $_settings(outline)
    1529                 set bool $_settings(outline)
    1530                 SendCmd "outline visible $bool"
    1531             }
     1519            set bool $_settings(outline)
     1520            SendCmd "outline visible $bool"
    15321521        }
    15331522        "stretchToFit" {
     
    16971686        -font "Arial 9"
    16981687
    1699     itk_component add outline {
    1700         checkbutton $inner.outline \
    1701             -text "Outline" \
    1702             -variable [itcl::scope _settings(outline)] \
    1703             -command [itcl::code $this AdjustSetting outline] \
    1704             -font "Arial 9"
    1705     } {
    1706         ignore -font
    1707     }
     1688    checkbutton $inner.outline \
     1689        -text "Outline" \
     1690        -variable [itcl::scope _settings(outline)] \
     1691        -command [itcl::code $this AdjustSetting outline] \
     1692        -font "Arial 9"
    17081693
    17091694    checkbutton $inner.backing \
Note: See TracChangeset for help on using the changeset viewer.