|
Public Types |
enum | RotationMode { ELEVATION_AZIM_ROLL,
ELEVATION_AZIM
} |
Public Member Functions |
| TerrainManipulator () |
virtual const char * | className () const |
void | setRotationMode (RotationMode mode) |
RotationMode | getRotationMode () const |
virtual void | setByMatrix (const osg::Matrixd &matrix) |
virtual void | setByInverseMatrix (const osg::Matrixd &matrix) |
virtual osg::Matrixd | getMatrix () const |
virtual osg::Matrixd | getInverseMatrix () const |
virtual osgUtil::SceneView::FusionDistanceMode | getFusionDistanceMode () const |
virtual float | getFusionDistanceValue () const |
virtual void | setNode (osg::Node *) |
virtual const osg::Node * | getNode () const |
virtual osg::Node * | getNode () |
virtual void | home (const GUIEventAdapter &ea, GUIActionAdapter &us) |
virtual void | init (const GUIEventAdapter &ea, GUIActionAdapter &us) |
virtual bool | handle (const GUIEventAdapter &ea, GUIActionAdapter &us) |
virtual void | getUsage (osg::ApplicationUsage &usage) const |
Protected Member Functions |
virtual | ~TerrainManipulator () |
void | flushMouseEventStack () |
void | addMouseEvent (const GUIEventAdapter &ea) |
void | computePosition (const osg::Vec3d &eye, const osg::Vec3d &lv, const osg::Vec3d &up) |
bool | calcMovement () |
void | trackball (osg::Vec3 &axis, double &angle, double p1x, double p1y, double p2x, double p2y) |
double | tb_project_to_sphere (double r, double x, double y) |
bool | isMouseMoving () |
void | clampOrientation () |
Protected Attributes |
osg::ref_ptr< const GUIEventAdapter > | _ga_t1 |
osg::ref_ptr< const GUIEventAdapter > | _ga_t0 |
osg::ref_ptr< osg::Node > | _node |
RotationMode | _rotationMode |
bool | _thrown |
osg::Vec3d | _center |
osg::Quat | _rotation |
float | _distance |
osg::Vec3d | _previousUp |