## class OSGGA_EXPORT osgGA::KeySwitchMatrixManipulator

> KeySwitchMatrixManipulator is a decorator which allows the type of camera manipulator being used to be switched by pressing a key.

## Inheritance:

### Public Methods

virtual const char* className()
void addMatrixManipulator(int key, std::string name, MatrixManipulator* cm)
  Add a camera manipulator with an associated name, and a key to trigger the switch,
void addNumberedMatrixManipulator(MatrixManipulator* cm)
  Add a camera manipulator with an autogenerated keybinding which is '1' + previous number of camera's registerd
unsigned int getNumMatrixManipulators() const
void selectMatrixManipulator(unsigned int num)
MatrixManipulator* getCurrentMatrixManipulator()
const MatrixManipulator* getCurrentMatrixManipulator() const
MatrixManipulator* getMatrixManipulator(unsigned int num)
const MatrixManipulator* getMatrixManipulator(unsigned int num) const
virtual void setByMatrix(const osg::Matrixd& matrix)
  set the position of the matrix manipulator using a 4x4 Matrix
virtual void setByInverseMatrix(const osg::Matrixd& matrix)
  set the position of the matrix manipulator using a 4x4 Matrix
virtual osg::Matrixd getMatrix() const
  get the position of the manipulator as 4x4 Matrix
virtual osg::Matrixd getInverseMatrix() const
  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* n)
virtual const osg::Node* getNode() const
virtual osg::Node* getNode()
virtual void home(const GUIEventAdapter& ee, GUIActionAdapter& aa)
virtual void init(const GUIEventAdapter& ee, GUIActionAdapter& aa)
virtual bool handle(const GUIEventAdapter& ea, GUIActionAdapter& us)
virtual void getUsage(osg::ApplicationUsage& usage) const
  Get the keyboard and mouse usage of this manipulator

### Inherited from MatrixManipulator:

### Public Methods

virtual void accept(GUIEventHandlerVisitor& v)

### Inherited from GUIEventHandler:

### Public Methods

META_Object (osgGA, GUIEventHandler) const () const
virtual CompositeGUIEventHandler* getComposite()

## Documentation

> KeySwitchMatrixManipulator is a decorator which allows the type of camera manipulator being used to be switched by pressing a key. E.g. '1' for a TrackballManipultor, '2' for a DriveManipulator, '3' for a FlightManipulator. The manipulators available, and the associated switch keys, can be configured.

`virtual const char* className()`

`void addMatrixManipulator(int key, std::string name, MatrixManipulator* cm)`
  Add a camera manipulator with an associated name, and a key to trigger the switch,

`void addNumberedMatrixManipulator(MatrixManipulator* cm)`
  Add a camera manipulator with an autogenerated keybinding which is '1' + previous number of camera's registerd

`unsigned int getNumMatrixManipulators() const`

`void selectMatrixManipulator(unsigned int num)`

`MatrixManipulator* getCurrentMatrixManipulator()`

`const MatrixManipulator* getCurrentMatrixManipulator() const`

`MatrixManipulator* getMatrixManipulator(unsigned int num)`

`const MatrixManipulator* getMatrixManipulator(unsigned int num) const`

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

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

`virtual osg::Matrixd getMatrix() const`
  get the position of the manipulator as 4x4 Matrix

`virtual osg::Matrixd getInverseMatrix() const`
  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* n)`

`virtual const osg::Node* getNode() const`

`virtual osg::Node* getNode()`

`virtual void home(const GUIEventAdapter& ee, GUIActionAdapter& aa)`

`virtual void init(const GUIEventAdapter& ee, GUIActionAdapter& aa)`

`virtual bool handle(const GUIEventAdapter& ea, GUIActionAdapter& us)`

`virtual void getUsage(osg::ApplicationUsage& usage) const`
  Get the keyboard and mouse usage of this manipulator

This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java

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