25 #ifndef WGEZOOMTRACKBALLMANIPULATOR_H
26 #define WGEZOOMTRACKBALLMANIPULATOR_H
28 #include <osgGA/TrackballManipulator>
46 virtual void setByMatrix(
const osg::Matrixd& matrix );
75 virtual void home(
double currentTime );
84 virtual bool handle(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
112 void setThrow(
bool allowThrow =
true );
130 bool zoom(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us );
148 #endif // WGEZOOMTRACKBALLMANIPULATOR_H
double getZoom() const
Get zoom factor.
void setPaintMode(int mode)
setter for paint mode when set to something different from 0, a left drag should move the scene ...
virtual bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us)
Handle events, return true if handled, false otherwise.
bool getThrow() const
Checks whether throwing is active.
double m_zoom
Zoom factor.
virtual osg::Matrixd getMatrixWithoutZoom() const
Get the manipulator only containing rotation and translation.
virtual void home(double currentTime)
Move the camera to the default position.
virtual osg::Matrixd getMatrix() const
Get the position of the manipulator as 4x4 matrix.
int m_paintMode
paint mode
void setZoom(double zoom)
Set zoom factor.
bool m_allowThrow
Do we want the auto-rotation thingy?
WGEZoomTrackballManipulator()
Default constructor.
virtual void setByMatrix(const osg::Matrixd &matrix)
Set the position of the manipulator using a 4x4 matrix.
void setThrow(bool allowThrow=true)
En-/Disables throwing.
virtual osg::Matrixd getInverseMatrix() const
Get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model...
New OSG manipulator: TrackballManipulator with added mouse wheel zoom.
bool zoom(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us)
Handles events related to zooming.