de.grogra.ray2.tracing
Class PhotonMapRayProcessor

java.lang.Object
  extended by de.grogra.ray2.tracing.ProcessorBase
      extended by de.grogra.ray2.tracing.RayProcessorBase
          extended by de.grogra.ray2.tracing.PhotonMapRayProcessor
All Implemented Interfaces:
RayProcessor, java.lang.Cloneable

public class PhotonMapRayProcessor
extends RayProcessorBase

This class renders a scene with the photon map rendering algorithm.

Author:
Ralf Kopsch

Nested Class Summary
 
Nested classes/interfaces inherited from class de.grogra.ray2.tracing.RayProcessorBase
RayProcessorBase.Locals
 
Field Summary
 
Fields inherited from class de.grogra.ray2.tracing.RayProcessorBase
enteredSolids, RECURSION_DEPTH, renderer, scene, sumColor
 
Constructor Summary
PhotonMapRayProcessor()
          Creates a new Photon Map Processor.
 
Method Summary
protected  void appendStatisticsImpl(java.lang.StringBuffer stats)
           
 void initialize(PixelwiseRenderer renderer, Scene scene)
          With this method the processor is initialized with the scene and other information of a PixelwiseRenderer.
protected  void initLocals()
           
 
Methods inherited from class de.grogra.ray2.tracing.RayProcessorBase
dup, getColorFromRay, getIOR, getLightProcessor, initializeBeforeTracing, mergeStatistics, record, record, setLightProcessor, setRecursionDepth, unrecord
 
Methods inherited from class de.grogra.ray2.tracing.ProcessorBase
appendStatistics, clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.grogra.ray2.tracing.RayProcessor
appendStatistics
 

Constructor Detail

PhotonMapRayProcessor

public PhotonMapRayProcessor()
Creates a new Photon Map Processor.

Method Detail

appendStatisticsImpl

protected void appendStatisticsImpl(java.lang.StringBuffer stats)
Specified by:
appendStatisticsImpl in class ProcessorBase

initialize

public void initialize(PixelwiseRenderer renderer,
                       Scene scene)
Description copied from interface: RayProcessor
With this method the processor is initialized with the scene and other information of a PixelwiseRenderer.

Specified by:
initialize in interface RayProcessor
Overrides:
initialize in class RayProcessorBase
Parameters:
renderer - the renderer which provides the needed information
scene - the scene which is rendered

initLocals

protected void initLocals()
Overrides:
initLocals in class RayProcessorBase