1 #ifndef GEPETTO_VIEWER_FPSMANIPULATOR_H
2 #define GEPETTO_VIEWER_FPSMANIPULATOR_H
14 #include <osgGA/FirstPersonManipulator>
15 #include <osgViewer/Viewer>
17 #include <osgViewer/GraphicsWindow>
30 typedef FirstPersonManipulator inherited;
42 virtual bool handleKeyDown(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
43 virtual bool handleKeyUp(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
44 virtual bool handleFrame(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
45 virtual bool handleMousePush(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
46 virtual bool handleMouseRelease(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
48 virtual bool performMovementLeftMouseButton(
const double eventTimeDelta,
const double dx,
const double dy );
50 virtual void rotateRoll(
const double roll);
51 virtual void getUsage(osg::ApplicationUsage &usage)
const;
64 osg::Quat rotateRoll_;
71 osgViewer::GraphicsWindow* gWindow_;
101 #endif // FPSMANIPULATOR_H