Changeset 5266 for branches/1.3
- Timestamp:
- Apr 17, 2015, 8:55:43 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3/gui/scripts/nanovisviewer.tcl
r5260 r5266 90 90 private method BuildViewTab {} 91 91 private method BuildVolumeTab {} 92 private method ComputeTransferFunc { tf }92 private method ComputeTransferFunction { tf } 93 93 private method Connect {} 94 94 private method CurrentDatasets {{what -all}} … … 100 100 private method GetVolumeInfo { w } 101 101 private method InitSettings { args } 102 private method NameTransferFunc { dataobj comp }102 private method NameTransferFunction { dataobj comp } 103 103 private method Pan {option x y} 104 104 private method PanCamera {} … … 114 114 private method ResetColormap { color } 115 115 private method Rotate {option x y} 116 private method SendTransferFunc s {}116 private method SendTransferFunctions {} 117 117 private method SetOrientation { side } 118 118 private method Slice {option args} … … 138 138 # dataobj-components using the tf. 139 139 140 private variable _reset 1 ;# Connection to server has been reset 141 private variable _click ;# info used for rotate operations142 private variable _limits ;# autoscale min/max for all axes143 private variable _view ;# view params for 3D view140 private variable _reset 1 ;# Connection to server has been reset. 141 private variable _click ;# Info used for rotate operations. 142 private variable _limits ;# Autoscale min/max for all axes 143 private variable _view ;# View params for 3D view 144 144 private variable _isomarkers ;# array of isosurface level values 0..1 145 145 private variable _settings … … 150 150 private variable _first "" ;# This is the topmost volume. 151 151 152 common _downloadPopup ;# download options from popup152 common _downloadPopup ;# download options from popup 153 153 private common _hardcopy 154 154 private variable _width 0 … … 176 176 $_dispatcher register !send_transfunc 177 177 $_dispatcher dispatch $this !send_transfunc \ 178 "[itcl::code $this SendTransferFunc s]; list"178 "[itcl::code $this SendTransferFunctions]; list" 179 179 180 180 # Rebuild event … … 664 664 665 665 # ---------------------------------------------------------------------- 666 # USAGE: SendTransferFunc s667 # ---------------------------------------------------------------------- 668 itcl::body Rappture::NanovisViewer::SendTransferFunc s {} {666 # USAGE: SendTransferFunctions 667 # ---------------------------------------------------------------------- 668 itcl::body Rappture::NanovisViewer::SendTransferFunctions {} { 669 669 if { $_first == "" } { 670 670 puts stderr "first not set" … … 692 692 set _settings($this-$tf-opacity) $opacity 693 693 set _settings($this-$tf-thickness) $thickness 694 ComputeTransferFunc $tf694 ComputeTransferFunction $tf 695 695 # FIXME: Need to the send information as to what transfer functions 696 696 # to update so that we only update the transfer function … … 929 929 set _serverDatasets($tag) 0 930 930 } 931 NameTransferFunc $dataobj $cname931 NameTransferFunction $dataobj $cname 932 932 } 933 933 } … … 1319 1319 1320 1320 # 1321 # NameTransferFunc --1321 # NameTransferFunction -- 1322 1322 # 1323 1323 # Creates a transfer function name based on the <style> settings in the … … 1333 1333 # now. 1334 1334 # 1335 itcl::body Rappture::NanovisViewer::NameTransferFunc { dataobj cname } {1335 itcl::body Rappture::NanovisViewer::NameTransferFunction { dataobj cname } { 1336 1336 array set style { 1337 1337 -color BCGYR … … 1349 1349 1350 1350 # 1351 # ComputeTransferFunc --1351 # ComputeTransferFunction -- 1352 1352 # 1353 1353 # Computes and sends the transfer function to the render server. It's … … 1357 1357 # the alpha map of the transfer function. 1358 1358 # 1359 itcl::body Rappture::NanovisViewer::ComputeTransferFunc { tf } {1359 itcl::body Rappture::NanovisViewer::ComputeTransferFunction { tf } { 1360 1360 array set style { 1361 1361 -color BCGYR … … 1549 1549 1550 1550 # ---------------------------------------------------------------------- 1551 # USAGE: UpdateTransferFunc s1551 # USAGE: UpdateTransferFunctions 1552 1552 # ---------------------------------------------------------------------- 1553 1553 itcl::body Rappture::NanovisViewer::updateTransferFunctions {} {
Note: See TracChangeset
for help on using the changeset viewer.