de.grogra.ray2.radiosity
public class OptionReader extends java.lang.Object
| Constructor and Description |
|---|
OptionReader(PixelwiseRenderer renderer)
This Constructor reads all Radiosity parameter from the registry.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calcFinished(Scene scene)
Call this after the rendering to update the values.
|
int |
getCubeWidth()
Return the cube pixel size.
|
float |
getHemiWorldWide()
Returns the cube size in world coordinates.
|
int |
getMaxsubdivdepth()
Returns the max subdivision size.
|
float |
getSubdivthreshold()
Returns the subdivision threshold.
|
int |
getThreadCount()
Returns the thread count.
|
boolean |
isHemicubeCalcNeeded()
Returns true, if a new Hemicube must be created.
|
boolean |
isRadiosityCalcNeeded(Scene scene)
Returns true, if all Radiosity values must be calculated.
|
public OptionReader(PixelwiseRenderer renderer)
renderer - the PixelwiseRendererpublic void calcFinished(Scene scene)
scene - the scene object.public int getCubeWidth()
public float getHemiWorldWide()
public int getMaxsubdivdepth()
public float getSubdivthreshold()
public int getThreadCount()
public boolean isHemicubeCalcNeeded()
public boolean isRadiosityCalcNeeded(Scene scene)
scene - the Scene.