de.grogra.ray2.photonmap
public class OptionReader extends java.lang.Object
| Constructor and Description |
|---|
OptionReader(PixelwiseRenderer renderer)
This Constructor reads all Photon Map parameter from the registry.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calcFinished(Scene scene)
Call this after the the photon map was created to update the values.
|
int |
getCausticPhotonCount()
Returns the caustic photon count.
|
int |
getGlobalPhotonCount()
Returns the global photon count.
|
double |
getPhotonArea()
Returns the photon scan area.
|
int |
getPhotonDepth()
Returns the recursion depth.
|
boolean |
isPhotonMapCalcNeeded(Scene scene)
Returns true, if new Photon map must be calculated.
|
public OptionReader(PixelwiseRenderer renderer)
renderer - the PixelwiseRendererpublic void calcFinished(Scene scene)
scene - the scene object.public int getCausticPhotonCount()
public int getGlobalPhotonCount()
public double getPhotonArea()
public int getPhotonDepth()
public boolean isPhotonMapCalcNeeded(Scene scene)
scene - the Scene.