Changeset 6371 for branches/multichoice/gui/scripts/nanovisviewer.tcl
- Timestamp:
- Jun 2, 2016, 8:19:06 AM (8 years ago)
- Location:
- branches/multichoice
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/multichoice
- Property svn:mergeinfo changed
-
branches/multichoice/gui/scripts/nanovisviewer.tcl
r6240 r6371 119 119 120 120 private variable _arcball "" 121 private variable _dlist "" ;# list of data objects122 private variable _obj2ovride ;# maps dataobj => style override123 private variable _datasets ;# contains all thedataobj-component124 ;# to volumes in the server125 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 axes129 private variable _view ;# View params for 3D view121 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 130 130 private variable _parsedFunction 131 131 private variable _transferFunctionEditors 132 132 private variable _settings 133 private variable _first "" ;# This is the topmost volume.134 private variable _current "" ;# Currently selected component135 private variable _volcomponents ;# Maps component name to list of136 ;# dataobj-component tags137 private variable _componentsList ;# List of components found133 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 138 138 private variable _cname2transferFunction 139 139 private variable _cname2defaultcolormap … … 143 143 private variable _resizeLegendPending 0 144 144 145 private common _downloadPopup ;# download options from popup145 private common _downloadPopup; # download options from popup 146 146 private common _hardcopy 147 147 } … … 462 462 set op [lindex $args 0] 463 463 switch -- $op { 464 -objects{464 "-objects" { 465 465 # put the dataobj list in order according to -raise options 466 466 set dlist $_dlist … … 477 477 return $dlist 478 478 } 479 -image{479 "-image" { 480 480 if {[llength $args] != 2} { 481 481 error "wrong # args: should be \"get -image view|legend\"" … … 871 871 DoResize 872 872 } 873 873 if { $_reset } { 874 InitSettings -background -axesvisible -gridvisible 875 } 874 876 set _first "" 875 877 SendCmd "volume state 0" … … 926 928 927 929 if { $_reset } { 928 InitSettings -axesvisible -gridvisible \ 929 -opacity -light2side -isosurfaceshading \ 930 InitSettings -opacity -light2side -isosurfaceshading \ 930 931 -ambient -diffuse -specularlevel -specularexponent \ 931 932 -current … … 1549 1550 } else { 1550 1551 # $n : absolute value, compute relative 1551 lappend list [expr {(double($value)-$min)/($max-$min)]}1552 lappend list [expr {(double($value)-$min)/($max-$min)}] 1552 1553 } 1553 1554 } … … 2029 2030 radiobutton $inner.image_button -text "Image File" \ 2030 2031 -variable [itcl::scope _downloadPopup(format)] \ 2031 -font "Arial 9 2032 -font "Arial 9" \ 2032 2033 -value image 2033 2034 Rappture::Tooltip::for $inner.image_button \
Note: See TracChangeset
for help on using the changeset viewer.