Camera Class Reference

Camera Class. More...

#include <Camera.h>

List of all members.

Public Member Functions

 Camera ()
 Konstruktor.
 Camera (float distance)
 Destruktor.
 ~Camera ()
 Destruktor.
void setRotation (float xRot, float yRot)
 sets the Rotation of the Camera
void addRotation (float xRot, float yRot)
 changes the Rotation of the Camera
void setDistance (float newDistance)
 sets the Distance of the Camera from the Origin
float getDistance ()
 returns the Distance of the Camera from the Origin
float getXRot ()
 returns the Rotation of the Camera in X-Direction
float getYRot ()
 returns the Rotation of the Camera in Y-Direction

Private Attributes

float xRot
 saves the actual Camera-Rotation in X-Direction
float yRot
 saves the actual Camera-Rotation in Y-Direction
float distance
 saves the actual Distance


Detailed Description

Camera Class.

this Class that defines the Camera-Model


Constructor & Destructor Documentation

Camera::Camera (  ) 

Konstruktor.

sets the Initial Values of a newly added Camera

Camera::Camera ( float  distance  ) 

Destruktor.

sets the Initial Values of a newly added Camera with a specified Distance to the Origin

Camera::~Camera (  ) 

Destruktor.

destroys the Camera


Member Function Documentation

void Camera::addRotation ( float  xRot,
float  yRot 
)

changes the Rotation of the Camera

adds the specified Values to the actual Camera-Rotation in X- and Y-Direction

float Camera::getDistance (  ) 

returns the Distance of the Camera from the Origin

returns the actual Camera-Distance from the Origin

float Camera::getXRot (  ) 

returns the Rotation of the Camera in X-Direction

returns the actual Camera-Rotation in X-Direction

float Camera::getYRot (  ) 

returns the Rotation of the Camera in Y-Direction

returns the actual Camera-Rotation in Y-Direction

void Camera::setDistance ( float  newDistance  ) 

sets the Distance of the Camera from the Origin

resets the Camera-Distance to the Specified value

void Camera::setRotation ( float  xRot,
float  yRot 
)

sets the Rotation of the Camera

sets the actual Camera-Rotation in X- and Y-Direction


Member Data Documentation

float Camera::distance [private]

saves the actual Distance

float Camera::xRot [private]

saves the actual Camera-Rotation in X-Direction

float Camera::yRot [private]

saves the actual Camera-Rotation in Y-Direction


The documentation for this class was generated from the following files:

Generated on Wed Dec 10 00:10:26 2008 for VolViz by  doxygen 1.5.7.1