OpenWalnut  1.5.0dev
Public Types | Public Member Functions | List of all members
WGENoOpManipulator Class Reference

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

#include <WGENoOpManipulator.h>

+ Inheritance diagram for WGENoOpManipulator:
+ Collaboration diagram for WGENoOpManipulator:

Public Types

typedef osg::ref_ptr< WGENoOpManipulatorSPtr
 Convenience typedef for a std::shared_ptr< WGENoOpManipulator >. More...
 
typedef osg::ref_ptr< const WGENoOpManipulatorConstSPtr
 Convenience typedef for a std::shared_ptr< const WGENoOpManipulator >. More...
 

Public Member Functions

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

Detailed Description

This is an OSG Manipulator implementation which does nothing.

It is very useful for simple two-d views.

Definition at line 48 of file WGENoOpManipulator.h.

Member Typedef Documentation

◆ ConstSPtr

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

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

Definition at line 59 of file WGENoOpManipulator.h.

◆ SPtr

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

Definition at line 54 of file WGENoOpManipulator.h.

Constructor & Destructor Documentation

◆ WGENoOpManipulator()

WGENoOpManipulator::WGENoOpManipulator ( )

Default constructor.

Definition at line 27 of file WGENoOpManipulator.cpp.

◆ ~WGENoOpManipulator()

WGENoOpManipulator::~WGENoOpManipulator ( )
virtual

Destructor.

Definition at line 33 of file WGENoOpManipulator.cpp.

Member Function Documentation

◆ className()

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.

◆ getInverseMatrix()

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.

◆ getMatrix()

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.

◆ handle()

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.

◆ home()

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.

◆ init()

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.

◆ setByInverseMatrix()

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.

◆ setByMatrix()

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: