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 |
|
This method calls the OpenGL commands for setting up the camera. |
|
This call moves the camera in the forward direction by the specified distance. |
|
This call moves the camera in the right direction by the specified distance. |
|
This call moves the camera in the up direction by the specified distance. |
|
This method reads in the camera information from a .ray file. |
|
This call rotates the camera, about the axis which is parallel to the right direction of the camera, and passes through the specified point. |
|
This call rotates the camera, about the axis which is parallel to the up direction of the camera, and passes through the specified point. |
|
This method writes out the camera information to a .ray file. If no file is specified, the camera is written out to stdout. |
|
The aspect ratio of the view plane |
|
The direction that the camera is looking |
|
The field of view of the camera |
|
The position of the camera in world coordinates |
|
The right direction of the camera |
|
The up direction of the camera |