Main Page   Namespace List   Alphabetical List   Data Structures   File List   Data Fields   Globals  

Camera Class Reference

Handles camera movement and properties. More...


Public Methods

 Camera ()
 ~Camera ()
void loadConfigData (void)
void resetView ()
void lookTo (float x, float y, float z)
void getBoundingBox (SCENE *scene)
void setPerspective ()

Data Fields

ViewModel vm
vec3 BoundingBoxMin
vec3 BoundingBoxMax
unsigned int perspective_znear
unsigned int perspective_zfar
unsigned int perspective_angle


Detailed Description

Handles camera movement and properties.

This class contains a viewmodel which keeps up to date the values of the up, forward and side directions. The bounding box of the scene is computed here and the perspective parameters are maintened here.


Constructor & Destructor Documentation

Camera::Camera  
 

Initialises Camera properties

Camera::~Camera  
 


Member Function Documentation

void Camera::getBoundingBox SCENE   scene
 

Gets the bounding box of the scene. Its the smallest cuboid containing all the points of the scene object.

void Camera::loadConfigData void   
 

Loads config data from file user.ini

void Camera::lookTo float    x,
float    y,
float    z
 

Looks to the point defined by 3D coordinates x,y,z

Parameters:
x  : x coord
y  : y coord
z  : z coord

void Camera::resetView  
 

Resets the point of view to its initial value defined in user.ini

void Camera::setPerspective  
 

Sets the perspective with the right aspect ratio the width and height of the viewport is taken with the glGetIntegerv (GL_VIEWPORT, viewport) procedure.


Field Documentation

vec3 Camera::BoundingBoxMax
 

"max" corner of the bounding box

vec3 Camera::BoundingBoxMin
 

"min" corner of the bounding box

unsigned int Camera::perspective_angle
 

angle of view

unsigned int Camera::perspective_zfar
 

distance between eye and far clipping plane

unsigned int Camera::perspective_znear
 

distance between eye and near clipping plane

ViewModel Camera::vm
 

The ViewModel is the heart of the camera it updates up, side and forward directions


The documentation for this class was generated from the following files:
Generated on Wed Feb 18 16:32:53 2004 for POVAMA by doxygen1.2.18