Inheritance diagram for osgGA::MatrixManipulator:
Public Member Functions | |
virtual const char * | className () const |
return the name of the object's class type. | |
virtual void | setMinimumDistance (float minimumDistance) |
set the minimum distance (as ratio) the eye point can be zoomed in towards the center before the center is pushed forward. | |
float | getMinimumDistance () const |
get the minimum distance (as ratio) the eye point can be zoomed in | |
virtual void | setCoordinateFrameCallback (CoordinateFrameCallback *cb) |
set the coordinate frame which callback tells the manipulator which way is up, east and north. | |
CoordinateFrameCallback * | getCoordinateFrameCallback () |
get the coordinate frame callback which tells the manipulator which way is up, east and north. | |
const CoordinateFrameCallback * | getCoordinateFrameCallback () const |
get the coordinate frame callback which tells the manipulator which way is up, east and north. | |
osg::CoordinateFrame | getCoordinateFrame (const osg::Vec3d &position) const |
get the coordinate frame. | |
osg::Vec3d | getSideVector (const osg::CoordinateFrame &cf) const |
osg::Vec3d | getFrontVector (const osg::CoordinateFrame &cf) const |
osg::Vec3d | getUpVector (const osg::CoordinateFrame &cf) const |
virtual void | setByMatrix (const osg::Matrixd &matrix)=0 |
set the position of the matrix manipulator using a 4x4 Matrix. | |
virtual void | setByInverseMatrix (const osg::Matrixd &matrix)=0 |
set the position of the matrix manipulator using a 4x4 Matrix. | |
virtual osg::Matrixd | getMatrix () const=0 |
get the position of the manipulator as 4x4 Matrix. | |
virtual osg::Matrixd | getInverseMatrix () const=0 |
get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. | |
virtual osgUtil::SceneView::FusionDistanceMode | getFusionDistanceMode () const |
Get the FusionDistanceMode. | |
virtual float | getFusionDistanceValue () const |
Get the FusionDistanceValue. | |
void | setIntersectTraversalMask (unsigned int mask) |
Set the mask to use when set up intersection traversal such as used in manipulators that follow terrain or have collision detection. | |
unsigned int | getIntersectTraversalMask () const |
Get the mask to use when set up intersection traversal such as used in manipulators that follow terrain or have collision detection. | |
virtual void | setNode (osg::Node *) |
Attach a node to the manipulator, automatically detaching any previously attached node. | |
virtual const osg::Node * | getNode () const |
Return const node if attached. | |
virtual osg::Node * | getNode () |
Return node if attached. | |
virtual void | setHomePosition (const osg::Vec3d &eye, const osg::Vec3d ¢er, const osg::Vec3d &up, bool autoComputeHomePosition=false) |
Manually set the home position, and set the automatic compute of home position. | |
virtual void | getHomePosition (osg::Vec3d &eye, osg::Vec3d ¢er, osg::Vec3d &up) const |
Get the mnaully set home position. | |
virtual void | setAutoComputeHomePosition (bool flag) |
Set whether the automatic compute of the home position is enabled. | |
bool | getAutoComputeHomePosition () const |
Get whether the automatic compute of the home position is enabled. | |
virtual void | computeHomePosition () |
Compute the home position. | |
virtual void | home (const GUIEventAdapter &,GUIActionAdapter &) |
Move the camera to the default position. | |
virtual void | home (double) |
Move the camera to the default position. | |
virtual void | init (const GUIEventAdapter &,GUIActionAdapter &) |
Start/restart the manipulator. | |
virtual bool | handle (const GUIEventAdapter &ea, GUIActionAdapter &us) |
Handle events, return true if handled, false otherwise. | |
virtual void | accept (GUIEventHandlerVisitor &v) |
Handle visitations. | |
Protected Member Functions | |
MatrixManipulator () | |
virtual | ~MatrixManipulator () |
Protected Attributes | |
double | _minimumDistance |
unsigned int | _intersectTraversalMask |
bool | _autoComputeHomePosition |
osg::Vec3d | _homeEye |
osg::Vec3d | _homeCenter |
osg::Vec3d | _homeUp |
osg::ref_ptr< CoordinateFrameCallback > | _coordinateFrameCallback |
|
|
|
|
|
Handle visitations.
Reimplemented from osgGA::GUIEventHandler. |
|
return the name of the object's class type. Must be defined by derived classes. Implements osg::Object. Reimplemented in osgGA::AnimationPathManipulator, osgGA::DriveManipulator, osgGA::FlightManipulator, osgGA::KeySwitchMatrixManipulator, osgGA::NodeTrackerManipulator, osgGA::TerrainManipulator, osgGA::TrackballManipulator, and osgGA::UFOManipulator. |
|
Compute the home position.
Reimplemented in osgGA::DriveManipulator, osgGA::KeySwitchMatrixManipulator, osgGA::NodeTrackerManipulator, and osgGA::UFOManipulator. |
|
Get whether the automatic compute of the home position is enabled.
|
|
get the coordinate frame.
|
|
get the coordinate frame callback which tells the manipulator which way is up, east and north.
|
|
get the coordinate frame callback which tells the manipulator which way is up, east and north.
|
|
|
|
Get the FusionDistanceMode. Used by SceneView for setting up setereo convergence. Reimplemented in osgGA::KeySwitchMatrixManipulator, osgGA::NodeTrackerManipulator, osgGA::TerrainManipulator, and osgGA::TrackballManipulator. |
|
Get the FusionDistanceValue. Used by SceneView for setting up setereo convergence. Reimplemented in osgGA::KeySwitchMatrixManipulator, osgGA::NodeTrackerManipulator, osgGA::TerrainManipulator, and osgGA::TrackballManipulator. |
|
Get the mnaully set home position.
|
|
Get the mask to use when set up intersection traversal such as used in manipulators that follow terrain or have collision detection.
|
|
get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix.
Implemented in osgGA::AnimationPathManipulator, osgGA::DriveManipulator, osgGA::FlightManipulator, osgGA::KeySwitchMatrixManipulator, osgGA::NodeTrackerManipulator, osgGA::TerrainManipulator, osgGA::TrackballManipulator, and osgGA::UFOManipulator. |
|
get the position of the manipulator as 4x4 Matrix.
Implemented in osgGA::AnimationPathManipulator, osgGA::DriveManipulator, osgGA::FlightManipulator, osgGA::KeySwitchMatrixManipulator, osgGA::NodeTrackerManipulator, osgGA::TerrainManipulator, osgGA::TrackballManipulator, and osgGA::UFOManipulator. |
|
get the minimum distance (as ratio) the eye point can be zoomed in
|
|
Return node if attached.
Reimplemented in osgGA::DriveManipulator, osgGA::FlightManipulator, osgGA::KeySwitchMatrixManipulator, osgGA::NodeTrackerManipulator, osgGA::TerrainManipulator, osgGA::TrackballManipulator, and osgGA::UFOManipulator. |
|
Return const node if attached.
Reimplemented in osgGA::DriveManipulator, osgGA::FlightManipulator, osgGA::KeySwitchMatrixManipulator, osgGA::NodeTrackerManipulator, osgGA::TerrainManipulator, osgGA::TrackballManipulator, and osgGA::UFOManipulator. |
|
|
|
|
|
Handle events, return true if handled, false otherwise.
Reimplemented from osgGA::GUIEventHandler. Reimplemented in osgGA::AnimationPathManipulator, osgGA::DriveManipulator, osgGA::FlightManipulator, osgGA::KeySwitchMatrixManipulator, osgGA::NodeTrackerManipulator, osgGA::TerrainManipulator, and osgGA::TrackballManipulator. |
|
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 in osgGA::AnimationPathManipulator, osgGA::TrackballManipulator, and osgGA::UFOManipulator. |
|
Move the camera to the default position. May be ignored by manipulators if home functionality is not appropriate. Reimplemented in osgGA::AnimationPathManipulator, osgGA::DriveManipulator, osgGA::FlightManipulator, osgGA::KeySwitchMatrixManipulator, osgGA::NodeTrackerManipulator, osgGA::TerrainManipulator, and osgGA::TrackballManipulator. |
|
Start/restart the manipulator. FIXME: what does this actually mean? Provide examples. Reimplemented in osgGA::AnimationPathManipulator, osgGA::DriveManipulator, osgGA::FlightManipulator, osgGA::KeySwitchMatrixManipulator, osgGA::NodeTrackerManipulator, osgGA::TerrainManipulator, osgGA::TrackballManipulator, and osgGA::UFOManipulator. |
|
Set whether the automatic compute of the home position is enabled.
Reimplemented in osgGA::KeySwitchMatrixManipulator. |
|
set the position of the matrix manipulator using a 4x4 Matrix.
Implemented in osgGA::AnimationPathManipulator, osgGA::DriveManipulator, osgGA::FlightManipulator, osgGA::KeySwitchMatrixManipulator, osgGA::NodeTrackerManipulator, osgGA::TerrainManipulator, osgGA::TrackballManipulator, and osgGA::UFOManipulator. |
|
set the position of the matrix manipulator using a 4x4 Matrix.
Implemented in osgGA::AnimationPathManipulator, osgGA::DriveManipulator, osgGA::FlightManipulator, osgGA::KeySwitchMatrixManipulator, osgGA::NodeTrackerManipulator, osgGA::TerrainManipulator, osgGA::TrackballManipulator, and osgGA::UFOManipulator. |
|
set the coordinate frame which callback tells the manipulator which way is up, east and north.
Reimplemented in osgGA::KeySwitchMatrixManipulator. |
|
Manually set the home position, and set the automatic compute of home position.
Reimplemented in osgGA::KeySwitchMatrixManipulator. |
|
Set the mask to use when set up intersection traversal such as used in manipulators that follow terrain or have collision detection. The intersection traversal mask is useful for controlling what parts of the scene graph should be used for intersection purposes. |
|
set the minimum distance (as ratio) the eye point can be zoomed in towards the center before the center is pushed forward.
Reimplemented in osgGA::KeySwitchMatrixManipulator. |
|
Attach a node to the manipulator, automatically detaching any previously attached node. setNode(NULL) detaches previous nodes. May be ignored by manipulators which do not require a reference model. Reimplemented in osgGA::DriveManipulator, osgGA::FlightManipulator, osgGA::KeySwitchMatrixManipulator, osgGA::NodeTrackerManipulator, osgGA::TerrainManipulator, osgGA::TrackballManipulator, and osgGA::UFOManipulator. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|