1 #ifndef GEPETTO_VIEWER_FPSMANIPULATOR_H
2 #define GEPETTO_VIEWER_FPSMANIPULATOR_H
14 #include <osgGA/FirstPersonManipulator>
15 #include <osgViewer/Viewer>
17 #include <osgViewer/GraphicsWindow>
26 typedef FirstPersonManipulator inherited;
38 virtual bool handleKeyDown(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
39 virtual bool handleKeyUp(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
40 virtual bool handleFrame(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
41 virtual bool handleMousePush(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
42 virtual bool handleMouseRelease(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
44 virtual bool performMovementLeftMouseButton(
const double eventTimeDelta,
const double dx,
const double dy );
46 virtual void rotateRoll(
const double roll);
47 virtual void getUsage(osg::ApplicationUsage &usage)
const;
60 osg::Quat rotateRoll_;
67 osgViewer::GraphicsWindow* gWindow_;
97 #endif // FPSMANIPULATOR_H