35class GUIOSGManipulator :
public osgGA::TerrainManipulator {
37 GUIOSGManipulator(GUIOSGView* parent, ManipulatorMode initMode = MODE_TERRAIN,
bool verticalFixed =
true,
double eyeHeight = 1.7);
39 bool performMovementLeftMouseButton(
const double eventTimeDelta,
const double dx,
const double dy)
override;
40 bool performMovementMiddleMouseButton(
const double eventTimeDelta,
const double dx,
const double dy)
override;
41 bool performMovementRightMouseButton(
const double eventTimeDelta,
const double dx,
const double dy)
override;
42 bool performMouseDeltaMovement(
const float dx,
const float dy)
override;
43 bool handleMouseMove(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)
override;
44 bool handleMouseDrag(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)
override;
45 bool handleMousePush(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)
override;
46 bool handleMouseRelease(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)
override;
47 bool handleMouseDeltaMovement(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)
override;
48 bool handleKeyDown(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)
override;
49 bool handleKeyUp(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)
override;
50 void rotateYawPitch(osg::Quat& rotation,
const double yaw,
const double pitch,
const osg::Vec3d& localUp);
52 void setByMatrix(
const osg::Matrixd& matrix)
override;
54 osg::Matrixd getMatrix()
const override;
56 osg::Matrixd getInverseMatrix()
const override;
60 void centerMousePointer(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)
override;
63 GUIOSGManipulator() =
delete;
64 GUIOSGManipulator(
const GUIOSGManipulator& g);
69 ManipulatorMode myCurrentMode;