25 #ifndef WGENOOPMANIPULATOR_H
26 #define WGENOOPMANIPULATOR_H
30 #include <osg/Version>
34 #if( ( OPENSCENEGRAPH_MAJOR_VERSION > 2 ) || ( OPENSCENEGRAPH_MAJOR_VERSION == 2 && ( OPENSCENEGRAPH_MINOR_VERSION > 9 || \
35 ( OPENSCENEGRAPH_MINOR_VERSION == 9 && OPENSCENEGRAPH_PATCH_VERSION >= 8 ) ) ) )
36 #include <osgGA/CameraManipulator>
39 typedef CameraManipulator MatrixManipulator;
42 #include <osgGA/MatrixManipulator>
54 typedef osg::ref_ptr< WGENoOpManipulator >
SPtr;
59 typedef osg::ref_ptr< const WGENoOpManipulator >
ConstSPtr;
84 virtual void setByMatrix(
const osg::Matrixd& matrix );
113 virtual void home(
const osgGA::GUIEventAdapter& , osgGA::GUIActionAdapter& us );
120 virtual void init(
const osgGA::GUIEventAdapter& , osgGA::GUIActionAdapter& us );
129 virtual bool handle(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
This is an OSG Manipulator implementation which does nothing.
virtual const char * className() const
Return the name of the object's class type.
WGENoOpManipulator()
Default constructor.
virtual osg::Matrixd getMatrix() const
Get the position of the manipulator as 4x4 matrix.
virtual void home(const osgGA::GUIEventAdapter &, osgGA::GUIActionAdapter &us)
Move the camera to the default position.
virtual ~WGENoOpManipulator()
Destructor.
osg::ref_ptr< const WGENoOpManipulator > ConstSPtr
Convenience typedef for a std::shared_ptr< const WGENoOpManipulator >.
virtual void setByMatrix(const osg::Matrixd &matrix)
Set the position of the matrix manipulator using a 4x4 matrix.
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.
osg::ref_ptr< WGENoOpManipulator > SPtr
Convenience typedef for a std::shared_ptr< WGENoOpManipulator >.
virtual void setByInverseMatrix(const osg::Matrixd &matrix)
Set the position of the matrix manipulator using a 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...