A class that controls the motion of an attached camera relative to a point of interest.
More...
|
| CameraController () |
| Create a new camera controller without any camera to control. More...
|
|
| CameraController (Camera *camera) |
| Create a new camera controller that controls the specified camera. More...
|
|
Camera * | getCamera () const |
| Return a pointer to the camera that is being controlled. More...
|
|
void | setCamera (Camera *newCamera) |
| Set a pointer to the camera that is being controlled. More...
|
|
const Vector3 & | getPosition () const |
| Return the point of interest for the camera controller. More...
|
|
void | setPosition (const Vector3 &newPosition) |
| Set the point of interest for the camera controller. More...
|
|
const Vector3 & | getMotion () const |
| Return the current motion vector of the camera controller, indicating the movement effort from -1 to 1 along each axis. More...
|
|
void | setMotion (const Vector3 &newMotion) |
| Set the current motion vector of the camera controller, indicating the movement effort from -1 to 1 along each axis. More...
|
|
const AABB3f & | getMotionSpeed () const |
| Return the speed in units/second that the camera controller can move along the 6 camera-local axis directions. More...
|
|
void | setMotionSpeed (const AABB3f &newMotionSpeed) |
| Set the speed in units/second that the camera controller can move along the 6 camera-local axis directions. More...
|
|
void | setMotionSpeed (Float newMotionSpeed) |
| Set the speed in units/second that the camera controller can move along all axis directions. More...
|
|
const Vector3f & | getMotionInertia () const |
| Return the time it takes for the camera to change movement speed in seconds. More...
|
|
void | setMotionInertia (const Vector3f &newMotionInertia) |
| Set the time it takes for the camera to change movement speed in seconds. More...
|
|
void | setMotionInertia (Float newMotionInertia) |
| Set the time it takes for the camera to change movement speed in seconds. More...
|
|
MotionType | getMotionType () const |
| Return the type of motion control that this camera uses. More...
|
|
void | setMotionType (MotionType newMotionType) |
| Set the type of motion control that this camera uses. More...
|
|
const Matrix3 & | getOrientation () const |
| Return the orientation of the camera that is being controlled. More...
|
|
void | setOrientation (const Matrix3 &newOrientation) |
| Set the orientation of the camera that is being controlled. More...
|
|
const Vector3f & | getRotation () const |
| Return the current rotation amount of the camera controller, indicating the rotation effort from -1 to 1 around axis. More...
|
|
void | setRotation (const Vector3f &newRotation) |
| Set the current rotation amount of the camera controller, indicating the rotation effort from -1 to 1 around axis. More...
|
|
const Vector3f & | getRotationSpeed () const |
| Return the speed in radians/second that the camera controller can rotate along the 3 axis directions. More...
|
|
void | setRotationSpeed (const Vector3f &newRotationSpeed) |
| Set the speed in radians/second that the camera controller can rotate along the 3 axis directions. More...
|
|
void | setRotationSpeed (Float newRotationSpeed) |
| Set the speed in radians/second that the camera controller can rotate along the 3 axis directions. More...
|
|
const Vector3f & | getRotationInertia () const |
| Return the time it takes for the camera to change rotation speed in seconds for each axis. More...
|
|
void | setRotationInertia (const Vector3f &newRotationInertia) |
| Set the time it takes for the camera to change rotation speed in seconds for each axis. More...
|
|
void | setRotationInertia (Float newRotationInertia) |
| Set the time it takes for the camera to change rotation speed in seconds for each axis. More...
|
|
RotationType | getRotationType () const |
| Return the type of motion control that this camera uses. More...
|
|
void | setRotationType (RotationType newRotationType) |
| Set the type of motion control that this camera uses. More...
|
|
Float | getDistance () const |
| Return the distance that the camera controller is from the point of interest along the view direction. More...
|
|
void | setDistance (Float newDistance) |
| Set the distance that the camera controller is from the point of interest along the view direction. More...
|
|
Float | getZoom () const |
| Return the current movement effort of the camera controller along the view direction relative to the point of interest. More...
|
|
void | setZoom (Float newZoom) |
| Set the current movement effort of the camera controller along the view direction relative to the point of interest. More...
|
|
Float | getZoomSpeed () const |
| Return the movement speed of the camera controller along the view direction relative to the point of interest. More...
|
|
void | setZoomSpeed (Float newZoomSpeed) |
| Set the movement speed of the camera controller along the view direction relative to the point of interest. More...
|
|
Float | getZoomInertia () const |
| Return the time it takes for the camera to change zoom speed in seconds. More...
|
|
void | setZoomInertia (Float newZoomInertia) |
| Set the time it takes for the camera to change zoom speed in seconds. More...
|
|
void | update (Float dt) |
| Update the state of this camera controller for the specified time delta in seconds. More...
|
|
A class that controls the motion of an attached camera relative to a point of interest.