Changeset 6359 for trunk


Ignore:
Timestamp:
May 23, 2016, 6:00:40 PM (8 years ago)
Author:
ldelgass
Message:

more syncing viewers

Location:
trunk/gui/scripts
Files:
6 edited

Legend:

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

    r6338 r6359  
    151151    private variable _rotatePending 0
    152152    private variable _cutplanePending 0
    153     private variable _colorMode "vmag"; # Mode of colormap (vmag or scalar)
    154153    private variable _fields
    155154    private variable _curFldName ""
    156155    private variable _curFldLabel ""
    157156    private variable _curFldComp 3
     157    private variable _colorMode "vmag"; # Mode of colormap (vmag or scalar)
    158158    private variable _mouseOver "";     # what called LegendRangeAction:
    159159                                        # vmin or vmax
  • trunk/gui/scripts/vtkheightmapviewer.tcl

    r6355 r6359  
    262262
    263263    itk_component add fieldmenu {
    264         menu $itk_component(plotarea).menu \
    265             -relief flat \
    266             -tearoff 0
     264        menu $itk_component(plotarea).menu -relief flat -tearoff 0
    267265    } {
    268266        usual
     
    293291    }
    294292    pack $itk_component(reset) -side top -padx 2 -pady { 2 0 }
    295     Rappture::Tooltip::for $itk_component(reset) "Reset the view to the default zoom level"
     293    Rappture::Tooltip::for $itk_component(reset) \
     294        "Reset the view to the default zoom level"
    296295
    297296    itk_component add zoomin {
     
    924923        # Reset the camera and other view parameters
    925924        #
    926         InitSettings -isheightmap -background
     925        InitSettings -isheightmap -background \
     926            -xgrid -ygrid -zgrid -axismode \
     927            -axesvisible -axislabels -axisminorticks
    927928
    928929        # Setting a custom exponent and label format for axes is causing
     
    937938        #SendCmd "axis exp 0 0 0 1"
    938939
     940        SendCmd "axis tickpos outside"
    939941        SendCmd "axis lrot z 90"
    940942        $_arcball quaternion [ViewToQuaternion]
     
    10061008    InitSettings -stretchtofit -outline
    10071009    if { $_reset } {
    1008         SendCmd "axis tickpos outside"
    1009         #SendCmd "axis lformat all %g"
    1010 
    10111010        foreach axis { x y z } {
    10121011            set label ""
     
    10651064        }
    10661065        PanCamera
    1067         InitSettings -xgrid -ygrid -zgrid \
    1068             -axesvisible -axislabels -heightmapscale -field -isheightmap \
    1069             -numisolines
     1066        InitSettings -heightmapscale -field -isheightmap -numisolines
    10701067        if { [array size _fields] < 2 } {
    10711068            catch {blt::table forget $itk_component(field) $itk_component(field_l)}
  • trunk/gui/scripts/vtkimageviewer.tcl

    r6357 r6359  
    244244
    245245    itk_component add fieldmenu {
    246         menu $itk_component(plotarea).menu \
    247             -relief flat \
    248             -tearoff 0
     246        menu $itk_component(plotarea).menu -relief flat -tearoff 0
    249247    } {
    250248        usual
     
    275273    }
    276274    pack $itk_component(reset) -side top -padx 2 -pady { 2 0 }
    277     Rappture::Tooltip::for $itk_component(reset) "Reset the view to the default zoom level"
     275    Rappture::Tooltip::for $itk_component(reset) \
     276        "Reset the view to the default zoom level"
    278277
    279278    itk_component add zoomin {
     
    908907        # Reset the camera and other view parameters
    909908        #
    910         InitSettings -view3d -background
    911 
     909        InitSettings -view3d -background \
     910            -xgrid -ygrid -zgrid -axismode \
     911            -axesvisible -axislabels -axisminorticks
     912
     913        SendCmd "axis tickpos outside"
    912914        SendCmd "axis lrot z 90"
    913915        $_arcball quaternion [ViewToQuaternion]
     
    973975    InitSettings -stretchtofit -outline
    974976    if { $_reset } {
    975         SendCmd "axis tickpos outside"
    976         #SendCmd "axis lformat all %g"
    977 
    978977        foreach axis { x y z } {
    979978            set label ""
     
    10161015        }
    10171016        PanCamera
    1018         InitSettings -xgrid -ygrid -zgrid \
    1019             -axesvisible -axislabels -field -view3d
     1017        InitSettings -field -view3d
    10201018        if { [array size _fields] < 2 } {
    10211019            catch {blt::table forget $itk_component(field) $itk_component(field_l)}
  • trunk/gui/scripts/vtkisosurfaceviewer.tcl

    r6338 r6359  
    160160    private variable _rotatePending 0
    161161    private variable _cutplanePending 0
    162     private variable _colorMode "scalar"; # Mode of colormap (vmag or scalar)
    163162    private variable _fields
    164163    private variable _curFldName ""
    165164    private variable _curFldLabel ""
     165    private variable _colorMode "scalar"; # Mode of colormap (vmag or scalar)
    166166    private variable _mouseOver "";     # what called LegendRangeAction:
    167167                                        # vmin or vmax
  • trunk/gui/scripts/vtkstreamlinesviewer.tcl

    r6355 r6359  
    146146    private variable _curFldName ""
    147147    private variable _curFldLabel ""
     148    private variable _colorMode "vmag"; # Mode of colormap (vmag or scalar)
    148149    private variable _streamlinesLength 0
    149150    private variable _numSeeds 200
    150     private variable _colorMode "vmag"; # Mode of colormap (vmag or scalar)
    151151
    152152    private common _downloadPopup;      # download options from popup
     
    301301    }
    302302    pack $itk_component(reset) -side top -padx 2 -pady 2
    303     Rappture::Tooltip::for $itk_component(reset) "Reset the view to the default zoom level"
     303    Rappture::Tooltip::for $itk_component(reset) \
     304        "Reset the view to the default zoom level"
    304305
    305306    itk_component add zoomin {
  • trunk/gui/scripts/vtksurfaceviewer.tcl

    r6344 r6359  
    139139    private variable _legendPending 0
    140140    private variable _rotatePending 0
    141     private variable _colorMode "scalar"; # Mode of colormap (vmag or scalar)
    142141    private variable _fields
    143142    private variable _curFldName ""
    144143    private variable _curFldLabel ""
     144    private variable _colorMode "scalar"; # Mode of colormap (vmag or scalar)
    145145
    146146    private common _downloadPopup;      # download options from popup
Note: See TracChangeset for help on using the changeset viewer.