Changeset 4766 for branches/1.3/gui/scripts/vtkisosurfaceviewer.tcl
- Timestamp:
- Nov 23, 2014, 1:12:25 AM (10 years ago)
- Location:
- branches/1.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/gui/scripts/vtkisosurfaceviewer.tcl
r4759 r4766 95 95 private method PanCamera {} 96 96 private method Pick {x y} 97 private method QuaternionToView { q } { 98 foreach { _view(-qw) _view(-qx) _view(-qy) _view(-qz) } $q break 99 } 97 100 private method Rebuild {} 98 101 private method ReceiveDataset { args } … … 107 110 private method SetOrientation { side } 108 111 private method Slice {option args} 109 private method Zoom {option}110 112 private method ViewToQuaternion {} { 111 113 return [list $_view(-qw) $_view(-qx) $_view(-qy) $_view(-qz)] 112 114 } 115 private method Zoom {option} 113 116 114 117 private variable _arcball "" … … 464 467 EnableWaitDialog 500 465 468 Connect 469 # FIXME: Removing this update breaks wizard mode (see examples/3D) 470 # However, it also allows an error in the initialization order 471 # where FieldResult::add is called from ResultViewer before this 472 # constructor is completed. 473 #update 466 474 } 467 475 … … 523 531 524 532 itcl::body Rappture::VtkIsosurfaceViewer::EventuallyRotate { q } { 525 foreach { _view(-qw) _view(-qx) _view(-qy) _view(-qz) } $q break533 QuaternionToView $q 526 534 if { !$_rotatePending } { 527 535 set _rotatePending 1 … … 1151 1159 "reset" { 1152 1160 array set _view { 1153 -qw 0.8535531154 -qx -0.3535531155 -qy 0.3535531156 -qz 0.1464471157 -xpan 01158 -ypan 01159 -zoom 1.01161 -qw 0.853553 1162 -qx -0.353553 1163 -qy 0.353553 1164 -qz 0.146447 1165 -xpan 0 1166 -ypan 0 1167 -zoom 1.0 1160 1168 } 1161 1169 if { $_first != "" } { … … 1233 1241 itcl::body Rappture::VtkIsosurfaceViewer::Pick {x y} { 1234 1242 foreach tag [CurrentDatasets -visible] { 1235 SendCmd NoSplash"dataset getscalar pixel $x $y $tag"1243 SendCmd "dataset getscalar pixel $x $y $tag" 1236 1244 } 1237 1245 } … … 2021 2029 } 2022 2030 2023 2024 2025 2031 # 2026 2032 # camera -- … … 2055 2061 } 2056 2062 "-zoom" { 2057 SendCmd "camera zoom $_view( -zoom)"2063 SendCmd "camera zoom $_view($what)" 2058 2064 } 2059 2065 } … … 2566 2572 foreach name { -qw -qx -qy -qz } value $positions($side) { 2567 2573 set _view($name) $value 2568 } 2574 } 2569 2575 set q [ViewToQuaternion] 2570 2576 $_arcball quaternion $q
Note: See TracChangeset
for help on using the changeset viewer.