Ignore:
Timestamp:
Nov 12, 2014 2:47:37 PM (9 years ago)
Author:
ldelgass
Message:

merge r4688 from trunk

Location:
branches/1.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3

    • Property svn:mergeinfo changed
      /trunkmerged: 4688
  • branches/1.3/gui/scripts/vtkisosurfaceviewer.tcl

    r4676 r4703  
    240240    array set _settings {
    241241        -axesvisible                    1
    242         -axislabelsvisible              1
     242        -axislabels                     1
     243        -axisminorticks                 1
    243244        -axismode                       "static"
    244245        -background                     black
     
    994995        set _first ""
    995996        InitSettings -xgrid -ygrid -zgrid -axismode \
    996             -axesvisible -axislabelsvisible -ortho
    997         SendCmd "axis lformat all %g"
    998         # Too many major ticks, so turn off minor ticks
    999         SendCmd "axis minticks all 0"
     997            -axesvisible -axislabels -axisminorticks -ortho
     998        #SendCmd "axis lformat all %g"
    1000999        StopBufferingCommands
    10011000        SendCmd "imgflush"
     
    10321031                    SendCmd "clientinfo [list $info]"
    10331032                }
    1034                 append _outbuf "dataset add $tag data follows $length\n"
     1033                SendCmd "dataset add $tag data follows $length"
    10351034                append _outbuf $bytes
    10361035                set _datasets($tag) 1
     
    13211320            SendCmd "axis visible all $bool"
    13221321        }
    1323         "-axislabelsvisible" {
     1322        "-axislabels" {
    13241323            set bool $_settings($what)
    13251324            SendCmd "axis labels all $bool"
     1325        }
     1326        "-axisminorticks" {
     1327            set bool $_settings($what)
     1328            SendCmd "axis minticks all $bool"
    13261329        }
    13271330        "-axismode" {
     
    17571760
    17581761    checkbutton $inner.visible \
    1759         -text "Show Axes" \
     1762        -text "Axes" \
    17601763        -variable [itcl::scope _settings(-axesvisible)] \
    17611764        -command [itcl::code $this AdjustSetting -axesvisible] \
     
    17631766
    17641767    checkbutton $inner.labels \
    1765         -text "Show Axis Labels" \
    1766         -variable [itcl::scope _settings(-axislabelsvisible)] \
    1767         -command [itcl::code $this AdjustSetting -axislabelsvisible] \
     1768        -text "Axis Labels" \
     1769        -variable [itcl::scope _settings(-axislabels)] \
     1770        -command [itcl::code $this AdjustSetting -axislabels] \
    17681771        -font "Arial 9"
    1769 
    1770     checkbutton $inner.gridx \
    1771         -text "Show X Grid" \
     1772    label $inner.grid_l -text "Grid" -font "Arial 9"
     1773    checkbutton $inner.xgrid \
     1774        -text "X" \
    17721775        -variable [itcl::scope _settings(-xgrid)] \
    17731776        -command [itcl::code $this AdjustSetting -xgrid] \
    17741777        -font "Arial 9"
    1775     checkbutton $inner.gridy \
    1776         -text "Show Y Grid" \
     1778    checkbutton $inner.ygrid \
     1779        -text "Y" \
    17771780        -variable [itcl::scope _settings(-ygrid)] \
    17781781        -command [itcl::code $this AdjustSetting -ygrid] \
    17791782        -font "Arial 9"
    1780     checkbutton $inner.gridz \
    1781         -text "Show Z Grid" \
     1783    checkbutton $inner.zgrid \
     1784        -text "Z" \
    17821785        -variable [itcl::scope _settings(-zgrid)] \
    17831786        -command [itcl::code $this AdjustSetting -zgrid] \
     1787        -font "Arial 9"
     1788    checkbutton $inner.minorticks \
     1789        -text "Minor Ticks" \
     1790        -variable [itcl::scope _settings(-axisminorticks)] \
     1791        -command [itcl::code $this AdjustSetting -axisminorticks] \
    17841792        -font "Arial 9"
    17851793
     
    17981806
    17991807    blt::table $inner \
    1800         0,0 $inner.visible -anchor w -cspan 2 \
    1801         1,0 $inner.labels  -anchor w -cspan 2 \
    1802         2,0 $inner.gridx   -anchor w -cspan 2 \
    1803         3,0 $inner.gridy   -anchor w -cspan 2 \
    1804         4,0 $inner.gridz   -anchor w -cspan 2 \
    1805         5,0 $inner.mode_l  -anchor w -cspan 2 -padx { 2 0 } \
    1806         6,0 $inner.mode    -fill x   -cspan 2
     1808        0,0 $inner.visible -anchor w -cspan 4 \
     1809        1,0 $inner.labels  -anchor w -cspan 4 \
     1810        2,0 $inner.minorticks  -anchor w -cspan 4 \
     1811        4,0 $inner.grid_l  -anchor w \
     1812        4,1 $inner.xgrid   -anchor w \
     1813        4,2 $inner.ygrid   -anchor w \
     1814        4,3 $inner.zgrid   -anchor w \
     1815        5,0 $inner.mode_l  -anchor w -padx { 2 0 } \
     1816        5,1 $inner.mode    -fill x   -cspan 3
    18071817
    18081818    blt::table configure $inner r* c* -resize none
    1809     blt::table configure $inner r7 c1 -resize expand
     1819    blt::table configure $inner r7 c6 -resize expand
     1820    blt::table configure $inner r3 -height 0.125i
    18101821}
    18111822
     
    25752586    }
    25762587    if { $_contourList(numLevels) < 1 } {
    2577         puts stderr "numLevels < 1"
     2588        # There are tools that set 0 levels to get cutplanes only
     2589        #puts stderr "numLevels < 1"
    25782590        return ""
    25792591    }
Note: See TracChangeset for help on using the changeset viewer.