Module raytracer

Class OptionReader

java.lang.Object
de.grogra.ray2.photonmap.OptionReader

public class OptionReader extends Object
Reads all Photon Map parameter from the registry and checks if values where changed.
Author:
Ralf Kopsch
  • Constructor Details

    • OptionReader

      public OptionReader(PixelwiseRenderer renderer)
      This Constructor reads all Photon Map parameter from the registry.
      Parameters:
      renderer - the PixelwiseRenderer
  • Method Details

    • isPhotonMapCalcNeeded

      public boolean isPhotonMapCalcNeeded(Scene scene)
      Returns true, if new Photon map must be calculated.
      Parameters:
      scene - the Scene.
      Returns:
      true, if new Photon map must be calculated.
    • calcFinished

      public void calcFinished(Scene scene)
      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.