AnimatLab
2
Test
|
Public Member Functions | |
virtual const char * | className () const |
const osg::Vec3d & | getCenter () const |
double | getDistance () const |
virtual osgUtil::SceneView::FusionDistanceMode | getFusionDistanceMode () const |
virtual float | getFusionDistanceValue () const |
virtual osg::Matrixd | getInverseMatrix () const |
virtual osg::Matrixd | getMatrix () const |
double | getMinimumZoomScale () const |
virtual const osg::Node * | getNode () const |
virtual osg::Node * | getNode () |
const osg::Quat & | getRotation () const |
float | getTrackballSize () const |
virtual void | getUsage (osg::ApplicationUsage &usage) const |
virtual bool | handle (const GUIEventAdapter &ea, GUIActionAdapter &us) |
virtual void | home (const GUIEventAdapter &ea, GUIActionAdapter &us) |
virtual void | home (double) |
virtual void | init (const GUIEventAdapter &ea, GUIActionAdapter &us) |
virtual void | setByInverseMatrix (const osg::Matrixd &matrix) |
virtual void | setByMatrix (const osg::Matrixd &matrix) |
void | setCenter (const osg::Vec3d ¢er) |
void | setDistance (double distance) |
void | setMinimumZoomScale (double minimumZoomScale) |
virtual void | setNode (osg::Node *) |
void | setRotation (const osg::Quat &rotation) |
void | setTrackballSize (float size) |
Protected Member Functions | |
void | addMouseEvent (const GUIEventAdapter &ea) |
bool | calcMovement () |
void | computePosition (const osg::Vec3 &eye, const osg::Vec3 &lv, const osg::Vec3 &up) |
void | flushMouseEventStack () |
bool | isMouseMoving () |
float | tb_project_to_sphere (float r, float x, float y) |
void | trackball (osg::Vec3 &axis, float &angle, float p1x, float p1y, float p2x, float p2y) |
Definition at line 24 of file OsgTrackballManipulator.h.
|
protected |
Add the current mouse GUIEvent to internal stack.
Definition at line 213 of file OsgTrackballManipulator.cpp.
|
protected |
For the give mouse movement calculate the movement of the camera. Return true is camera has moved and a redraw is required.
Definition at line 258 of file OsgTrackballManipulator.cpp.
|
protected |
Reset the internal GUIEvent stack.
Definition at line 206 of file OsgTrackballManipulator.cpp.
|
inline |
Get the center of the trackball.
Definition at line 87 of file OsgTrackballManipulator.h.
|
inline |
Get the distance of the trackball.
Definition at line 99 of file OsgTrackballManipulator.h.
|
inlinevirtual |
Get the FusionDistanceMode. Used by SceneView for setting up stereo convergence.
Definition at line 44 of file OsgTrackballManipulator.h.
|
inlinevirtual |
Get the FusionDistanceValue. Used by SceneView for setting up stereo convergence.
Definition at line 47 of file OsgTrackballManipulator.h.
|
virtual |
get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix.
Definition at line 230 of file OsgTrackballManipulator.cpp.
|
virtual |
get the position of the manipulator as 4x4 Matrix.
Definition at line 225 of file OsgTrackballManipulator.cpp.
|
inline |
get the minimum distance (as ratio) the eye point can be zoomed in
Definition at line 81 of file OsgTrackballManipulator.h.
|
virtual |
Return node if attached.
Definition at line 46 of file OsgTrackballManipulator.cpp.
|
virtual |
Return node if attached.
Definition at line 52 of file OsgTrackballManipulator.cpp.
|
inline |
Get the rotation of the trackball.
Definition at line 93 of file OsgTrackballManipulator.h.
|
inline |
Get the size of the trackball.
Definition at line 105 of file OsgTrackballManipulator.h.
|
virtual |
Get the keyboard and mouse usage of this manipulator.
Definition at line 83 of file OsgTrackballManipulator.cpp.
|
virtual |
handle events, return true if handled, false otherwise.
Definition at line 90 of file OsgTrackballManipulator.cpp.
|
virtual |
Move the camera to the default position. May be ignored by manipulators if home functionality is not appropriate.
Definition at line 69 of file OsgTrackballManipulator.cpp.
|
virtual |
Start/restart the manipulator.
Definition at line 77 of file OsgTrackballManipulator.cpp.
|
protected |
Check the speed at which the mouse is moving. If speed is below a threshold then return false, otherwise return true.
Definition at line 191 of file OsgTrackballManipulator.cpp.
|
inlinevirtual |
set the position of the matrix manipulator using a 4x4 Matrix.
Definition at line 35 of file OsgTrackballManipulator.h.
|
virtual |
set the position of the matrix manipulator using a 4x4 Matrix.
Definition at line 219 of file OsgTrackballManipulator.cpp.
|
inline |
Set the center of the trackball.
Definition at line 84 of file OsgTrackballManipulator.h.
|
inline |
Set the distance of the trackball.
Definition at line 96 of file OsgTrackballManipulator.h.
|
inline |
set the minimum distance (as ratio) the eye point can be zoomed in towards the center before the center is pushed forward.
Definition at line 78 of file OsgTrackballManipulator.h.
|
virtual |
Attach a node to the manipulator. Automatically detaches previously attached node. setNode(NULL) detaches previously nodes. Is ignored by manipulators which do not require a reference model.
Definition at line 34 of file OsgTrackballManipulator.cpp.
|
inline |
Set the rotation of the trackball.
Definition at line 90 of file OsgTrackballManipulator.h.
void OsgAnimatSim::Visualization::OsgTrackballManipulator::setTrackballSize | ( | float | size | ) |
Set the size of the trackball.
Definition at line 370 of file OsgTrackballManipulator.cpp.