Ignore:
Timestamp:
Jun 2, 2016, 8:19:06 AM (8 years ago)
Author:
dkearney
Message:

merging changes from trunk into multichoice branch

Location:
branches/multichoice
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/multichoice

  • branches/multichoice/gui/scripts/nanovisviewer.tcl

    r6240 r6371  
    119119
    120120    private variable _arcball ""
    121     private variable _dlist ""         ;# list of data objects
    122     private variable _obj2ovride       ;# maps dataobj => style override
    123     private variable _datasets         ;# contains all the dataobj-component
    124                                        ;# to volumes in the server
    125 
    126     private variable _reset 1          ;# Connection to server has been reset.
    127     private variable _click            ;# Info used for rotate operations.
    128     private variable _limits           ;# Autoscale min/max for all axes
    129     private variable _view             ;# View params for 3D view
     121    private variable _dlist "";         # list of data objects
     122    private variable _obj2ovride;       # maps dataobj => style override
     123    private variable _datasets;         # maps dataobj-component
     124                                        # to volumes in the server
     125
     126    private variable _reset 1;          # Connection to server has been reset.
     127    private variable _click;            # Info used for rotate operations.
     128    private variable _limits;           # Autoscale min/max for all axes
     129    private variable _view;             # View params for 3D view
    130130    private variable _parsedFunction
    131131    private variable _transferFunctionEditors
    132132    private variable _settings
    133     private variable _first ""         ;# This is the topmost volume.
    134     private variable _current ""       ;# Currently selected component
    135     private variable _volcomponents    ;# Maps component name to list of
    136                                        ;# dataobj-component tags
    137     private variable _componentsList   ;# List of components found
     133    private variable _first "";         # This is the topmost volume.
     134    private variable _current "";       # Currently selected component
     135    private variable _volcomponents;    # Maps component name to list of
     136                                        # dataobj-component tags
     137    private variable _componentsList;   # List of components found
    138138    private variable _cname2transferFunction
    139139    private variable _cname2defaultcolormap
     
    143143    private variable _resizeLegendPending 0
    144144
    145     private common _downloadPopup      ;# download options from popup
     145    private common _downloadPopup;      # download options from popup
    146146    private common _hardcopy
    147147}
     
    462462    set op [lindex $args 0]
    463463    switch -- $op {
    464         -objects {
     464        "-objects" {
    465465            # put the dataobj list in order according to -raise options
    466466            set dlist $_dlist
     
    477477            return $dlist
    478478        }
    479         -image {
     479        "-image" {
    480480            if {[llength $args] != 2} {
    481481                error "wrong # args: should be \"get -image view|legend\""
     
    871871        DoResize
    872872    }
    873 
     873    if { $_reset } {
     874        InitSettings -background -axesvisible -gridvisible
     875    }
    874876    set _first ""
    875877    SendCmd "volume state 0"
     
    926928
    927929    if { $_reset } {
    928         InitSettings -axesvisible -gridvisible \
    929             -opacity -light2side -isosurfaceshading \
     930        InitSettings -opacity -light2side -isosurfaceshading \
    930931            -ambient -diffuse -specularlevel -specularexponent \
    931932            -current
     
    15491550        } else {
    15501551            # $n : absolute value, compute relative
    1551             lappend list  [expr {(double($value)-$min)/($max-$min)]}
     1552            lappend list [expr {(double($value)-$min)/($max-$min)}]
    15521553        }
    15531554    }
     
    20292030    radiobutton $inner.image_button -text "Image File" \
    20302031        -variable [itcl::scope _downloadPopup(format)] \
    2031         -font "Arial 9 " \
     2032        -font "Arial 9" \
    20322033        -value image
    20332034    Rappture::Tooltip::for $inner.image_button \
Note: See TracChangeset for help on using the changeset viewer.