java.lang.Object
de.grogra.ray2.radiosity.OptionReader
Reads all Radiosity Options from the registry and checks if values where changed.
- Author:
- Ralf Kopsch
-
Constructor Summary
ConstructorDescriptionOptionReader
(PixelwiseRenderer renderer) This Constructor reads all Radiosity parameter from the registry. -
Method Summary
Modifier and TypeMethodDescriptionvoid
calcFinished
(Scene scene) Call this after the rendering to update the values.int
Return the cube pixel size.float
Returns the cube size in world coordinates.int
Returns the max subdivision size.float
Returns the subdivision threshold.int
Returns the thread count.boolean
Returns true, if a new Hemicube must be created.boolean
isRadiosityCalcNeeded
(Scene scene) Returns true, if all Radiosity values must be calculated.
-
Constructor Details
-
OptionReader
This Constructor reads all Radiosity parameter from the registry.- Parameters:
renderer
- the PixelwiseRenderer
-
-
Method Details
-
isHemicubeCalcNeeded
public boolean isHemicubeCalcNeeded()Returns true, if a new Hemicube must be created.- Returns:
- true, if a new Hemicube must be created.
-
isRadiosityCalcNeeded
Returns true, if all Radiosity values must be calculated.- Parameters:
scene
- the Scene.- Returns:
- true, if all Radiosity values must be calculated.
-
calcFinished
Call this after the rendering to update the values.- Parameters:
scene
- the scene object.
-
getCubeWidth
public int getCubeWidth()Return the cube pixel size.- Returns:
- Return the cube pixel size.
-
getHemiWorldWide
public float getHemiWorldWide()Returns the cube size in world coordinates.- Returns:
- Returns the cube size in world coordinates.
-
getMaxsubdivdepth
public int getMaxsubdivdepth()Returns the max subdivision size.- Returns:
- Returns the max subdivision size.
-
getSubdivthreshold
public float getSubdivthreshold()Returns the subdivision threshold.- Returns:
- Returns the subdivision threshold.
-
getThreadCount
public int getThreadCount()Returns the thread count.- Returns:
- Returns the thread count.
-