|
Public Types |
enum | TrackerMode { NODE_CENTER,
NODE_CENTER_AND_AZIM,
NODE_CENTER_AND_ROTATION
} |
enum | RotationMode { TRACKBALL,
ELEVATION_AZIM
} |
Public Member Functions |
| NodeTrackerManipulator () |
virtual const char * | className () const |
void | setTrackNodePath (const osg::RefNodePath &nodePath) |
void | setTrackNodePath (const osg::NodePath &nodePath) |
osg::RefNodePath & | getTrackNodePath () |
const osg::RefNodePath & | getTrackNodePath () const |
void | setTrackNode (osg::Node *node) |
osg::Node * | getTrackNode () |
const osg::Node * | getTrackNode () const |
void | setTrackerMode (TrackerMode mode) |
TrackerMode | getTrackerNode () 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 | computeHomePosition () |
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 | ~NodeTrackerManipulator () |
bool | validateNodePath () const |
void | flushMouseEventStack () |
void | addMouseEvent (const GUIEventAdapter &ea) |
void | computeNodeWorldToLocal (osg::Matrixd &worldToLocal) const |
void | computeNodeLocalToWorld (osg::Matrixd &localToWorld) const |
void | computeNodeCenterAndRotation (osg::Vec3d ¢er, osg::Quat &rotation) const |
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 |
osg::RefNodePath | _trackNodePath |
TrackerMode | _trackerMode |
RotationMode | _rotationMode |
bool | _thrown |
osg::Quat | _nodeRotation |
osg::Quat | _rotation |
float | _distance |