VizKit
3.3.7
|
#include <VisualCamera.h>
Public Member Functions | |
VisualCamera () | |
Constructor of VisualCamera. | |
~VisualCamera () | |
The destructor. | |
VisualCamera (const VisualCamera &other) | |
Copy constructor. | |
VisualCamera & | operator= (const VisualCamera &other) |
Assignment operator. | |
void | setOrthographicProjection () |
Sets up an orthographic projection matrix of GL. | |
void | setPerspectiveProjection (double nearClippingPlanePos=1.0) |
Sets up the perspective projection matrix of GL. | |
void | lookAt (Point3D eye, Point3D center, Vector up) |
Performs a viewing transformation. | |
void | activate (void) |
Activates the camera with its current settings. | |
double | getMaxTopCoord (void) const |
Returns the maximum top position. | |
double | getMaxLeftCoord (void) const |
Returns the maximum left position. | |
double | getMaxBottomCoord (void) const |
Returns the maximum bottom position. | |
double | getMaxRightCoord (void) const |
Returns the maximum right position. | |
double | getMaxNearPos (void) const |
Returns the maximum near position. | |
double | getMaxFarPos (void) const |
Returns the maximum far position. | |
CoordSize3D | getSize (void) const |
Returns the 3D dimensions of the camera view. | |
double | getCoordHeight (void) const |
Returns the height of the camera view. | |
double | getCoordWidth (void) const |
Returns the width of the camera view. | |
double | getDepth (void) const |
Returns the depth of the camera view. | |
Static Public Member Functions | |
static VisualCamera * | createDefaultCamera (void) |
Static function which creates a camera with default orientation (orthographic projection). | |
Private Member Functions | |
void | copy (const VisualCamera &other) |
Copy method for assignment operator and copy constructor. | |
Private Attributes | |
double | maxTopCoord |
The maximum top position. | |
double | maxLeftCoord |
The maximum left position. | |
double | maxBottomCoord |
The maximum bottom position. | |
double | maxRightCoord |
The maximum right position. | |
double | maxNearPos |
The maximum near position. | |
double | maxFarPos |
The maximum far position. | |
double | zoomFactor |
The zoom factor. | |
ProjectionMode | projectionMode |
The mode of projection. |
A VisualCamera.
Constructor of VisualCamera.
The destructor.
VisualCamera::VisualCamera | ( | const VisualCamera & | other | ) |
Copy constructor.
other | Reference to another VisualCamera. |
void VisualCamera::activate | ( | void | ) |
Activates the camera with its current settings.
void VisualCamera::copy | ( | const VisualCamera & | other | ) | [private] |
Copy method for assignment operator and copy constructor.
other | Another VisualCamera. |
VisualCamera * VisualCamera::createDefaultCamera | ( | void | ) | [static] |
Static function which creates a camera with default orientation (orthographic projection).
double VisualCamera::getCoordHeight | ( | void | ) | const |
Returns the height of the camera view.
double VisualCamera::getCoordWidth | ( | void | ) | const |
Returns the width of the camera view.
double VisualCamera::getDepth | ( | void | ) | const |
Returns the depth of the camera view.
double VisualCamera::getMaxBottomCoord | ( | void | ) | const |
Returns the maximum bottom position.
double VisualCamera::getMaxFarPos | ( | void | ) | const |
Returns the maximum far position.
double VisualCamera::getMaxLeftCoord | ( | void | ) | const |
Returns the maximum left position.
double VisualCamera::getMaxNearPos | ( | void | ) | const |
Returns the maximum near position.
double VisualCamera::getMaxRightCoord | ( | void | ) | const |
Returns the maximum right position.
double VisualCamera::getMaxTopCoord | ( | void | ) | const |
Returns the maximum top position.
CoordSize3D VisualCamera::getSize | ( | void | ) | const |
Returns the 3D dimensions of the camera view.
void VisualCamera::lookAt | ( | Point3D | eye, |
Point3D | center, | ||
Vector | up | ||
) |
Performs a viewing transformation.
eye | The position of the eye point. |
center | The position of the reference point. |
up | the direction of the up vector. |
VisualCamera & VisualCamera::operator= | ( | const VisualCamera & | other | ) |
Assignment operator.
other | Reference to another VisualCamera. |
Sets up an orthographic projection matrix of GL.
void VisualCamera::setPerspectiveProjection | ( | double | nearClippingPlanePos = 1.0 | ) |
Sets up the perspective projection matrix of GL.
nearClippingPlanePos | The maximum near position. With the maxNearCoord the position of the near clipping plane of the viewing volume is set. By setting maxNearCoord the perspective projection (the shape of the viewing volume) can be adjusted. The value of maxNearCoord must be positive. |
double VizKit::VisualCamera::maxBottomCoord [private] |
The maximum bottom position.
double VizKit::VisualCamera::maxFarPos [private] |
The maximum far position.
double VizKit::VisualCamera::maxLeftCoord [private] |
The maximum left position.
double VizKit::VisualCamera::maxNearPos [private] |
The maximum near position.
double VizKit::VisualCamera::maxRightCoord [private] |
The maximum right position.
double VizKit::VisualCamera::maxTopCoord [private] |
The maximum top position.
The mode of projection.
double VizKit::VisualCamera::zoomFactor [private] |
The zoom factor.