java.lang.Object
de.grogra.ray2.photonmap.OptionReader
Reads all Photon Map parameter from the registry and checks if values where changed.
- Author:
- Ralf Kopsch
-
Constructor Summary
ConstructorsConstructorDescriptionOptionReader(PixelwiseRenderer renderer) This Constructor reads all Photon Map parameter from the registry. -
Method Summary
Modifier and TypeMethodDescriptionvoidcalcFinished(Scene scene) Call this after the the photon map was created to update the values.intReturns the caustic photon count.intReturns the global photon count.doubleReturns the photon scan area.intReturns the recursion depth.booleanisPhotonMapCalcNeeded(Scene scene) Returns true, if new Photon map must be calculated.
-
Constructor Details
-
OptionReader
This Constructor reads all Photon Map parameter from the registry.- Parameters:
renderer- the PixelwiseRenderer
-
-
Method Details
-
isPhotonMapCalcNeeded
Returns true, if new Photon map must be calculated.- Parameters:
scene- the Scene.- Returns:
- true, if new Photon map must be calculated.
-
calcFinished
Call this after the the photon map was created to update the values.- Parameters:
scene- the scene object.
-
getGlobalPhotonCount
public int getGlobalPhotonCount()Returns the global photon count.- Returns:
- Returns the global photon count.
-
getCausticPhotonCount
public int getCausticPhotonCount()Returns the caustic photon count.- Returns:
- Returns the caustic photon count.
-
getPhotonArea
public double getPhotonArea()Returns the photon scan area.- Returns:
- Returns the photon scan area.
-
getPhotonDepth
public int getPhotonDepth()Returns the recursion depth.- Returns:
- Returns the recursion depth.
-