|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.grogra.ray2.tracing.RadiationModel
public abstract class RadiationModel
Abstract base class for radiation model.
| Field Summary | |
|---|---|
static int |
BUNDLE_SIZE
Implementation groups rays into bundles of BUNDLE_SIZE
rays which are computed at once. |
| Constructor Summary | |
|---|---|
RadiationModel(Spectrum spectrumFactory,
ObjectList<Spectrum> radiantPowerSum,
ObjectList<Spectrum> sensedIrradianceSum,
int[] idToGroup)
Create a new radiation model that adds collected radiation values to the lists. |
|
| Method Summary | |
|---|---|
abstract void |
compute(long rayCount,
long seed,
ProgressMonitor progress,
int depth,
double minPower)
|
Spectrum |
getAbsorbedPower(int volumeIndex)
Obtain the radiation power that was absorbed by a volume. |
Collector |
getAbsorbedPowerCollector(int volumeIndex)
|
Spectrum |
getSensedIrradiance(int volumeIndex)
Obtain the irradiance that was sensed by a volume. |
Collector |
getSensedIrradianceCollector(int volumeIndex)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BUNDLE_SIZE
BUNDLE_SIZE
rays which are computed at once.
| Constructor Detail |
|---|
public RadiationModel(Spectrum spectrumFactory,
ObjectList<Spectrum> radiantPowerSum,
ObjectList<Spectrum> sensedIrradianceSum,
int[] idToGroup)
spectrumFactory - factory to create spectraradiantPowerSum - list to which radiant powers are addedsensedIrradianceSum - list to which sensed irradiances are addedidToGroup - mapping from volume id to group index| Method Detail |
|---|
public abstract void compute(long rayCount,
long seed,
ProgressMonitor progress,
int depth,
double minPower)
public Spectrum getAbsorbedPower(int volumeIndex)
volumeIndex - index into idToGroup
public Collector getAbsorbedPowerCollector(int volumeIndex)
public Spectrum getSensedIrradiance(int volumeIndex)
volumeIndex - index into idToGroup
public Collector getSensedIrradianceCollector(int volumeIndex)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||