25 #ifndef WGENOOPMANIPULATOR_H
26 #define WGENOOPMANIPULATOR_H
28 #include <osg/Version>
32 #if ( ( OPENSCENEGRAPH_MAJOR_VERSION > 2 ) || ( OPENSCENEGRAPH_MAJOR_VERSION == 2 && ( OPENSCENEGRAPH_MINOR_VERSION > 9 || \
33 ( OPENSCENEGRAPH_MINOR_VERSION == 9 && OPENSCENEGRAPH_PATCH_VERSION >= 8 ) ) ) )
34 #include <osgGA/CameraManipulator>
37 typedef CameraManipulator MatrixManipulator;
40 #include <osgGA/MatrixManipulator>
52 typedef osg::ref_ptr< WGENoOpManipulator >
SPtr;
57 typedef osg::ref_ptr< const WGENoOpManipulator >
ConstSPtr;
82 virtual void setByMatrix(
const osg::Matrixd& matrix );
111 virtual void home(
const osgGA::GUIEventAdapter& , osgGA::GUIActionAdapter& us );
118 virtual void init(
const osgGA::GUIEventAdapter& , osgGA::GUIActionAdapter& us );
127 virtual bool handle(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
133 #endif // WGENOOPMANIPULATOR_H
virtual bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us)
Handle events.
virtual const char * className() const
Return the name of the object's class type.
WGENoOpManipulator()
Default constructor.
virtual void init(const osgGA::GUIEventAdapter &, osgGA::GUIActionAdapter &us)
Start/restart the manipulator.
virtual void setByInverseMatrix(const osg::Matrixd &matrix)
Set the position of the matrix manipulator using a 4x4 matrix.
virtual void setByMatrix(const osg::Matrixd &matrix)
Set the position of the matrix manipulator using a 4x4 matrix.
virtual void home(const osgGA::GUIEventAdapter &, osgGA::GUIActionAdapter &us)
Move the camera to the default position.
osg::ref_ptr< const WGENoOpManipulator > ConstSPtr
Convenience typedef for a boost::shared_ptr< const WGENoOpManipulator >.
virtual osg::Matrixd getMatrix() const
Get the position of the manipulator as 4x4 matrix.
This is an OSG Manipulator implementation which does nothing.
osg::ref_ptr< WGENoOpManipulator > SPtr
Convenience typedef for a boost::shared_ptr< WGENoOpManipulator >.
virtual ~WGENoOpManipulator()
Destructor.
virtual osg::Matrixd getInverseMatrix() const
Get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model...