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
ConstructorDescriptionOptionReader
(PixelwiseRenderer renderer) This Constructor reads all Photon Map parameter from the registry. -
Method Summary
Modifier and TypeMethodDescriptionvoid
calcFinished
(Scene scene) Call this after the the photon map was created to update the values.int
Returns the caustic photon count.int
Returns the global photon count.double
Returns the photon scan area.int
Returns the recursion depth.boolean
isPhotonMapCalcNeeded
(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.
-