OpenSceneGraph 2.8.3

osgGA::CameraViewSwitchManipulator Class Reference

Inheritance diagram for osgGA::CameraViewSwitchManipulator:

List of all members.

Public Types

typedef std::vector
< osg::ref_ptr
< osg::CameraView > > 
CameraViewList

Public Member Functions

 CameraViewSwitchManipulator ()
virtual const char * className () const
 return the name of the object's class type.
virtual void setByMatrix (const osg::Matrixd &)
 set the position of the matrix manipulator using a 4x4 Matrix.
virtual void setByInverseMatrix (const osg::Matrixd &)
 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 void setNode (osg::Node *)
 Attach a node to the manipulator.
virtual const osg::NodegetNode () const
 Return node if attached.
virtual osg::NodegetNode ()
 Return node if attached.
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 getUsage (osg::ApplicationUsage &usage) const
 Get the keyboard and mouse usage of this manipulator.

Protected Member Functions

virtual ~CameraViewSwitchManipulator ()

Protected Attributes

osg::ref_ptr< osg::Node_node
CameraViewList _cameraViews
unsigned int _currentView

Member Typedef Documentation


Constructor & Destructor Documentation

osgGA::CameraViewSwitchManipulator::CameraViewSwitchManipulator ( ) [inline]
virtual osgGA::CameraViewSwitchManipulator::~CameraViewSwitchManipulator ( ) [inline, protected, virtual]

Member Function Documentation

virtual const char* osgGA::CameraViewSwitchManipulator::className ( ) const [inline, virtual]

return the name of the object's class type.

Must be defined by derived classes.

Reimplemented from osgGA::MatrixManipulator.

virtual osg::Matrixd osgGA::CameraViewSwitchManipulator::getInverseMatrix ( ) const [virtual]

get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix.

Implements osgGA::MatrixManipulator.

virtual osg::Matrixd osgGA::CameraViewSwitchManipulator::getMatrix ( ) const [virtual]

get the position of the manipulator as 4x4 Matrix.

Implements osgGA::MatrixManipulator.

virtual osg::Node* osgGA::CameraViewSwitchManipulator::getNode ( ) [inline, virtual]

Return node if attached.

Reimplemented from osgGA::MatrixManipulator.

virtual const osg::Node* osgGA::CameraViewSwitchManipulator::getNode ( ) const [inline, virtual]

Return node if attached.

Reimplemented from osgGA::MatrixManipulator.

virtual void osgGA::CameraViewSwitchManipulator::getUsage ( osg::ApplicationUsage usage) const [virtual]

Get the keyboard and mouse usage of this manipulator.

Reimplemented from osgGA::GUIEventHandler.

virtual bool osgGA::CameraViewSwitchManipulator::handle ( const GUIEventAdapter ea,
GUIActionAdapter us 
) [virtual]

handle events, return true if handled, false otherwise.

Reimplemented from osgGA::MatrixManipulator.

virtual void osgGA::CameraViewSwitchManipulator::init ( const GUIEventAdapter ,
GUIActionAdapter  
) [inline, virtual]

Start/restart the manipulator.

Reimplemented from osgGA::MatrixManipulator.

virtual void osgGA::CameraViewSwitchManipulator::setByInverseMatrix ( const osg::Matrixd ) [inline, virtual]

set the position of the matrix manipulator using a 4x4 Matrix.

Implements osgGA::MatrixManipulator.

virtual void osgGA::CameraViewSwitchManipulator::setByMatrix ( const osg::Matrixd ) [inline, virtual]

set the position of the matrix manipulator using a 4x4 Matrix.

Implements osgGA::MatrixManipulator.

virtual void osgGA::CameraViewSwitchManipulator::setNode ( osg::Node ) [virtual]

Attach a node to the manipulator.

Automatically detaches previously attached node. setNode(NULL) detaches previously nodes. Is ignored by manipulators which do not require a reference model.

Reimplemented from osgGA::MatrixManipulator.


Member Data Documentation


The documentation for this class was generated from the following file:

osg logo
Generated at Tue Mar 22 2011 13:20:25 for the OpenSceneGraph by doxygen 1.7.3.