#include <CameraManipulator.h>
Public Member Functions | |
CameraManipulator (osg::Camera *camera) | |
double | getSpeed () |
void | setSpeed (double speed) |
osg::Camera * | getCamera () |
void | setCamera (osg::Camera *camera) |
void | update (double elapsedTime) |
void | addTranslation (int direction) |
void | addTranslation (int direction, double amount) |
void | dragOnAxis (int direction, double amount) |
void | addOrientationAngle (int direction, double angle) |
void | addRotationAngle (int axis, double angle) |
void | resetMovement () |
void | setMounted (bool value) |
Protected Attributes | |
Terrain & | _terrain |
SceneManager & | _sceneManager |
osg::Camera * | _camera |
osg::Vec4d | _forwardBase |
osg::Vec4d | _leftBase |
osg::Vec4d | _upBase |
osg::Vec4d | _forward |
osg::Vec4d | _left |
osg::Vec4d | _up |
osg::Vec4d | _xAxis |
osg::Vec4d | _yAxis |
osg::Vec4d | _zAxis |
osg::Vec4d | _eyePoint |
osg::Vec4d | _direction |
osg::Vec3d | _position |
bool | _isMounted |
volatile double | _pitchAngle |
volatile double | _yawAngle |
volatile double | _translateX |
volatile double | _translateY |
volatile double | _translateZ |
volatile double | _translateXaxis |
volatile double | _translateYaxis |
volatile double | _translateZaxis |
volatile double | _speed |
CameraManipulator::CameraManipulator | ( | osg::Camera * | camera | ) |
void CameraManipulator::addOrientationAngle | ( | int | direction, | |
double | angle | |||
) | [virtual] |
Implements ICameraManipulator.
void CameraManipulator::addRotationAngle | ( | int | axis, | |
double | angle | |||
) | [virtual] |
Implements ICameraManipulator.
void CameraManipulator::addTranslation | ( | int | direction, | |
double | amount | |||
) | [virtual] |
Implements ICameraManipulator.
void CameraManipulator::addTranslation | ( | int | direction | ) | [virtual] |
Implements ICameraManipulator.
void CameraManipulator::dragOnAxis | ( | int | direction, | |
double | amount | |||
) | [virtual] |
Implements ICameraManipulator.
osg::Camera * CameraManipulator::getCamera | ( | ) | [virtual] |
Implements ICameraManipulator.
double CameraManipulator::getSpeed | ( | ) | [virtual] |
Implements ICameraManipulator.
void CameraManipulator::resetMovement | ( | ) | [virtual] |
Implements ICameraManipulator.
void CameraManipulator::setCamera | ( | osg::Camera * | camera | ) | [virtual] |
Implements ICameraManipulator.
void CameraManipulator::setMounted | ( | bool | value | ) | [virtual] |
Implements ICameraManipulator.
void CameraManipulator::setSpeed | ( | double | speed | ) | [virtual] |
Implements ICameraManipulator.
void CameraManipulator::update | ( | double | elapsedTime | ) | [virtual] |
Implements ICameraManipulator.
osg::Camera* CameraManipulator::_camera [protected] |
osg::Vec4d CameraManipulator::_direction [protected] |
osg::Vec4d CameraManipulator::_eyePoint [protected] |
osg::Vec4d CameraManipulator::_forward [protected] |
osg::Vec4d CameraManipulator::_forwardBase [protected] |
bool CameraManipulator::_isMounted [protected] |
osg::Vec4d CameraManipulator::_left [protected] |
osg::Vec4d CameraManipulator::_leftBase [protected] |
volatile double CameraManipulator::_pitchAngle [protected] |
osg::Vec3d CameraManipulator::_position [protected] |
SceneManager& CameraManipulator::_sceneManager [protected] |
volatile double CameraManipulator::_speed [protected] |
Terrain& CameraManipulator::_terrain [protected] |
volatile double CameraManipulator::_translateX [protected] |
volatile double CameraManipulator::_translateXaxis [protected] |
volatile double CameraManipulator::_translateY [protected] |
volatile double CameraManipulator::_translateYaxis [protected] |
volatile double CameraManipulator::_translateZ [protected] |
volatile double CameraManipulator::_translateZaxis [protected] |
osg::Vec4d CameraManipulator::_up [protected] |
osg::Vec4d CameraManipulator::_upBase [protected] |
osg::Vec4d CameraManipulator::_xAxis [protected] |
volatile double CameraManipulator::_yawAngle [protected] |
osg::Vec4d CameraManipulator::_yAxis [protected] |
osg::Vec4d CameraManipulator::_zAxis [protected] |