Changeset 5382 for branches/1.4


Ignore:
Timestamp:
May 1, 2015, 1:36:50 PM (9 years ago)
Author:
ldelgass
Message:

cleanups to sync with trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.4/gui/scripts/vtkvolumeviewer.tcl

    r5349 r5382  
    118118
    119119    private variable _arcball ""
    120     private variable _dlist ""     ;    # list of data objects
    121     private variable _obj2ovride   ;    # maps dataobj => style override
    122     private variable _datasets     ;    # contains all the dataobj-component
    123                                    ;    # datasets in the server
    124     private variable _colormaps    ;    # contains all the colormaps
    125                                    ;    # in the server.
    126     private variable _dataset2style    ;# maps dataobj-component to transfunc
    127 
    128     private variable _click        ;    # info used for rotate operations
    129     private variable _limits       ;    # autoscale min/max for all axes
    130     private variable _view         ;    # view params for 3D view
     120    private variable _dlist "";         # list of data objects
     121    private variable _obj2ovride;       # maps dataobj => style override
     122    private variable _datasets;         # contains all the dataobj-component
     123                                        # datasets in the server
     124    private variable _colormaps;        # contains all the colormaps
     125                                        # in the server.
     126    private variable _dataset2style;    # maps dataobj-component to transfunc
     127
     128    private variable _click;            # info used for rotate operations
     129    private variable _limits;           # autoscale min/max for all axes
     130    private variable _view;             # view params for 3D view
    131131    private variable _settings
    132132    private variable _style;            # Array of current component styles.
     
    134134    private variable _reset 1;          # Connection to server has been reset.
    135135
    136     private variable _first ""     ;    # This is the topmost dataset.
     136    private variable _first "";         # This is the topmost dataset.
    137137    private variable _start 0
    138138    private variable _title ""
    139139
    140     private common _downloadPopup;      # download options from popup
    141     private common _hardcopy
    142140    private variable _width 0
    143141    private variable _height 0
     
    152150    private variable _cutplaneCmd "cutplane"
    153151    private variable _allowMultiComponent 0
     152
     153    private common _downloadPopup;      # download options from popup
     154    private common _hardcopy
    154155}
    155156
     
    16401641itcl::body Rappture::VtkVolumeViewer::BuildViewTab {} {
    16411642    set font [option get $itk_component(hull) font Font]
    1642     #set bfont [option get $itk_component(hull) boldFont Font]
    16431643
    16441644    set inner [$itk_component(main) insert end \
     
    16511651        -variable [itcl::scope _settings(-axesvisible)] \
    16521652        -command [itcl::code $this AdjustSetting -axesvisible] \
    1653         -font "Arial 9"
     1653        -font $font
    16541654
    16551655    checkbutton $inner.outline \
     
    16571657        -variable [itcl::scope _settings(-volumeoutline)] \
    16581658        -command [itcl::code $this AdjustSetting -volumeoutline] \
    1659         -font "Arial 9"
     1659        -font $font
    16601660
    16611661    checkbutton $inner.legend \
     
    16631663        -variable [itcl::scope _settings(-legendvisible)] \
    16641664        -command [itcl::code $this AdjustSetting -legendvisible] \
    1665         -font "Arial 9"
     1665        -font $font
    16661666
    16671667    checkbutton $inner.volume \
     
    16691669        -variable [itcl::scope _settings(-volumevisible)] \
    16701670        -command [itcl::code $this AdjustSetting -volumevisible] \
    1671         -font "Arial 9"
    1672 
    1673     label $inner.background_l -text "Background" -font "Arial 9"
     1671        -font $font
     1672
     1673    label $inner.background_l -text "Background" -font $font
    16741674    itk_component add background {
    16751675        Rappture::Combobox $inner.background -width 10 -editable no
    16761676    }
    16771677    $inner.background choices insert end \
    1678         "black"              "black"            \
    1679         "white"              "white"            \
    1680         "grey"               "grey"
     1678        "black" "black" \
     1679        "white" "white" \
     1680        "grey"  "grey"
    16811681
    16821682    $itk_component(background) value $_settings(-background)
     
    16851685
    16861686    blt::table $inner \
    1687         0,0 $inner.axes  -cspan 2 -anchor w \
    1688         1,0 $inner.outline  -cspan 2 -anchor w \
    1689         2,0 $inner.volume  -cspan 2 -anchor w \
    1690         3,0 $inner.legend  -cspan 2 -anchor w \
    1691         4,0 $inner.background_l       -anchor e -pady 2 \
    1692         4,1 $inner.background                   -fill x \
     1687        0,0 $inner.axes -cspan 2 -anchor w \
     1688        1,0 $inner.outline -cspan 2 -anchor w \
     1689        2,0 $inner.volume -cspan 2 -anchor w \
     1690        3,0 $inner.legend -cspan 2 -anchor w \
     1691        4,0 $inner.background_l -anchor e -pady 2 \
     1692        4,1 $inner.background -fill x \
    16931693
    16941694    blt::table configure $inner r* -resize none
     
    16991699    set font [option get $itk_component(hull) font Font]
    17001700    #set bfont [option get $itk_component(hull) boldFont Font]
     1701    set bfont "Arial 9 bold"
    17011702
    17021703    set inner [$itk_component(main) insert end \
     
    17531754
    17541755    blt::table $inner \
    1755         0,0 $inner.field_l   -anchor w -pady 2 \
    1756         0,1 $inner.field     -fill x  -pady 2 -cspan 3 \
     1756        0,0 $inner.field_l -anchor w -pady 2 \
     1757        0,1 $inner.field -fill x -pady 2 -cspan 3 \
    17571758        1,0 $inner.visibility -anchor w -pady 2 -cspan 4 \
    1758         2,0 $inner.lighting  -anchor w -pady 2 -cspan 4 \
    1759         3,0 $inner.dim_l     -anchor e -pady 2 \
    1760         3,1 $inner.material  -fill x  -pady 2 -cspan 2 \
    1761         3,3 $inner.bright_l  -anchor w -pady 2 \
     1759        2,0 $inner.lighting -anchor w -pady 2 -cspan 4 \
     1760        3,0 $inner.dim_l -anchor e -pady 2 \
     1761        3,1 $inner.material -fill x -pady 2 -cspan 2 \
     1762        3,3 $inner.bright_l -anchor w -pady 2 \
    17621763        4,0 $inner.opacity_l -anchor w -pady 2 -cspan 4 \
    1763         5,0 $inner.opacity   -fill x  -pady 2 -cspan 4 \
     1764        5,0 $inner.opacity -fill x -pady 2 -cspan 4 \
    17641765        6,0 $inner.quality_l -anchor w -pady 2 -cspan 4 \
    1765         7,0 $inner.quality   -fill x  -pady 2 -cspan 4 \
     1766        7,0 $inner.quality -fill x -pady 2 -cspan 4 \
    17661767        8,0 $inner.colormap_l -anchor w -pady 2 \
    1767         8,1 $inner.colormap   -fill x  -pady 2 -cspan 3
     1768        8,1 $inner.colormap -fill x -pady 2 -cspan 3
    17681769
    17691770    blt::table configure $inner r* c0 c1 c3 -resize none
     
    17721773
    17731774itcl::body Rappture::VtkVolumeViewer::BuildAxisTab {} {
    1774     set fg [option get $itk_component(hull) font Font]
    1775     #set bfg [option get $itk_component(hull) boldFont Font]
     1775    set font [option get $itk_component(hull) font Font]
    17761776
    17771777    set inner [$itk_component(main) insert end \
     
    17841784        -variable [itcl::scope _settings(-axesvisible)] \
    17851785        -command [itcl::code $this AdjustSetting -axesvisible] \
    1786         -font "Arial 9"
     1786        -font $font
    17871787
    17881788    checkbutton $inner.labels \
     
    17901790        -variable [itcl::scope _settings(-axislabels)] \
    17911791        -command [itcl::code $this AdjustSetting -axislabels] \
    1792         -font "Arial 9"
    1793     label $inner.grid_l -text "Grid" -font "Arial 9"
     1792        -font $font
     1793    label $inner.grid_l -text "Grid" -font $font
    17941794    checkbutton $inner.xgrid \
    17951795        -text "X" \
    17961796        -variable [itcl::scope _settings(-xgrid)] \
    17971797        -command [itcl::code $this AdjustSetting -xgrid] \
    1798         -font "Arial 9"
     1798        -font $font
    17991799    checkbutton $inner.ygrid \
    18001800        -text "Y" \
    18011801        -variable [itcl::scope _settings(-ygrid)] \
    18021802        -command [itcl::code $this AdjustSetting -ygrid] \
    1803         -font "Arial 9"
     1803        -font $font
    18041804    checkbutton $inner.zgrid \
    18051805        -text "Z" \
    18061806        -variable [itcl::scope _settings(-zgrid)] \
    18071807        -command [itcl::code $this AdjustSetting -zgrid] \
    1808         -font "Arial 9"
     1808        -font $font
    18091809    checkbutton $inner.minorticks \
    18101810        -text "Minor Ticks" \
    18111811        -variable [itcl::scope _settings(-axisminorticks)] \
    18121812        -command [itcl::code $this AdjustSetting -axisminorticks] \
    1813         -font "Arial 9"
    1814 
    1815     label $inner.mode_l -text "Mode" -font "Arial 9"
     1813        -font $font
     1814
     1815    label $inner.mode_l -text "Mode" -font $font
    18161816
    18171817    itk_component add axismode {
     
    18281828    blt::table $inner \
    18291829        0,0 $inner.visible -anchor w -cspan 4 \
    1830         1,0 $inner.labels  -anchor w -cspan 4 \
    1831         2,0 $inner.minorticks  -anchor w -cspan 4 \
    1832         4,0 $inner.grid_l  -anchor w \
    1833         4,1 $inner.xgrid   -anchor w \
    1834         4,2 $inner.ygrid   -anchor w \
    1835         4,3 $inner.zgrid   -anchor w \
    1836         5,0 $inner.mode_l  -anchor w -padx { 2 0 } \
    1837         5,1 $inner.mode    -fill x  -cspan 3
     1830        1,0 $inner.labels -anchor w -cspan 4 \
     1831        2,0 $inner.minorticks -anchor w -cspan 4 \
     1832        4,0 $inner.grid_l -anchor w \
     1833        4,1 $inner.xgrid -anchor w \
     1834        4,2 $inner.ygrid -anchor w \
     1835        4,3 $inner.zgrid -anchor w \
     1836        5,0 $inner.mode_l -anchor w -padx { 2 0 } \
     1837        5,1 $inner.mode -fill x -cspan 3
    18381838
    18391839    blt::table configure $inner r* c* -resize none
     
    18431843
    18441844itcl::body Rappture::VtkVolumeViewer::BuildCameraTab {} {
     1845    set font [option get $itk_component(hull) font Font]
    18451846    set inner [$itk_component(main) insert end \
    18461847        -title "Camera Settings" \
     
    18481849    $inner configure -borderwidth 4
    18491850
    1850     label $inner.view_l -text "view" -font "Arial 9"
     1851    label $inner.view_l -text "view" -font $font
    18511852    set f [frame $inner.view]
    18521853    foreach side { front back left right top bottom } {
     
    18641865    set labels { qx qy qz qw xpan ypan zoom }
    18651866    foreach tag $labels {
    1866         label $inner.${tag}label -text $tag -font "Arial 9"
    1867         entry $inner.${tag} -font "Arial 9"  -bg white \
     1867        label $inner.${tag}label -text $tag -font $font
     1868        entry $inner.${tag} -font $font  -bg white \
    18681869            -textvariable [itcl::scope _view(-$tag)]
    18691870        bind $inner.${tag} <Return> \
     
    18811882        -variable [itcl::scope _view(-ortho)] \
    18821883        -command [itcl::code $this camera set -ortho] \
    1883         -font "Arial 9"
     1884        -font $font
    18841885    blt::table $inner \
    18851886            $row,0 $inner.ortho -cspan 2 -anchor w -pady 2
     
    19051906        -variable [itcl::scope _settings(-cutplanesvisible)] \
    19061907        -command [itcl::code $this AdjustSetting -cutplanesvisible] \
    1907         -font "Arial 9"
     1908        -font $font
    19081909
    19091910    checkbutton $inner.lighting \
     
    19111912        -variable [itcl::scope _settings(-cutplanelighting)] \
    19121913        -command [itcl::code $this AdjustSetting -cutplanelighting] \
    1913         -font "Arial 9"
    1914 
    1915     label $inner.opacity_l -text "Opacity" -font "Arial 9"
     1914        -font $font
     1915
     1916    label $inner.opacity_l -text "Opacity" -font $font
    19161917    ::scale $inner.opacity -from 0 -to 100 -orient horizontal \
    19171918        -variable [itcl::scope _settings(-cutplaneopacity)] \
Note: See TracChangeset for help on using the changeset viewer.