|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface RayProcessor
An implementation of this interface encapsulates the raytracing algorithm. This class uses an IntersectionProcessor for determining intersection information about a single ray in the scene. Therefore it must not know the scene at all. It only interpretes the intersection information and sends out and traces new (reflected,fractured,..) rays.
| Method Summary | |
|---|---|
void |
getColorFromRay(Ray ray,
Color4f color)
The main methode of a ray processor. |
LightProcessor |
getLightProcessor()
|
int |
getRecursionDepth()
|
boolean |
hasFixedLightProcessor()
|
void |
prepareRayProcessor(RTScene scene,
IntersectionProcessor intersectionProcessor)
With this method the processor is initialized with a 3d scene and an intersection processor it will use. |
void |
setLightProcessor(LightProcessor lightProcessor)
|
void |
setRecursionDepth(int value)
|
| Method Detail |
|---|
void getColorFromRay(Ray ray,
Color4f color)
ray - input - calculate for this raycolor - output - the calculated colorLightProcessor getLightProcessor()
int getRecursionDepth()
boolean hasFixedLightProcessor()
void prepareRayProcessor(RTScene scene,
IntersectionProcessor intersectionProcessor)
scene - intersectionProcessor - void setLightProcessor(LightProcessor lightProcessor)
void setRecursionDepth(int value)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||