

Public Member Functions | |
| TrackballManipulator () | |
| 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 osgUtil::SceneView::FusionDistanceMode | getFusionDistanceMode () const |
| virtual float | getFusionDistanceValue () const |
| virtual void | setNode (osg::Node *) |
| virtual const osg::Node * | getNode () const |
| virtual osg::Node * | getNode () |
| virtual void | home (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us) |
| void | setModelScale (float scale) |
| virtual void | init (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us) |
| virtual bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us) |
| virtual void | getUsage (osg::ApplicationUsage &usage) const |
| void | computePosition (const osg::Vec3 &eye, const osg::Vec3 &lv, const osg::Vec3 &up) |
Protected Member Functions | |
| virtual | ~TrackballManipulator () |
| void | flushMouseEventStack () |
| void | addMouseEvent (const osgGA::GUIEventAdapter &ea) |
| bool | calcMovement () |
| void | trackball (osg::Vec3 &axis, float &angle, float p1x, float p1y, float p2x, float p2y) |
| float | tb_project_to_sphere (float r, float x, float y) |
| bool | isMouseMoving () |
Protected Attributes | |
| osg::ref_ptr< const osgGA::GUIEventAdapter > | _ga_t1 |
| osg::ref_ptr< const osgGA::GUIEventAdapter > | _ga_t0 |
| osg::ref_ptr< osg::Node > | _node |
| float | _modelScale |
| float | _minimumZoomScale |
| bool | _thrown |
| osg::Vec3 | _center |
| osg::Quat | _rotation |
| float | _distance |
|
|
|
|
|
|
|
|
Add the current mouse GUIEvent to internal stack. |
|
|
For the give mouse movement calculate the movement of the camera. Return true is camera has moved and a redraw is required. |
|
|
Definition at line 33 of file TrackballManipulator. |
|
||||||||||||||||
|
|
|
|
Reset the internal GUIEvent stack. |
|
|
Get the FusionDistanceMode. Used by SceneView for setting up setereo convergence. Definition at line 48 of file TrackballManipulator. |
|
|
Get the FusionDistanceValue. Used by SceneView for setting up setereo convergence. Definition at line 51 of file TrackballManipulator. References _distance. |
|
|
get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. |
|
|
get the position of the manipulator as 4x4 Matrix. |
|
|
Return node if attached. |
|
|
Return node if attached. |
|
|
Get the keyboard and mouse usage of this manipulator. |
|
||||||||||||
|
handle events, return true if handled, false otherwise. |
|
||||||||||||
|
Move the camera to the default position. May be ignored by manipulators if home functionality is not appropriate. |
|
||||||||||||
|
Start/restart the manipulator. |
|
|
Check the speed at which the mouse is moving. If speed is below a threshold then return false, otherwise return true. |
|
|
set the position of the matrix manipulator using a 4x4 Matrix. Definition at line 39 of file TrackballManipulator. References setByMatrix(). |
|
|
set the position of the matrix manipulator using a 4x4 Matrix. Referenced by setByInverseMatrix(). |
|
|
Definition at line 69 of file TrackballManipulator. References _modelScale. |
|
|
Attach a node to the manipulator. Automatically detaches previously attached node. setNode(NULL) detaches previously nodes. Is ignored by manipulators which do not require a reference model. |
|
||||||||||||||||
|
|
|
||||||||||||||||||||||||||||
|
|
|
|
Definition at line 113 of file TrackballManipulator. |
|
|
Definition at line 115 of file TrackballManipulator. Referenced by getFusionDistanceValue(). |
|
|
Definition at line 104 of file TrackballManipulator. |
|
|
Definition at line 103 of file TrackballManipulator. |
|
|
Definition at line 109 of file TrackballManipulator. |
|
|
Definition at line 108 of file TrackballManipulator. Referenced by setModelScale(). |
|
|
Definition at line 106 of file TrackballManipulator. |
|
|
Definition at line 114 of file TrackballManipulator. |
|
|
Definition at line 111 of file TrackballManipulator. |
1.3.6