openscenegraph
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
osgGA::CameraViewSwitchManipulator Class Reference
Inheritance diagram for osgGA::CameraViewSwitchManipulator:
osgGA::CameraManipulator 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

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::CameraManipulator.

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

Implements osgGA::CameraManipulator.

get the position of the manipulator as 4x4 Matrix.

Implements osgGA::CameraManipulator.

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

Return node if attached.

Reimplemented from osgGA::CameraManipulator.

Return node if attached.

Reimplemented from osgGA::CameraManipulator.

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::CameraManipulator.

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

Start/restart the manipulator.

Reimplemented from osgGA::CameraManipulator.

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

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

Implements osgGA::CameraManipulator.

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

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

Implements osgGA::CameraManipulator.

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::CameraManipulator.


Member Data Documentation


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