Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

osgGA::CameraViewSwitchManipulator Class Reference

Inheritance diagram for osgGA::CameraViewSwitchManipulator:
osgGA::MatrixManipulator osgGA::GUIEventHandler osg::NodeCallback osg::Drawable::EventCallback osg::Object osg::Object osg::Referenced osg::Referenced

List of all members.

Public Types

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

Public Member Functions

 CameraViewSwitchManipulator ()
virtual const char * className () const
virtual void setByMatrix (const osg::Matrixd &)
virtual void setByInverseMatrix (const osg::Matrixd &)
virtual osg::Matrixd getMatrix () const
virtual osg::Matrixd getInverseMatrix () const
virtual void setNode (osg::Node *)
virtual const osg::NodegetNode () const
virtual osg::NodegetNode ()
virtual void init (const GUIEventAdapter &, GUIActionAdapter &)
virtual bool handle (const GUIEventAdapter &ea, GUIActionAdapter &us)
virtual void getUsage (osg::ApplicationUsage &usage) const

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: