OpenWalnut  1.4.0
Public Types | Public Member Functions
WGENoOpManipulator Class Reference

This is an OSG Manipulator implementation which does nothing. More...

#include <WGENoOpManipulator.h>

+ Inheritance diagram for WGENoOpManipulator:

List of all members.

Public Types

typedef osg::ref_ptr
< WGENoOpManipulator
SPtr
 Convenience typedef for a boost::shared_ptr< WGENoOpManipulator >.
typedef osg::ref_ptr< const
WGENoOpManipulator
ConstSPtr
 Convenience typedef for a boost::shared_ptr< const WGENoOpManipulator >.

Public Member Functions

 WGENoOpManipulator ()
 Default constructor.
virtual ~WGENoOpManipulator ()
 Destructor.
virtual const char * className () const
 Return the name of the object's class type.
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 void home (const osgGA::GUIEventAdapter &, osgGA::GUIActionAdapter &us)
 Move the camera to the default position.
virtual void init (const osgGA::GUIEventAdapter &, osgGA::GUIActionAdapter &us)
 Start/restart the manipulator.
virtual bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us)
 Handle events.

Detailed Description

This is an OSG Manipulator implementation which does nothing.

It is very useful for simple two-d views.

Definition at line 46 of file WGENoOpManipulator.h.


Member Typedef Documentation

typedef osg::ref_ptr< const WGENoOpManipulator > WGENoOpManipulator::ConstSPtr

Convenience typedef for a boost::shared_ptr< const WGENoOpManipulator >.

Definition at line 57 of file WGENoOpManipulator.h.

Convenience typedef for a boost::shared_ptr< WGENoOpManipulator >.

Definition at line 52 of file WGENoOpManipulator.h.


Constructor & Destructor Documentation

Default constructor.

Definition at line 27 of file WGENoOpManipulator.cpp.

Destructor.

Definition at line 33 of file WGENoOpManipulator.cpp.


Member Function Documentation

const char * WGENoOpManipulator::className ( ) const [virtual]

Return the name of the object's class type.

Returns:
the name of the object's class type

Definition at line 38 of file WGENoOpManipulator.cpp.

osg::Matrixd WGENoOpManipulator::getInverseMatrix ( ) const [virtual]

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

Returns:
the position of the manipulator as a inverse matrix

Definition at line 58 of file WGENoOpManipulator.cpp.

osg::Matrixd WGENoOpManipulator::getMatrix ( ) const [virtual]

Get the position of the manipulator as 4x4 matrix.

Returns:
the position of the manipulator as 4x4 matrix

Definition at line 53 of file WGENoOpManipulator.cpp.

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

Handle events.

Parameters:
eaevent class for storing keyboard, mouse and window events
usthe action adapter used to request actions of the GUI
Returns:
true if handled, false otherwise

Definition at line 73 of file WGENoOpManipulator.cpp.

void WGENoOpManipulator::home ( const osgGA::GUIEventAdapter &  ,
osgGA::GUIActionAdapter &  us 
) [virtual]

Move the camera to the default position.

Parameters:
usthe action adapter used to request actions of the GUI

Definition at line 63 of file WGENoOpManipulator.cpp.

void WGENoOpManipulator::init ( const osgGA::GUIEventAdapter &  ,
osgGA::GUIActionAdapter &  us 
) [virtual]

Start/restart the manipulator.

Parameters:
usthe action adapter used to request actions of the GUI

Definition at line 68 of file WGENoOpManipulator.cpp.

void WGENoOpManipulator::setByInverseMatrix ( const osg::Matrixd &  matrix) [virtual]

Set the position of the matrix manipulator using a 4x4 matrix.

Parameters:
matrixa 4x4 matrix

Definition at line 48 of file WGENoOpManipulator.cpp.

void WGENoOpManipulator::setByMatrix ( const osg::Matrixd &  matrix) [virtual]

Set the position of the matrix manipulator using a 4x4 matrix.

Parameters:
matrixa 4x4 matrix

Definition at line 43 of file WGENoOpManipulator.cpp.


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