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
ConstructorsConstructorDescriptionOptionReader(PixelwiseRenderer renderer) This Constructor reads all Radiosity parameter from the registry. -
Method Summary
Modifier and TypeMethodDescriptionvoidcalcFinished(Scene scene) Call this after the rendering to update the values.intReturn the cube pixel size.floatReturns the cube size in world coordinates.intReturns the max subdivision size.floatReturns the subdivision threshold.intReturns the thread count.booleanReturns true, if a new Hemicube must be created.booleanisRadiosityCalcNeeded(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.
-