|
||||||||||
| 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.RadiosityEquations
public class RadiosityEquations
Provides SLE (system of linear equations) from Brep for some SLE Solver.
| Field Summary | |
|---|---|
protected int |
attrColor
Attribute: face color (albedo = ro). |
protected int |
attrEmission
Attribute: face emmision (E). |
protected int |
attrResult
Attribute: face radiosity (result = B). |
protected RadiosityBasisFunctions |
basis
Accelerator: input radiosity basis functions. |
protected Brep |
brep
Accelerator: input Brep database. |
protected static java.lang.String |
CATEGORY
Object category. |
protected java.lang.String |
colorName
Attribute name: face color. |
protected int |
component
Actual component number. |
protected int |
ctx
Actual Brep context. |
protected java.lang.String |
emissionName
Attribute name: face color. |
protected boolean |
isInitialized
Was the SLE already initialized? |
static RegPiece |
reg
Static registration instance for this class. |
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.SLEData |
|---|
NULL |
| Fields inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
| Constructor Summary | |
|---|---|
RadiosityEquations()
|
|
| Method Summary | |
|---|---|
int |
actualComponent()
Get actual component number. |
java.lang.Object |
get(java.lang.String key)
Gets the given property. |
double |
getCoeff(int row,
int col)
Reads a single matrix coefficient. |
double[] |
getColumn(int col,
double[] result)
Reads the whole matrix column. |
int |
getColumns()
Number of unknowns = number of matrix columns (usually number of unknowns is equal to number of equations). |
double[][] |
getMatrix()
Reads the whole matrix. |
double[] |
getReflectance(double[] reflectance)
Reads the whole reflectance vector. |
double |
getReflectance(int i)
Reads a single reflectance (radiosity: element albedo). |
double[] |
getRight(double[] result)
Reads the whole right-side vector. |
double |
getRight(int row)
Reads a single element of the right-side vector. |
double[] |
getRow(int row,
double[] result)
Reads the whole matrix row. |
int |
getRows()
Number of equations = number of matrix rows (usually number of unknowns is equal to number of equations). |
double[] |
getSolution(double[] result)
Reads the whole solution vector. |
double |
getSolution(int col)
Reads a single unknown (element of solution vector). |
double[] |
getWeight(double[] values)
Reads the whole weight vector. |
double |
getWeight(int i)
Reads a single element weight (radiosity: element area). |
protected boolean |
init()
Initialize accelerators. |
int |
nextCoeffInColumnChanged(int row,
int col)
Returns row-index of next coefficient which was changed since last resetChanges() call. |
int |
nextCoeffInRowChanged(int row,
int col)
Returns column-index of next coefficient which was changed since last resetChanges() call. |
int |
nextRightChanged(int row)
Returns index of next right-side element which was changed since last resetChanges() call. |
void |
resetChanges()
Resets (acknowledges) all SLE changes. |
void |
set(java.lang.String key,
java.lang.Object value)
Sets the given property. |
void |
setComponent(int c)
Set actual component (non-mandatory). |
void |
setSolution(double[] values)
Writes the whole solution vector. |
void |
setSolution(int col,
double value)
Writes value of a single unknown. |
static int |
setTemplate(Template t,
int ord)
General-purpose registration routine. |
| 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 |
| Field Detail |
|---|
protected Brep brep
Brep database.
protected RadiosityBasisFunctions basis
protected int ctx
Brep context.
protected java.lang.String colorName
protected java.lang.String emissionName
protected int attrColor
protected int attrEmission
protected int attrResult
protected boolean isInitialized
protected int component
protected static final java.lang.String TEMPLATE_NAME
protected static final java.lang.String CATEGORY
public static final RegPiece reg
| Constructor Detail |
|---|
public RadiosityEquations()
| Method Detail |
|---|
public int getRows()
getRows in interface SLEDatapublic int getColumns()
getColumns in interface SLEData
public double getCoeff(int row,
int col)
getCoeff in interface SLEData
public double[] getRow(int row,
double[] result)
getRow in interface SLEData
public double[] getColumn(int col,
double[] result)
getColumn in interface SLEDatapublic double[][] getMatrix()
getMatrix in interface SLEDatapublic double getRight(int row)
getRight in interface SLEDatapublic double[] getRight(double[] result)
getRight in interface SLEDataresult - Pre-allocated array to hold result (can be null).public double getSolution(int col)
getSolution in interface SLEDatapublic double[] getSolution(double[] result)
getSolution in interface SLEData
public void setSolution(int col,
double value)
setSolution in interface SLEDatapublic void setSolution(double[] values)
setSolution in interface SLEDatapublic int nextRightChanged(int row)
resetChanges() call.
nextRightChanged in interface SLEData
public int nextCoeffInRowChanged(int row,
int col)
resetChanges() call.
Passes through the given matrix row..
nextCoeffInRowChanged in interface SLEData
public int nextCoeffInColumnChanged(int row,
int col)
resetChanges() call.
Passes through the given matrix column..
nextCoeffInColumnChanged in interface SLEDatapublic void resetChanges()
resetChanges in interface SLEDatapublic double getWeight(int i)
getWeight in interface SLEDatapublic double[] getWeight(double[] values)
getWeight in interface SLEDatavalues - Pre-allocated array to hold result (can be null).public double getReflectance(int i)
getReflectance in interface SLEDatapublic double[] getReflectance(double[] reflectance)
getReflectance in interface SLEDatareflectance - Pre-allocated array to hold result (can be null).public int actualComponent()
actualComponent in interface SLEDatapublic void setComponent(int c)
setComponent in interface SLEDataprotected boolean init()
public void set(java.lang.String key,
java.lang.Object value)
set in interface Propertyset in class DefaultPropertykey - Key string.value - The new value.Property.commit()public java.lang.Object get(java.lang.String key)
get in interface Propertyget in class DefaultPropertykey - 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 | |||||||||