25 #ifndef WGE2DMANIPULATOR_H
26 #define WGE2DMANIPULATOR_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>
40 #include <osgGA/MatrixManipulator>
43 #include "WExportWGE.h"
62 virtual const char* className()
const;
69 virtual void setByMatrix(
const osg::Matrixd& matrix );
76 virtual void setByInverseMatrix(
const osg::Matrixd& matrix );
83 virtual osg::Matrixd getMatrix()
const;
91 virtual osg::Matrixd getInverseMatrix()
const;
98 virtual void home(
const osgGA::GUIEventAdapter& , osgGA::GUIActionAdapter& us );
105 virtual void init(
const osgGA::GUIEventAdapter& , osgGA::GUIActionAdapter& us );
114 virtual bool handle(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
121 virtual void getUsage( osg::ApplicationUsage& usage )
const;
136 void flushMouseEventStack();
143 void addMouseEvent(
const osgGA::GUIEventAdapter& ea );
155 osg::ref_ptr< const osgGA::GUIEventAdapter >
m_ga_t1;
160 osg::ref_ptr< const osgGA::GUIEventAdapter >
m_ga_t0;
170 bool zoom(
const osgGA::GUIEventAdapter& ea );
188 #endif // WGE2DMANIPULATOR_H