de.grogra.ray2.tracing
public interface RayProcessor
PixelwiseRenderer which is passed
to the initialize method.| Modifier and Type | Method and Description |
|---|---|
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.
|
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 scenevoid 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