java.lang.Object
de.grogra.ray2.tracing.RadiationModel
de.grogra.ray2.tracing.LightModelProcessorD
- All Implemented Interfaces:
Cloneable
Same as LightModelProcessor but in addition allows to compute values for each
recursion depth individually.
- Author:
- MH
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.ray2.tracing.RadiationModel
RadiationModel.RayPoint
-
Constructor Summary
ConstructorDescriptionLightModelProcessorD
(Scene scene, int[] idToGroup) Create a new light model processor that uses the given spectrum factory.LightModelProcessorD
(Scene scene, int depth, ObjectList<ObjectList<Spectrum>> radiantPowerSum, ObjectList<ObjectList<Spectrum>> absorbedPowerSum, ObjectList<ObjectList<Spectrum>> reflectedPowerSum, ObjectList<ObjectList<Spectrum>> transmittedPowerSum, ObjectList<ObjectList<Spectrum>> sensedIrridiancSum, int[] idToGroup, int bundleSize, ObjectList<ObjectList<RadiationModel.RayPoint>> rays, ObjectList<IntList> hitCounterSum) Create a new light model processor that uses the given spectrum factory and adds collected radiation values to the lists. -
Method Summary
Modifier and TypeMethodDescriptionvoid
compute
(long rayCount, long seed, ProgressMonitor progress, int maxDepth, double minPower) int
protected void
Methods inherited from class de.grogra.ray2.tracing.RadiationModel
getAbsorbedPower, getAbsorbedPowerCollector, getAbsorbedPowerD, getHitCount, getHitCountD, getReceivedPower, getReceivedPowerD, getReflectedPower, getReflectedPowerD, getSensedIrradiance, getSensedIrradianceCollector, getSensedIrradianceD, getTracedRays, getTransmittedPower, getTransmittedPowerD
-
Constructor Details
-
LightModelProcessorD
Create a new light model processor that uses the given spectrum factory.- Parameters:
scene
-
-
LightModelProcessorD
public LightModelProcessorD(Scene scene, int depth, ObjectList<ObjectList<Spectrum>> radiantPowerSum, ObjectList<ObjectList<Spectrum>> absorbedPowerSum, ObjectList<ObjectList<Spectrum>> reflectedPowerSum, ObjectList<ObjectList<Spectrum>> transmittedPowerSum, ObjectList<ObjectList<Spectrum>> sensedIrridiancSum, int[] idToGroup, int bundleSize, ObjectList<ObjectList<RadiationModel.RayPoint>> rays, ObjectList<IntList> hitCounterSum) Create a new light model processor that uses the given spectrum factory and adds collected radiation values to the lists.- Parameters:
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 needed
-
-
Method Details
-
initLocals
protected void initLocals() -
dup
-
compute
public void compute(long rayCount, long seed, ProgressMonitor progress, int maxDepth, double minPower) - Specified by:
compute
in classRadiationModel
-
getBundleSize
public int getBundleSize()
-