1 #ifndef GEPETTO_VIEWER_FPSMANIPULATOR_H
2 #define GEPETTO_VIEWER_FPSMANIPULATOR_H
14 #include <osgGA/FirstPersonManipulator>
15 #include <osgViewer/GraphicsWindow>
16 #include <osgViewer/Viewer>
24 typedef FirstPersonManipulator inherited;
29 const osg::CopyOp& copyOp = osg::CopyOp::SHALLOW_COPY);
33 int flags = DEFAULT_SETTINGS);
38 virtual bool handleKeyDown(
const osgGA::GUIEventAdapter& ea,
39 osgGA::GUIActionAdapter& us);
40 virtual bool handleKeyUp(
const osgGA::GUIEventAdapter& ea,
41 osgGA::GUIActionAdapter& us);
42 virtual bool handleFrame(
const osgGA::GUIEventAdapter& ea,
43 osgGA::GUIActionAdapter& us);
44 virtual bool handleMousePush(
const osgGA::GUIEventAdapter& ea,
45 osgGA::GUIActionAdapter& us);
46 virtual bool handleMouseRelease(
const osgGA::GUIEventAdapter& ea,
47 osgGA::GUIActionAdapter& us);
50 virtual bool performMovementLeftMouseButton(
const double eventTimeDelta,
51 const double dx,
const double dy);
53 virtual void rotateRoll(
const double roll );
54 virtual void getUsage(osg::ApplicationUsage& usage)
const;
67 osg::Quat rotateRoll_;
74 osgViewer::GraphicsWindow* gWindow_;
101 #endif // FPSMANIPULATOR_H