Inheritance diagram for osgGA::UFOManipulator:
Public Member Functions | |
UFOManipulator () | |
virtual const char * | className () const |
virtual void | setByMatrix (const osg::Matrixd &matrix) |
virtual void | setByInverseMatrix (const osg::Matrixd &invmat) |
virtual osg::Matrixd | getMatrix () const |
virtual osg::Matrixd | getInverseMatrix () const |
virtual void | setNode (osg::Node *node) |
virtual const osg::Node * | getNode () const |
virtual osg::Node * | getNode () |
virtual void | computeHomePosition () |
virtual void | home (const osgGA::GUIEventAdapter &, osgGA::GUIActionAdapter &) |
void | home (double) |
virtual void | init (const GUIEventAdapter &, GUIActionAdapter &) |
bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa) |
void | getUsage (osg::ApplicationUsage &usage) const |
void | getCurrentPositionAsLookAt (osg::Vec3 &eye, osg::Vec3 ¢er, osg::Vec3 &up) |
The UFOManipulator is better suited for applications that employ architectural walk-throughs, or situations where the eyepoint motion model must move slowly, deliberately and well controlled.
The UFO Manipulator allows the following movements with the listed Key combinations:
UpArrow | Acceleration forward. | |
DownArrow | Acceleration backward (or deceleration forward). | |
LeftArrow | Rotate view and direction of travel to the left. | |
RightArrow | Rotate view and direction of travel to the right. | |
SpaceBar | Brake. Gradually decelerates linear and rotational movement. | |
Shift/UpArrow | Accelerate up. | |
Shift/DownArrow | Accelerate down. | |
Shift/LeftArrow | Accelerate (linearly) left. | |
Shift/RightArrow | Accelerate (linearly) right. | |
Shift/SpaceBar | Instant brake. Immediately stop all linear and rotational movement. |
Ctrl/UpArrow | Rotate view (but not direction of travel) up. | |
Ctrl/DownArrow | Rotate view (but not direction of travel) down. | |
Ctrl/LeftArrow | Rotate view (but not direction of travel) left. | |
Ctrl/RightArrow | Rotate view (but not direction of travel) right. | |
Ctrl/Return | Straightens out the view offset. |
|
Default constructor |
|
return className
Reimplemented from osgGA::MatrixManipulator. |
|
Computes the home position based on the extents and scale of the scene graph rooted at node Reimplemented from osgGA::MatrixManipulator. |
|
Report the current position as LookAt vectors |
|
Get the current inverse view matrix Implements osgGA::MatrixManipulator. |
|
Get the current viewmatrix Implements osgGA::MatrixManipulator. |
|
Get the root node of the subgraph this manipulator is driving the eye through Reimplemented from osgGA::MatrixManipulator. |
|
Get the root node of the subgraph this manipulator is driving the eye through (const) Reimplemented from osgGA::MatrixManipulator. |
|
Reports Usage parameters to the application Reimplemented from osgGA::GUIEventHandler. |
|
Handles incoming osgGA events Reimplemented from osgGA::MatrixManipulator. |
|
Move the camera to the default position. This version does not require GUIEventAdapter and GUIActionAdapter so may be called from somewhere other than a handle() method in GUIEventHandler. Application must be aware of implications. Reimplemented from osgGA::MatrixManipulator. |
|
Sets the viewpoint matrix to the home position Reimplemented from osgGA::MatrixManipulator. |
|
Start/restart the manipulator. FIXME: what does this actually mean? Provide examples. Reimplemented from osgGA::MatrixManipulator. |
|
Set the current position with the invers matrix
Implements osgGA::MatrixManipulator. |
|
Set the current position with a matrix
Implements osgGA::MatrixManipulator. |
|
Set the subgraph this manipulator is driving the eye through.
Reimplemented from osgGA::MatrixManipulator. |