|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.Piece
cz.cuni.jagrlib.piece.Radiosity
public class Radiosity
Computes illumination of 3D scene using radiosity method.
Nested Class Summary | |
---|---|
static class |
Radiosity.Colors
Supported color modes. |
Field Summary | |
---|---|
protected int |
attrResult
Actual node-result attribute. |
protected RadiosityBasisFunctions |
basis
Accelerator: input information about basis. |
protected int |
batch
Refine-batch size. |
static java.lang.String |
BATCH
|
protected Brep |
brep
Accelerator: input B-rep database. |
protected static java.lang.String |
CATEGORY
Object category. |
protected Radiosity.Colors |
color
Actual used color(s). |
static java.lang.String |
COLORS
|
protected int |
ctx
Actual Brep context. |
protected SLEData |
data
Accelerator: input result from solver. |
protected double |
epsilon
Required accuracy of solution. |
static java.lang.String |
EPSILON
|
protected boolean |
gouraud
Use Gouraud interpolation? |
static java.lang.String |
GOURAUD
|
protected boolean |
log
Log debug information? |
static java.lang.String |
LOG
|
static RegPiece |
reg
Static registration instance for this class. |
protected SLESolver |
solver
Accelerator: input result from solver. |
protected static java.lang.String |
TEMPLATE_NAME
Object template identifier. |
Fields inherited from class cz.cuni.jagrlib.Piece |
---|
channels, info, pl, plugs, TEMPLATE_TYPE, userBreak |
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Constructor Summary | |
---|---|
Radiosity()
|
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.String key)
Gets the given property. |
boolean |
illuminate(int maxIterations,
long maxTime)
Computes scene illumination from the scratch. |
protected void |
saveResult(int handle,
float[] result)
Save one result (attribute) into a Brep database. |
protected void |
saveResults(double[][] solution)
Save all results into a Brep database. |
void |
set(java.lang.String key,
java.lang.Object value)
Sets the given property. |
void |
setCamera(double[] camera)
Sets camera position ( null for no camera = pure global lighting). |
static int |
setTemplate(Template t,
int ord)
General-purpose registration routine. |
boolean |
updateIllumination(int maxIterations,
long maxTime)
Recomputes illumination according to scene & light-source changes. |
Methods inherited from class cz.cuni.jagrlib.Piece |
---|
className, connect, findPlug, findPlug, getInfo, getInterface, getInterface, getPlug, getReg, init, isCompatible, isCompatible, isConnected, logError, logWarning, myInterface, newInputPlug, newOptOutputPlug, newOutputPlug, newPlug, noTemplates, propBegin, propBounds, propDefault, propEnd, propEnum, propManipulator, propManipulator, setProgressListener, setRegStrings, setTemplateDynamic, stop |
Methods inherited from class cz.cuni.jagrlib.DefaultProperty |
---|
booleanProperty, booleanProperty, colorDoubleProperty, colorProperty, commit, doubleProperty, doubleProperty, doubleProperty, enumProperty, floatProperty, floatProperty, floatProperty, intProperty, intProperty, intProperty, longProperty, longProperty, longProperty, set, stringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cz.cuni.jagrlib.iface.Property |
---|
commit |
Methods inherited from interface cz.cuni.jagrlib.Breakable |
---|
setProgressListener, stop |
Field Detail |
---|
protected Radiosity.Colors color
protected Brep brep
protected SLEData data
protected SLESolver solver
protected RadiosityBasisFunctions basis
protected int ctx
Brep
context.
protected int attrResult
protected boolean gouraud
protected double epsilon
protected int batch
protected boolean log
public static final java.lang.String COLORS
public static final java.lang.String GOURAUD
public static final java.lang.String EPSILON
public static final java.lang.String BATCH
public static final java.lang.String LOG
protected static final java.lang.String TEMPLATE_NAME
protected static final java.lang.String CATEGORY
public static final RegPiece reg
Constructor Detail |
---|
public Radiosity()
Method Detail |
---|
protected void saveResult(int handle, float[] result)
Brep
database.
protected void saveResults(double[][] solution)
Brep
database.
public void setCamera(double[] camera)
null
for no camera = pure global lighting).
setCamera
in interface GlobalIllumination
camera
- World-space coordinates of the camera.public boolean illuminate(int maxIterations, long maxTime)
updateIllumination(int, long)
.
illuminate
in interface GlobalIllumination
maxIterations
- If nonzero, defines maximum number of iterations (if applicable).maxTime
- If nonzero, defines maximum time in milliseconds (if applicable).
true
if finished.public boolean updateIllumination(int maxIterations, long maxTime)
SLEData
interface.
Camera position/importance changes should be considered too.
If time/iteration limits are nonzero, tries to fulfill them..
updateIllumination
in interface GlobalIllumination
maxIterations
- If nonzero, defines maximum number of iterations (if applicable).maxTime
- If nonzero, defines maximum time in milliseconds (if applicable).
true
if finished.public void set(java.lang.String key, java.lang.Object value)
set
in interface Property
set
in class DefaultProperty
key
- Key string.value
- The new value.Property.commit()
public java.lang.Object get(java.lang.String key)
get
in interface Property
get
in class DefaultProperty
key
- Key string.
null
.public static int setTemplate(Template t, int ord)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |