de.grogra.ray2.tracing
public class LightModelProcessor extends RadiationModel implements java.lang.Cloneable
RadiationModel.RayPoint| Constructor and Description |
|---|
LightModelProcessor(Scene scene,
int[] idToGroup)
Create a new light model processor that uses the given
spectrum factory.
|
LightModelProcessor(Scene scene,
ObjectList<Spectrum> radiantPowerSum,
ObjectList<Spectrum> absorbedPowerSum,
ObjectList<Spectrum> reflectedPowerSum,
ObjectList<Spectrum> transmittedPowerSum,
ObjectList<Spectrum> sensedIrridiancSum,
int[] idToGroup,
int bundleSize,
ObjectList<ObjectList<RadiationModel.RayPoint>> rays,
IntList hitCounterSum)
Create a new light model processor that uses the given
spectrum factory and adds collected radiation values to the lists.
|
| Modifier and Type | Method and Description |
|---|---|
void |
compute(long rayCount,
long seed,
ProgressMonitor progress,
int maxDepth,
double minPower) |
LightModelProcessor |
dup(Scene scene) |
int |
getBundleSize() |
protected void |
initLocals() |
getAbsorbedPower, getAbsorbedPowerCollector, getHitCount, getReceivedPower, getReflectedPower, getSensedIrradiance, getSensedIrradianceCollector, getTracedRays, getTransmittedPowerpublic LightModelProcessor(Scene scene, int[] idToGroup)
scene - public LightModelProcessor(Scene scene, ObjectList<Spectrum> radiantPowerSum, ObjectList<Spectrum> absorbedPowerSum, ObjectList<Spectrum> reflectedPowerSum, ObjectList<Spectrum> transmittedPowerSum, ObjectList<Spectrum> sensedIrridiancSum, int[] idToGroup, int bundleSize, ObjectList<ObjectList<RadiationModel.RayPoint>> rays, IntList hitCounterSum)
scene - a sceneradiantPowerSum - absorbedPowerSum - reflectedPowerSum - transmittedPowerSum - sensedIrradianceSum - rays - for debugging purposes, the traced rays will be added to the list. Use null if this is not neededpublic void compute(long rayCount,
long seed,
ProgressMonitor progress,
int maxDepth,
double minPower)
compute in class RadiationModelpublic LightModelProcessor dup(Scene scene)
public int getBundleSize()
protected void initLocals()