Public Member Functions | |
RayMaterial * | getMaterial (int index) |
int | read (char *fileName, int transformType=RayKeyData::MATRIX) |
int | read (FILE *fp, int transformType) |
int | write (char *fileName) |
int | write (FILE *fp=stdout) |
Point3D | GetColor (Ray3D ray, int rDepth, Point3D cLimit) |
void | drawOpenGL (void) |
void | setUpOpenGL (int cplx) |
void | setCurrentTime (double t, int curveFit=LINEAR) |
Static Public Member Functions | |
static Point3D | Reflect (Point3D v, Point3D n) |
static int | Refract (Point3D v, Point3D n, double ir, Point3D &refract) |
static Ray3D | GetRay (RayCamera *camera, int i, int j, int width, int height) |
Public Attributes | |
Point3D | ambient |
Point3D | background |
RayCamera * | camera |
RayLight ** | lights |
int | lightNum |
StaticRayGroup * | group |
|
This method calls the OpenGL commands for drawing the scene. |
|
This is the function responsible for the recursive ray-tracing returning the color obtained by shooting a ray into the scene and recursing until either the recursion depth has been reached or the contribution from subsequent bounces is guaranteed to be less than the cut-off. |
|
This method returns the material with the specified index. |
|
This function returns that leaves the camera and goes through pixel (i,j) of the view plane |
|
This method reads in the scene-graph from a .ray file. |
|
This method reads in the scene-graph from a .ray file. |
|
This function will reflect the vector v about the normal n |
|
This function will refract the vector about the normal using the provided indices of refraction The refracted vector is written into refract and a value of 1 is returned if the refraction succeeded (i.e. the necessary arcsin could be computed) |
|
This method updates the current time, changing the parameter values as needed |
|
This method class the OpenGL commands to set up everything that needs to be set up prior to rendering |
|
This method writes out the scene-graph to a .ray file. If no file is specified the scene-graph is written out stdout. |
|
This method writes out the scene-graph to a .ray file. |
|
The ambient light in the scene |
|
The color of the background |
|
The camera |
|
The root of the scene-graph |
|
The number of lights in the scene |
|
The list of lights in the scene |