Camera Class Reference

#include <Camera.h>

List of all members.

Public Member Functions

void set_camera_distance (float xdist, float ydist, float zdist)
void set_camera_angle (float xangle, float yangle, float zangle)
void camera_follow (const Model_3D *target)
void camera_angle_follow (const Model_3D *target)
void camera_alignment_functions (float(*func_xpos)(float), float(*func_ypos)(float), float(*func_zpos)(float), float(*func_xrot)(float), float(*func_yrot)(float), float(*func_zrot)(float), float movement_time, bool continuation_mode)
void rotate_around_origin (bool flag)
void specify_rotation (float time_full_x_rotation, float time_full_y_rotation, float time_full_z_rotation)
cam get_camera_values () const
void update_view ()


Detailed Description

camera class


Member Function Documentation

void Camera::camera_alignment_functions float(*)(float)  func_xpos,
float(*)(float)  func_ypos,
float(*)(float)  func_zpos,
float(*)(float)  func_xrot,
float(*)(float)  func_yrot,
float(*)(float)  func_zrot,
float  movement_time,
bool  continuation_mode
 

callback functions can be used to define camera x,y,z - translations and rotation angles for x,y,z axis the time for a full cycle needs to be specified a boolean flag that defines if the movement of the camera should be reversed at the end of a cycle or start over at the beginning needs also to be passed over to the function

void Camera::camera_angle_follow const Model_3D target  ) 
 

camera angle will follow to target model

void Camera::camera_follow const Model_3D target  ) 
 

locks the camera translation to a model

cam Camera::get_camera_values  )  const
 

returns the camera values as a cam structure

void Camera::rotate_around_origin bool  flag  ) 
 

the camera will rotate around the origin, if the camera's translation is locked to a model, the camera will rotate around the object

void Camera::set_camera_angle float  xangle,
float  yangle,
float  zangle
 

sets the camera's x,y,z - angles

void Camera::set_camera_distance float  xdist,
float  ydist,
float  zdist
 

sets the camera's distance from the point of interest

void Camera::specify_rotation float  time_full_x_rotation,
float  time_full_y_rotation,
float  time_full_z_rotation
 

defines the time it will take the camera to finish a full circulation

void Camera::update_view  ) 
 

performs the update of the viewing matrix in opengl depending on the camera values set with the corresponding functions


The documentation for this class was generated from the following files:
Generated on Sun Jan 22 16:27:12 2006 for moblu by  doxygen 1.4.6-NO