Cam Class Reference
#include <Cam.h>
List of all members.
Detailed Description
The camera class
Constructor & Destructor Documentation
Cam::Cam |
( |
float * |
_rotation, |
|
|
const float |
_zoomFactor, |
|
|
float * |
_translation | |
|
) |
| | |
Construct a new camera
- Parameters:
-
| _rotation | Pointer to an array representing rotation matrix consisting of 16 elements |
| _zoomFactor | The zoomFactor of the camera |
| _translation | Pointer to an array representing translation vector for x and y-direction |
Member Function Documentation
float * Cam::getRotation |
( |
|
) |
|
Return the current rotation of the camera
- Returns:
- Pointer to an array representing rotation matrix consisting of 16 elements
float * Cam::getTranslation |
( |
|
) |
|
Return a pointer to the translation vector
- Returns:
- Pointer to the translation vector
Return the zoomfactor of the camera
- Returns:
- The zoomfactor of the camera
void Cam::positionCamera |
( |
|
) |
|
Positions the camera according to the current values for rotation and translation
void Cam::setRotation |
( |
float * |
_rotation |
) |
|
Set the rotation for the camera
- Parameters:
-
| _rotation | Pointer to an array representing rotation matrix consisting of 16 elements |
void Cam::setTranslation |
( |
float * |
_translation |
) |
|
Set the translation of the camera
- Parameters:
-
| _translation | Pointer to an array of two values for the translation in x- and y-direction |
void Cam::setZoom |
( |
const float |
_zoomFactor |
) |
|
Set the zoomfactor of the camer
- Parameters:
-
| _zoomFactor | The zoomfacctor of the camera |
The documentation for this class was generated from the following files:
- D:/C++/Visualisierung/vislab/src/Cam.h
- D:/C++/Visualisierung/vislab/src/Cam.cpp