Changeset 3414 for trunk/gui/scripts


Ignore:
Timestamp:
Mar 2, 2013, 2:06:07 PM (12 years ago)
Author:
gah
Message:

need camera reset for vtkviewer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/vtkviewer.tcl

    r3394 r3414  
    986986            }
    987987        }
     988    }
     989    if { $_reset } {
     990        set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     991        $_arcball quaternion $q
     992        SendCmd "camera reset"
     993        if { $_view(ortho)} {
     994            SendCmd "camera mode ortho"
     995        } else {
     996            SendCmd "camera mode persp"
     997        }
     998        DoRotate
     999        PanCamera
    9881000    }
    9891001    FixSettings molecule-representation
Note: See TracChangeset for help on using the changeset viewer.