|
||||||||||
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.DefaultImageFunction
cz.cuni.jagrlib.testing.DefaultRenderer
cz.cuni.jagrlib.testing.DirectLightMapVisualizer
public class DirectLightMapVisualizer
Direct light map visualizer for JGL scenes.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class cz.cuni.jagrlib.testing.DefaultRenderer |
---|
DefaultRenderer.Reflections, DefaultRenderer.Sampling |
Field Summary | |
---|---|
protected static java.lang.String |
CATEGORY
Object category. |
protected LightMap |
caustic
Caustic map for cautic photon storing. |
static java.lang.String |
CAUSTICS
|
protected LightMap |
global
Light map for global (direct,indirect) photon storing. |
static java.lang.String |
GLOBAL
|
static java.lang.String |
LOG
|
static java.lang.String |
REFLECTIONS
|
static RegPiece |
reg
Static registration instance for this class. |
protected LightMap |
shadow
Shadow map for shadow photon storing. |
protected boolean |
shadowPhotons
Are they used shadow photons? |
static java.lang.String |
TEXTURES
|
protected LightTracing |
tracer
Light tracer to compute illumination of scene. |
protected boolean |
useCaustics
True if caustics should be used. |
protected boolean |
useGlobal
True if global illumination should be used. |
protected LightMap |
volume
Volume map for volume photon storing. |
Fields inherited from class cz.cuni.jagrlib.testing.DefaultRenderer |
---|
actOrder, actTotal, camera, dataMask, HASH_LIGHT, HASH_TEXTURE, inter, isInit, numShadowRays, occlusion, reflections, rnd, sampling, scene, useTextures, xA, xK, yA, yK |
Fields inherited from class cz.cuni.jagrlib.DefaultImageFunction |
---|
background, time, xMax, xMin, yMax, yMin |
Fields inherited from class cz.cuni.jagrlib.Piece |
---|
channels, info, pl, plugs, TEMPLATE_TYPE, userBreak |
Fields inherited from interface cz.cuni.jagrlib.iface.ImageFunction |
---|
BACKGROUND_COLOR |
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Constructor Summary | |
---|---|
DirectLightMapVisualizer()
|
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.String key)
Gets the given property. |
protected boolean |
init()
Prepare scene for rendering. |
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. |
protected long |
shade(int level,
double importance,
double[] p0,
double[] p1,
double[] color)
Recursive shading function - computes color contribution of the given ray (shot from the origin p0 into direction vector p1 ). |
Methods inherited from class cz.cuni.jagrlib.testing.DefaultRenderer |
---|
assertScene, directIllumination, getSample, getTime, getTimeInterval, sampleBSDF, sampleLightSource, setBounds, setTime, specular |
Methods inherited from class cz.cuni.jagrlib.DefaultImageFunction |
---|
getBounds, getSample |
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 boolean useCaustics
True
if caustics should be used.
protected boolean useGlobal
True
if global illumination should be used.
protected boolean shadowPhotons
protected LightMap global
protected LightMap caustic
protected LightMap shadow
protected LightMap volume
protected LightTracing tracer
public static final java.lang.String REFLECTIONS
public static final java.lang.String GLOBAL
public static final java.lang.String CAUSTICS
public static final java.lang.String TEXTURES
public static final java.lang.String LOG
protected static final java.lang.String CATEGORY
public static final RegPiece reg
Constructor Detail |
---|
public DirectLightMapVisualizer()
Method Detail |
---|
protected boolean init()
init
in class DefaultRenderer
protected long shade(int level, double importance, double[] p0, double[] p1, double[] color)
p0
into direction vector p1
). Recursion is stopped
by a hybrid method: importance
and level
are checked.
shade
in class DefaultRenderer
level
- Actual recursion depth.importance
- Importance of the actual ray.p0
- Ray origin.p1
- Direction vector of the ray.color
- Pre-allocated array to hold result color vector (double[1]
for monochrome images, double[3]
for RGB images,
larger arrays can be used for more complex spectral sampling).
#minImportance
,
#maxLevel
,
DefaultRenderer.scene
,
DefaultRenderer.inter
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 |