#include <Ray.h>
This class contains a couple of methods for the ray object. Each ray object stores the resulting color values for the different objects of one ray. This object is used for two level rendering, where the stored color values are then blend together to obtain the final color of the ray.
Public Member Functions | |
Ray (void) | |
This is the standard constructor. | |
~Ray (void) | |
This is the standard destructor. | |
void | setRayCapacity (int n_RayCapacity) |
Sets the raycapacity. | |
void | insertSample (RaySample *newSample) |
Inserts a raysample into the ray. | |
RaySample * | getRaySample (int rayPosition) |
Returns the raysample at the given position. | |
Array * | getRaySamples (void) |
Returns all raysamples of the ray. | |
unsigned short | getUsedObjectIDs (void) __gc[] |
Returns the already used objectIDs of the raysamples that are stored in the ray. | |
int | getSampleCount (void) |
Returns the number of stored raysamples. | |
void | clearRay (void) |
Cleares all raysamples of the ray. | |
Private Attributes | |
ArrayList * | m_RaySamples |
Stores the calculated raysamples. | |
ArrayList * | m_UsedObjectIDs |
Stores the already used objectIDs of the raysamples. |
|
This is the standard constructor.
|
|
This is the standard destructor.
|
|
Cleares all raysamples of the ray.
|
|
Returns the raysample at the given position.
|
|
Returns all raysamples of the ray.
|
|
Returns the number of stored raysamples.
|
|
Returns the already used objectIDs of the raysamples that are stored in the ray.
|
|
Inserts a raysample into the ray.
|
|
Sets the raycapacity.
|