class OSGGA_EXPORT osgGA::MatrixManipulator


Inheritance:


Public Methods

[more]virtual const char* className() const
[more]virtual void setByMatrix(const osg::Matrixd& matrix) = 0
set the position of the matrix manipulator using a 4x4 Matrix
[more]virtual void setByInverseMatrix(const osg::Matrixd& matrix) = 0
set the position of the matrix manipulator using a 4x4 Matrix
[more]virtual osg::Matrixd getMatrix() const = 0
get the position of the manipulator as 4x4 Matrix
[more]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
[more]virtual osgUtil::SceneView::FusionDistanceMode getFusionDistanceMode() const
Get the FusionDistanceMode.
[more]virtual float getFusionDistanceValue() const
Get the FusionDistanceValue.
[more]virtual void setNode(osg::Node*)
Attach a node to the manipulator, automatically detaching any previously attached node.
[more]virtual const osg::Node* getNode() const
Return const node if attached
[more]virtual osg::Node* getNode()
Return node if attached
[more]virtual void home(const GUIEventAdapter&, GUIActionAdapter&)
Move the camera to the default position.
[more]virtual void init(const GUIEventAdapter&, GUIActionAdapter&)
Start/restart the manipulator.
[more]virtual bool handle(const GUIEventAdapter& ea, GUIActionAdapter& us)
Handle events, return true if handled, false otherwise.
[more]virtual void accept(GUIEventHandlerVisitor& v)
Handle visitations

Protected Methods

[more] MatrixManipulator()
[more]virtual ~MatrixManipulator()


Inherited from GUIEventHandler:

Public Methods

oMETA_Object (osgGA, GUIEventHandler) const () const
ovirtual CompositeGUIEventHandler* getComposite()
ovirtual void getUsage(osg::ApplicationUsage&) const


Documentation

MatrixManipulator is an abstract base class defining the interface, and a certain amount of default functionality, for classes which wish to control OSG cameras in response to GUI events.

ovirtual const char* className() const

ovirtual void setByMatrix(const osg::Matrixd& matrix) = 0
set the position of the matrix manipulator using a 4x4 Matrix

ovirtual void setByInverseMatrix(const osg::Matrixd& matrix) = 0
set the position of the matrix manipulator using a 4x4 Matrix

ovirtual osg::Matrixd getMatrix() const = 0
get the position of the manipulator as 4x4 Matrix

ovirtual 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

ovirtual osgUtil::SceneView::FusionDistanceMode getFusionDistanceMode() const
Get the FusionDistanceMode. Used by SceneView for setting up setereo convergence.

ovirtual float getFusionDistanceValue() const
Get the FusionDistanceValue. Used by SceneView for setting up setereo convergence.

ovirtual void setNode(osg::Node*)
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.

ovirtual const osg::Node* getNode() const
Return const node if attached

ovirtual osg::Node* getNode()
Return node if attached

ovirtual void home(const GUIEventAdapter&, GUIActionAdapter&)
Move the camera to the default position. May be ignored by manipulators if home functionality is not appropriate.

ovirtual void init(const GUIEventAdapter&, GUIActionAdapter&)
Start/restart the manipulator. FIXME: what does this actually mean? Provide examples.

ovirtual bool handle(const GUIEventAdapter& ea, GUIActionAdapter& us)
Handle events, return true if handled, false otherwise.

ovirtual void accept(GUIEventHandlerVisitor& v)
Handle visitations

o MatrixManipulator()

ovirtual ~MatrixManipulator()


Direct child classes:
TrackballManipulator
KeySwitchMatrixManipulator
FlightManipulator
DriveManipulator
AnimationPathManipulator

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.