Main Page | Class Hierarchy | Class List | Class Members

RayCamera Class Reference

List of all members.

Public Member Functions

int read (FILE *fp)
void write (FILE *fp=stdout)
void drawOpenGL (void)
void rotateUp (Point3D center, float angle)
void rotateRight (Point3D center, float angle)
void moveForward (float dist)
void moveRight (float dist)
void moveUp (float dist)

Public Attributes

double heightAngle
double aspectRatio
Point3D position
Point3D direction
Point3D up
Point3D right

Detailed Description

This class stores information about the camera.


Member Function Documentation

void RayCamera::drawOpenGL void   ) 
 

This method calls the OpenGL commands for setting up the camera.

void RayCamera::moveForward float  dist  ) 
 

This call moves the camera in the forward direction by the specified distance.

void RayCamera::moveRight float  dist  ) 
 

This call moves the camera in the right direction by the specified distance.

void RayCamera::moveUp float  dist  ) 
 

This call moves the camera in the up direction by the specified distance.

int RayCamera::read FILE *  fp  ) 
 

This method reads in the camera information from a .ray file.

void RayCamera::rotateRight Point3D  center,
float  angle
 

This call rotates the camera, about the axis which is parallel to the right direction of the camera, and passes through the specified point.

void RayCamera::rotateUp Point3D  center,
float  angle
 

This call rotates the camera, about the axis which is parallel to the up direction of the camera, and passes through the specified point.

void RayCamera::write FILE *  fp = stdout  ) 
 

This method writes out the camera information to a .ray file. If no file is specified, the camera is written out to stdout.


Member Data Documentation

double RayCamera::aspectRatio
 

The aspect ratio of the view plane

Point3D RayCamera::direction
 

The direction that the camera is looking

double RayCamera::heightAngle
 

The field of view of the camera

Point3D RayCamera::position
 

The position of the camera in world coordinates

Point3D RayCamera::right
 

The right direction of the camera

Point3D RayCamera::up
 

The up direction of the camera


Generated on Wed Feb 22 15:44:23 2006 for Assignment 2 by  doxygen 1.4.1