|
||||||||||
| 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.testing.BlinnMicrofacet
public class BlinnMicrofacet
Blinn microfacet distribution.
| Field Summary | |
|---|---|
protected static java.lang.String |
CATEGORY
Object category. |
static java.lang.String |
EXPONENT
|
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.Property |
|---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
| Constructor Summary | |
|---|---|
BlinnMicrofacet()
|
|
| Method Summary | |
|---|---|
double |
D(double[] half)
Return a microfacet distribution term. |
java.lang.Object |
get(java.lang.String key)
Gets the given property. |
double |
pdf(double[] in,
double[] out)
Return the probability density function. |
double |
sample(MicroFacet mf,
double[] in,
double u,
double v,
double[] out,
double[] brdf)
Sample the given microfacet distribution. |
void |
set(java.lang.String key,
java.lang.Object value)
Sets the given property. |
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 |
| Field Detail |
|---|
public static final java.lang.String EXPONENT
protected static final java.lang.String TEMPLATE_NAME
protected static final java.lang.String CATEGORY
public static final RegPiece reg
| Constructor Detail |
|---|
public BlinnMicrofacet()
| Method Detail |
|---|
public double sample(MicroFacet mf,
double[] in,
double u,
double v,
double[] out,
double[] brdf)
sample in interface MicrofacetDistributionmf - The MicroFacet (point on surface of some solid).in - Input direction (should look from the hit point).u - Random uniform number.v - Random uniform numbers.out - Output direction in world coordinates.brdf - Color definition - double[C] array
(C can be either 1 /for monochrome computing/, 3 /for RGB
color system/ or greater /for more complex spectral color sampling/).
public double pdf(double[] in,
double[] out)
pdf in interface MicrofacetDistributionin - Input direction in local coordinates.out - Output direction in local coordinates.public double D(double[] half)
D in interface MicrofacetDistributionhalf - Half-vector in local coordinates.
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 | |||||||||