de.grogra.rgg
public abstract class LightModelBase extends ShareableBase
| Modifier and Type | Field and Description |
|---|---|
static Node.NType |
$TYPE |
| Constructor and Description |
|---|
LightModelBase() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
compute()
(Re-)computes the light distribution in the current graph.
|
abstract void |
compute(boolean force)
(Re-)computes the light distribution in the current graph.
|
abstract void |
compute(Spectrum spectrumFactory)
(Re-)computes the light distribution in the current graph.
|
abstract void |
compute(Spectrum spectrumFactory,
boolean force)
(Re-)computes the light distribution in the current graph.
|
abstract Spectrum |
getAbsorbedPower(Node node)
Returns the radiant power in Watts which is absorbed by the surface
of the volume of the given
node. |
Spectrum3d |
getAbsorbedPower3d(Node node)
Returns the radiant power in Watts which is absorbed by the surface
of the volume of the given
node, represented as a
Spectrum3d. |
Spectrum3d |
getRadiantPower3dFor(Node node)
Deprecated.
|
Spectrum |
getRadiantPowerFor(Node node)
Deprecated.
|
abstract Spectrum |
getSensedIrradiance(Node node)
Returns the irradiance in Watts per square meter which is sensed by the
sensor attached to the volume of the given
node. |
Spectrum3d |
getSensedIrradiance3d(Node node) |
abstract void |
setLayerVisible(int layer,
boolean visible)
sets the visibility of a layer
|
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetManageableTypepublic static final Node.NType $TYPE
public abstract void compute()
public abstract void compute(boolean force)
force - if true forces recomputation of the light distributionpublic abstract void compute(Spectrum spectrumFactory)
spectrumFactory - factrory for spectrum objectspublic abstract void compute(Spectrum spectrumFactory, boolean force)
getRadiantPowerFor(de.grogra.graph.impl.Node), getAbsorbedPower(de.grogra.graph.impl.Node) and getSensedIrradiance(de.grogra.graph.impl.Node)
to return correct values.spectrumFactory - factrory for spectrum objectsforce - if true forces recomputation of the light distributionpublic abstract Spectrum getAbsorbedPower(Node node)
node. If the node
does not define a volume, the zero spectrum is returned.node - a node of the graphpublic Spectrum3d getAbsorbedPower3d(Node node)
node, represented as a
Spectrum3d. If the node
does not define a volume, the zero spectrum is returned.node - a node of the graph@Deprecated public Spectrum3d getRadiantPower3dFor(Node node)
node - @Deprecated public Spectrum getRadiantPowerFor(Node node)
node - public abstract Spectrum getSensedIrradiance(Node node)
node.
If the node does not define a volume with a sensor,
the zero spectrum is returned.node - a node of the graphpublic Spectrum3d getSensedIrradiance3d(Node node)
public abstract void setLayerVisible(int layer,
boolean visible)