Ignore:
Timestamp:
Nov 23, 2014, 1:12:25 AM (10 years ago)
Author:
ldelgass
Message:

merge r4765 from trunk

Location:
branches/1.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3

    • Property svn:mergeinfo changed
      /trunkmerged: 4765
  • branches/1.3/gui/scripts/vtkisosurfaceviewer.tcl

    r4759 r4766  
    9595    private method PanCamera {}
    9696    private method Pick {x y}
     97    private method QuaternionToView { q } {
     98        foreach { _view(-qw) _view(-qx) _view(-qy) _view(-qz) } $q break
     99    }
    97100    private method Rebuild {}
    98101    private method ReceiveDataset { args }
     
    107110    private method SetOrientation { side }
    108111    private method Slice {option args}
    109     private method Zoom {option}
    110112    private method ViewToQuaternion {} {
    111113        return [list $_view(-qw) $_view(-qx) $_view(-qy) $_view(-qz)]
    112114    }
     115    private method Zoom {option}
    113116
    114117    private variable _arcball ""
     
    464467    EnableWaitDialog 500
    465468    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
    466474}
    467475
     
    523531
    524532itcl::body Rappture::VtkIsosurfaceViewer::EventuallyRotate { q } {
    525     foreach { _view(-qw) _view(-qx) _view(-qy) _view(-qz) } $q break
     533    QuaternionToView $q
    526534    if { !$_rotatePending } {
    527535        set _rotatePending 1
     
    11511159        "reset" {
    11521160            array set _view {
    1153                 -qw     0.853553
    1154                 -qx     -0.353553
    1155                 -qy     0.353553
    1156                 -qz     0.146447
    1157                 -xpan   0
    1158                 -ypan   0
    1159                 -zoom   1.0
     1161                -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
    11601168            }
    11611169            if { $_first != "" } {
     
    12331241itcl::body Rappture::VtkIsosurfaceViewer::Pick {x y} {
    12341242    foreach tag [CurrentDatasets -visible] {
    1235         SendCmdNoSplash "dataset getscalar pixel $x $y $tag"
     1243        SendCmd "dataset getscalar pixel $x $y $tag"
    12361244    }
    12371245}
     
    20212029}
    20222030
    2023 
    2024 
    20252031#
    20262032#  camera --
     
    20552061                }
    20562062                "-zoom" {
    2057                     SendCmd "camera zoom $_view(-zoom)"
     2063                    SendCmd "camera zoom $_view($what)"
    20582064                }
    20592065             }
     
    25662572    foreach name { -qw -qx -qy -qz } value $positions($side) {
    25672573        set _view($name) $value
    2568     } 
     2574    }
    25692575    set q [ViewToQuaternion]
    25702576    $_arcball quaternion $q
Note: See TracChangeset for help on using the changeset viewer.