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

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


Inherited from MatrixManipulator:

Public Methods

ovirtual void accept(GUIEventHandlerVisitor& v)


Inherited from GUIEventHandler:

Public Methods

oMETA_Object (osgGA, GUIEventHandler) const () const
ovirtual 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.
ovirtual const char* className()

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

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

ounsigned int getNumMatrixManipulators() const

ovoid selectMatrixManipulator(unsigned int num)

oMatrixManipulator* getCurrentMatrixManipulator()

oconst MatrixManipulator* getCurrentMatrixManipulator() const

oMatrixManipulator* getMatrixManipulator(unsigned int num)

oconst MatrixManipulator* getMatrixManipulator(unsigned int num) const

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

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

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

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

ovirtual const osg::Node* getNode() const

ovirtual osg::Node* getNode()

ovirtual void home(const GUIEventAdapter& ee, GUIActionAdapter& aa)

ovirtual void init(const GUIEventAdapter& ee, GUIActionAdapter& aa)

ovirtual bool handle(const GUIEventAdapter& ea, GUIActionAdapter& us)

ovirtual 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++.