25 #ifndef WGEANIMATIONMANIPULATOR_H
26 #define WGEANIMATIONMANIPULATOR_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>
43 #include "../../common/WTimer.h"
44 #include "../../common/WRealtimeTimer.h"
57 typedef osg::ref_ptr< WGEAnimationManipulator >
RefPtr;
62 typedef osg::ref_ptr< const WGEAnimationManipulator >
ConstRefPtr;
82 virtual void setByMatrix(
const osg::Matrixd& matrix );
115 virtual bool handle(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
123 virtual void init(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
131 virtual void home(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
138 virtual void home(
double currentTime );
174 #endif // WGEANIMATIONMANIPULATOR_H