Cam Class Reference

#include <Cam.h>

List of all members.

Public Member Functions

 Cam (float *_rotation, const float _zoomFactor, float *_translation)
 ~Cam ()
void positionCamera ()
void setRotation (float *_rotation)
void setZoom (const float _zoomFactor)
void setTranslation (float *_translation)
float * getRotation ()
float getZoom ()
float * getTranslation ()

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
Cam::~Cam (  ) 

Destroy the object


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
float Cam::getZoom (  ) 

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:

Generated on Tue Dec 8 16:10:50 2009 for VisLab by  doxygen 1.6.1