Changeset 4430 for trunk/gui


Ignore:
Timestamp:
Jun 25, 2014 1:29:11 PM (10 years ago)
Author:
ldelgass
Message:

refactor grid settings names

File:
1 edited

Legend:

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

    r4398 r4430  
    242242        -numcontours                    10
    243243        -outline                        0
    244         -xaxisgrid                      0
    245244        -xcutplaneposition              50
    246245        -xcutplanevisible               1
    247         -yaxisgrid                      0
     246        -xgrid                          0
    248247        -ycutplaneposition              50
    249248        -ycutplanevisible               1
    250         -zaxisgrid                      0
     249        -ygrid                          0
    251250        -zcutplaneposition              50
    252251        -zcutplanevisible               1
     252        -zgrid                          0
    253253    }
    254254    array set _changed {
     
    958958        PanCamera
    959959        set _first ""
    960         InitSettings -xaxisgrid -yaxisgrid -zaxisgrid -axismode \
     960        InitSettings -xgrid -ygrid -zgrid -axismode \
    961961            -axesvisible -axislabelsvisible
    962962        foreach axis { x y z } {
     
    13311331            SendCmd "axis labels all $bool"
    13321332        }
    1333         "-xaxisgrid" - "-yaxisgrid" - "-zaxisgrid" {
     1333        "-xgrid" - "-ygrid" - "-zgrid" {
    13341334            set axis [string tolower [string range $what 1 1]]
    13351335            set bool $_settings($what)
     
    17561756    checkbutton $inner.gridx \
    17571757        -text "Show X Grid" \
    1758         -variable [itcl::scope _settings(-xaxisgrid)] \
    1759         -command [itcl::code $this AdjustSetting -xaxisgrid] \
     1758        -variable [itcl::scope _settings(-xgrid)] \
     1759        -command [itcl::code $this AdjustSetting -xgrid] \
    17601760        -font "Arial 9"
    17611761    checkbutton $inner.gridy \
    17621762        -text "Show Y Grid" \
    1763         -variable [itcl::scope _settings(-yaxisgrid)] \
    1764         -command [itcl::code $this AdjustSetting -yaxisgrid] \
     1763        -variable [itcl::scope _settings(-ygrid)] \
     1764        -command [itcl::code $this AdjustSetting -ygrid] \
    17651765        -font "Arial 9"
    17661766    checkbutton $inner.gridz \
    17671767        -text "Show Z Grid" \
    1768         -variable [itcl::scope _settings(-zaxisgrid)] \
    1769         -command [itcl::code $this AdjustSetting -zaxisgrid] \
     1768        -variable [itcl::scope _settings(-zgrid)] \
     1769        -command [itcl::code $this AdjustSetting -zgrid] \
    17701770        -font "Arial 9"
    17711771
Note: See TracChangeset for help on using the changeset viewer.