A view point and volume. More...
#include <camera.h>
Classes | |
class | CameraPrivate |
Public Slots | |
void | setViewMatrix (const QMatrix4x4 &matrix) |
void | setFrustrum (GluonGraphics::Frustrum *frustrum) |
Public Member Functions | |
Camera (QObject *parent=0) | |
Camera (Frustrum *frustum, QObject *parent=0) | |
virtual | ~Camera () |
QMatrix4x4 | viewMatrix () |
Frustrum * | frustrum () |
A view point and volume.
The camera class describes a view point and view volume (a.k.a. frustrum). These are used to determine what to render and where to render it.
Definition at line 45 of file camera.h.
Camera::Camera | ( | QObject * | parent = 0 |
) | [explicit] |
Contrstructor.
Creates a camera with a default frustum.
parent | The parent QObject. |
Definition at line 41 of file camera.cpp.
Constructor.
frustum | The frustum to use for this camera.
|
Definition at line 48 of file camera.cpp.
Camera::~Camera | ( | ) | [virtual] |
Destructor.
Definition at line 55 of file camera.cpp.
Frustrum * Camera::frustrum | ( | ) |
Retrieve the frustum used by this camera.
Definition at line 61 of file camera.cpp.
void Camera::setFrustrum | ( | GluonGraphics::Frustrum * | frustrum | ) | [slot] |
Set the frustum to use.
frustum | The frustum to use. |
Definition at line 73 of file camera.cpp.
void Camera::setViewMatrix | ( | const QMatrix4x4 & | matrix | ) | [slot] |
Set the view matrix to use.
matrix | The matrix to use. |
Definition at line 79 of file camera.cpp.
QMatrix4x4 Camera::viewMatrix | ( | ) |
Retrieve the view matrix from this camera.
The view matrix is the position and rotation of the "eye". This determines from where the scene is viewed.
Definition at line 67 of file camera.cpp.