|
CEDRIC
Revision_backup-2009-02
|
Simple trackball which operates on MyCamera. More...
#include <MyCameraManipulator.h>
Public Member Functions | |
| MyCameraManipulator (MyCamera &myCamera) | |
| virtual | ~MyCameraManipulator () |
MatrixManipulator Implementation | |
| virtual const char * | className () const |
| virtual void | setByMatrix (const osg::Matrixd &matrix) |
| virtual void | setByInverseMatrix (const osg::Matrixd &matrix) |
| virtual osg::Matrixd | getMatrix () const |
| virtual osg::Matrixd | getInverseMatrix () const |
| virtual void | setNode (osg::Node *) |
| Overrides settings applied by setBoundingBox() More... | |
| virtual const osg::Node * | getNode () const |
| virtual osg::Node * | getNode () |
| virtual void | home (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us) |
| virtual void | home (double) |
| virtual bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us) |
Protected Member Functions | |
| virtual bool | calcMovement () |
| Helper function called from handle(). More... | |
| void | flushMouseEventStack () |
| Reset the internal GUIEvent stack. More... | |
| void | addMouseEvent (const osgGA::GUIEventAdapter &ea) |
| Add the current mouse GUIEvent to internal stack. More... | |
Protected Attributes | |
| osg::ref_ptr< const osgGA::GUIEventAdapter > | _ga_t1 |
| osg::ref_ptr< const osgGA::GUIEventAdapter > | _ga_t0 |
Simple trackball which operates on MyCamera.
The trackball implmementation is taken from osgGA::TrackballManipulator.
| MyCameraManipulator::MyCameraManipulator | ( | MyCamera & | myCamera | ) |
References MyCamera::getLookAt().
|
inlinevirtual |
|
inlineprotected |
|
protectedvirtual |
Helper function called from handle().
References _ga_t0, _ga_t1, MyCamera::distance(), MyCamera::pan(), MyCamera::rotation(), MyCamera::setDistance(), MyCamera::setRotation(), and MyCamera::translate().
Referenced by handle().
|
inlinevirtual |
|
inlineprotected |
|
virtual |
References MyCamera::getInverseViewMatrix().
|
virtual |
References MyCamera::getViewMatrix().
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
References addMouseEvent(), calcMovement(), and MyCamera::update().
|
virtual |
|
virtual |
|
inlinevirtual |
References setByMatrix().
|
virtual |
Referenced by setByInverseMatrix().
|
virtual |
Overrides settings applied by setBoundingBox()
|
protected |
Referenced by addMouseEvent(), calcMovement(), and flushMouseEventStack().
|
protected |
Internal event stack comprising last two mouse events.
Referenced by addMouseEvent(), calcMovement(), and flushMouseEventStack().
1.8.6