## class OSGGA_EXPORT osgGA::MatrixManipulator

## Inheritance:

### Public Methods

virtual const char* className() 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.
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 home(const GUIEventAdapter&, GUIActionAdapter&)
  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 Methods

MatrixManipulator()
virtual ~MatrixManipulator()

### Inherited from GUIEventHandler:

### Public Methods

META_Object (osgGA, GUIEventHandler) const () const
virtual CompositeGUIEventHandler* getComposite()
virtual 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.

`virtual const char* className() 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. Used by SceneView for setting up setereo convergence.

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

`virtual 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.

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

`virtual osg::Node* getNode()`
  Return node if attached

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

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

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

`virtual void accept(GUIEventHandlerVisitor& v)`
  Handle visitations

`MatrixManipulator()`

`virtual ~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++.