#include <camera.h>

Public Member Functions | |
| Camera () | |
| Default constructor. | |
| ~Camera () | |
| Destructor. | |
| float | getAngleX () const |
| Returns angle X. | |
| float | getAngleY () const |
| Returns angle Y. | |
| SoGroup * | getRootNode () |
| Returns the root node of the camera object. | |
| const SoRotationXYZ * | getRotationX () const |
| Returns actual camera rotation in the X axis. | |
| const SoRotationXYZ * | getRotationY () const |
| Returns actual camera rotation in the Y axis. | |
| virtual void | timeUpdate (float dt) |
| Timer value change event occured. | |
| void | updateView (short x, short y) |
| Updates camera view according to the new cursor position difference. | |
Private Member Functions | |
| Camera (const Camera &) | |
| Camera & | operator= (const Camera &) |
Private Attributes | |
| SoGroup * | _rootNode |
| The root node for the camera composition. | |
| SoRotationXYZ * | _rotX |
| Rotation in the X axis. | |
| SoRotationXYZ * | _rotY |
| Rotation in the Y axis. | |
| float | _angleX |
| X angle (in radians). | |
| float | _angleY |
| Y angle (in radians). | |
| float | _maxAngleX |
| X angle constrain (in radians). | |
| float | _maxAngleY |
| Y angle constrain (in radians). | |
Reference object (cannot be copied).
| Camera::Camera | ( | const Camera & | ) | [private] |
| Camera::Camera | ( | ) |
Default constructor.
| Camera::~Camera | ( | ) |
Destructor.
| float Camera::getAngleX | ( | ) | const [inline] |
| float Camera::getAngleY | ( | ) | const [inline] |
| SoGroup* Camera::getRootNode | ( | ) | [inline] |
| const SoRotationXYZ* Camera::getRotationX | ( | ) | const [inline] |
| const SoRotationXYZ* Camera::getRotationY | ( | ) | const [inline] |
| virtual void Camera::timeUpdate | ( | float | dt | ) | [virtual] |
Timer value change event occured.
This method is called on each timer value change.
| [in] | dt | Time difference between the last call (delta). |
Implements TimeUpdateable.
| void Camera::updateView | ( | short | x, | |
| short | y | |||
| ) |
Updates camera view according to the new cursor position difference.
| [in] | x | Difference in the x-axis. |
| [in] | y | Difference in the y-axis. |
SoGroup* Camera::_rootNode [private] |
SoRotationXYZ* Camera::_rotX [private] |
SoRotationXYZ* Camera::_rotY [private] |
float Camera::_angleX [private] |
float Camera::_angleY [private] |
float Camera::_maxAngleX [private] |
X angle constrain (in radians).
float Camera::_maxAngleY [private] |
Y angle constrain (in radians).
1.5.6