de.grogra.ray.tracing
Class PathTracerHS
java.lang.Object
   de.grogra.ray.tracing.PathTracerHS
de.grogra.ray.tracing.PathTracerHS
- All Implemented Interfaces: 
- RayProcessor
- public class PathTracerHS 
- extends java.lang.Object- implements RayProcessor
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
PathTracerHS
public PathTracerHS()
PathTracerHS
public PathTracerHS(int depth)
getColorFromRay
public void getColorFromRay(Ray ray,
                            Color4f color)
- Description copied from interface: RayProcessor
- The main methode of a ray processor. This methode has to calculate 
 a color (or luminance of the red, gren and blue ) for each ray.
 
- 
- Specified by:
- getColorFromRayin interface- RayProcessor
 
- 
- Parameters:
- ray- input - calculate for this ray
- color- output - the calculated color
 
getLightProcessor
public LightProcessor getLightProcessor()
- 
- Specified by:
- getLightProcessorin interface- RayProcessor
 
- 
 
getMostProbableRay
public Ray getMostProbableRay(RayList rays,
                              int seed)
- 
 
- 
 
getRecursionDepth
public int getRecursionDepth()
- 
- Specified by:
- getRecursionDepthin interface- RayProcessor
 
- 
 
hasFixedLightProcessor
public boolean hasFixedLightProcessor()
- 
- Specified by:
- hasFixedLightProcessorin interface- RayProcessor
 
- 
 
isPhysicalValid
public boolean isPhysicalValid()
- 
 
- 
 
prepareRayProcessor
public void prepareRayProcessor(RTScene scene,
                                IntersectionProcessor intersectionProcessor)
- Description copied from interface: RayProcessor
- With this method the processor is initialized with a 3d scene
 and an intersection processor it will use.
 
- 
- Specified by:
- prepareRayProcessorin interface- RayProcessor
 
- 
 
setIntersectionProcessor
public void setIntersectionProcessor(IntersectionProcessor processor)
- 
 
- 
 
setLightProcessor
public void setLightProcessor(LightProcessor model)
- 
- Specified by:
- setLightProcessorin interface- RayProcessor
 
- 
 
setPhysicalValid
public void setPhysicalValid(boolean valid)
- 
 
- 
 
setRecursionDepth
public void setRecursionDepth(int value)
- 
- Specified by:
- setRecursionDepthin interface- RayProcessor
 
-