|
||||||||
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
for a single ray. Such an algorithm needs information about the whole scene,
this information is obtained through the
PixelwiseRenderer
which is passed
to the initialize
method.
Method Summary | |
---|---|
void |
appendStatistics(java.lang.StringBuffer stats)
Appends some statistics information about the ray processing to stats . |
RayProcessor |
dup(Scene scene)
Returns a clone of this RayProcessor . |
void |
getColorFromRay(Line ray,
Spectrum resp,
Color4f color,
java.util.Random random)
The main method of a ray processor. |
void |
initialize(PixelwiseRenderer renderer,
Scene scene)
With this method the processor is initialized with the scene and other information of a PixelwiseRenderer . |
void |
initializeBeforeTracing(java.util.Random random)
With this method the processor is initialized with the Randomizer actually before starting the ray tracing. |
Method Detail |
---|
void appendStatistics(java.lang.StringBuffer stats)
stats
. This method will be invoked after the whole
rendering process has completed.
stats
- buffer for statistics informationRayProcessor dup(Scene scene)
RayProcessor
.
All constant variables are copied shallowly, state variables
are newly created and copied where necessary.
scene
- duplicate of scene
void getColorFromRay(Line ray, Spectrum resp, Color4f color, java.util.Random random)
color
for the specified ray
.
color.w
contains
the alpha value for the ray, the other components are
premultiplied with this alpha value.
ray
- input - calculate for this rayresp
- responsivity of cameracolor
- output - the calculated colorrandom
- pseudorandom generatorvoid initialize(PixelwiseRenderer renderer, Scene scene)
PixelwiseRenderer
.
renderer
- the renderer which provides the needed informationscene
- the scene which is renderedvoid initializeBeforeTracing(java.util.Random random)
random
- pseudorandom generator
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |