List of all members.
Member Enumeration Documentation
- Enumerator:
ELEVATION_HEADING |
|
HEADING |
|
ELEVATION |
|
MAP |
|
Constructor & Destructor Documentation
osgGA::SphericalManipulator::SphericalManipulator |
( |
| ) |
|
virtual osgGA::SphericalManipulator::~SphericalManipulator |
( |
| ) |
[protected, virtual] |
Member Function Documentation
Add the current mouse GUIEvent to internal stack.
bool osgGA::SphericalManipulator::calcMovement |
( |
| ) |
[protected] |
For the give mouse movement calculate the movement of the camera. Return true is camera has moved and a redraw is required.
virtual const char* osgGA::SphericalManipulator::className |
( |
| ) |
const [inline, virtual] |
return the name of the object's class type. Must be defined by derived classes.
Reimplemented from osgGA::CameraManipulator.
virtual void osgGA::SphericalManipulator::computeHomePosition |
( |
| ) |
[virtual] |
Compute the home position.
void osgGA::SphericalManipulator::computeViewPosition |
( |
const osg::BoundingSphere & |
bound, |
|
|
double & |
scale, |
|
|
double & |
distance, |
|
|
osg::Vec3d & |
center |
|
) |
| |
void osgGA::SphericalManipulator::flushMouseEventStack |
( |
| ) |
[protected] |
Reset the internal GUIEvent stack.
bool osgGA::SphericalManipulator::getAllowThrow |
( |
| ) |
const [inline] |
Returns true if the camera can be thrown, false otherwise. This defaults to true.
const osg::Vec3d& osgGA::SphericalManipulator::getCenter |
( |
| ) |
const [inline] |
double osgGA::SphericalManipulator::getDistance |
( |
| ) |
const [inline] |
double osgGA::SphericalManipulator::getElevtion |
( |
| ) |
const [inline] |
virtual float osgGA::SphericalManipulator::getFusionDistanceValue |
( |
| ) |
const [inline, virtual] |
Get the FusionDistanceValue. Used by SceneView for setting up stereo convergence.
Reimplemented from osgGA::CameraManipulator.
double osgGA::SphericalManipulator::getHeading |
( |
| ) |
const [inline] |
double osgGA::SphericalManipulator::getHomeDistance |
( |
| ) |
const [inline] |
virtual osg::Matrixd osgGA::SphericalManipulator::getInverseMatrix |
( |
| ) |
const [virtual] |
get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix.
Implements osgGA::CameraManipulator.
virtual osg::Matrixd osgGA::SphericalManipulator::getMatrix |
( |
| ) |
const [virtual] |
double osgGA::SphericalManipulator::getMinimumZoomScale |
( |
| ) |
const [inline] |
get the minimum distance (as ratio) the eye point can be zoomed in
virtual const osg::Node* osgGA::SphericalManipulator::getNode |
( |
| ) |
const [virtual] |
virtual osg::Node* osgGA::SphericalManipulator::getNode |
( |
| ) |
[virtual] |
RotationMode osgGA::SphericalManipulator::getRotationMode |
( |
| ) |
const [inline] |
double osgGA::SphericalManipulator::getScroolWheelZoomDelta |
( |
| ) |
const [inline] |
get the mouse scroll wheel zoom delta.
Move the camera to the default position. May be ignored by manipulators if home functionality is not appropriate.
Reimplemented from osgGA::CameraManipulator.
virtual void osgGA::SphericalManipulator::home |
( |
double |
| ) |
[virtual] |
bool osgGA::SphericalManipulator::isMouseMoving |
( |
| ) |
[protected] |
Check the speed at which the mouse is moving. If speed is below a threshold then return false, otherwise return true.
void osgGA::SphericalManipulator::setAllowThrow |
( |
bool |
allowThrow | ) |
[inline] |
Set the 'allow throw' flag. Releasing the mouse button while moving the camera results in a throw.
virtual void osgGA::SphericalManipulator::setByInverseMatrix |
( |
const osg::Matrixd & |
matrix | ) |
[inline, virtual] |
virtual void osgGA::SphericalManipulator::setByMatrix |
( |
const osg::Matrixd & |
matrix | ) |
[virtual] |
void osgGA::SphericalManipulator::setCenter |
( |
const osg::Vec3d & |
center | ) |
[inline] |
bool osgGA::SphericalManipulator::setDistance |
( |
double |
distance | ) |
|
void osgGA::SphericalManipulator::setElevation |
( |
double |
elevation | ) |
[inline] |
void osgGA::SphericalManipulator::setHeading |
( |
double |
azimuth | ) |
[inline] |
void osgGA::SphericalManipulator::setMinimumZoomScale |
( |
double |
minimumZoomScale | ) |
[inline] |
set the minimum distance (as ratio) the eye point can be zoomed in towards the center before the center is pushed forward.
virtual void osgGA::SphericalManipulator::setNode |
( |
osg::Node * |
| ) |
[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.
Reimplemented from osgGA::CameraManipulator.
void osgGA::SphericalManipulator::setRotationMode |
( |
RotationMode |
mode | ) |
|
void osgGA::SphericalManipulator::setScroolWheelZoomDelta |
( |
double |
zoomDelta | ) |
[inline] |
set the mouse scroll wheel zoom delta. Range -1.0 to +1.0, -ve value inverts wheel direction and zero switches off scroll wheel.
Member Data Documentation
The approximate amount of time it is currently taking to draw a frame. This is used to compute the delta in translation/rotation during a thrown display update. It allows us to match an delta in position/rotation independent of the rendering frame rate.
The time the last frame started. Used when _rate_sensitive is true so that we can match display update rate to rotation/translation rate.
The documentation for this class was generated from the following file: