java.lang.Object
javax.vecmath.Tuple3d
de.grogra.ray.physics.Spectrum3d
de.grogra.ray.physics.Collector3d
de.grogra.ray.physics.Collector3dList
- All Implemented Interfaces:
Collector
,Spectrum
,DoubleToDouble
,Serializable
,Cloneable
This class distinguish
- Author:
- adge-k
- See Also:
-
Field Summary
Fields inherited from class de.grogra.ray.physics.Collector3d
asCollector, rayCount, squareSumDirectionX, squareSumDirectionY, squareSumDirectionZ, squareSumSpectrumX, squareSumSpectrumY, squareSumSpectrumZ, sumDirectionX, sumDirectionY, sumDirectionZ, sumSpectrumX, sumSpectrumY, sumSpectrumZ
-
Constructor Summary
ConstructorDescriptionCollector3dList
(double x, double y, double z) Collector3dList
(Spectrum spectrum) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add the newSpectrum to the spectrum of this Collector-instance and update the statistics.void
addToStatistic
(Tuple3d rayOrigin, Spectrum3d spectrum, double scaleFactor, boolean isPrimary) Add the Vector of the origin of a certain ray, which hits the object for this corresponding Collector-instance.clone()
Creates a copy of the Spectrum or a deep-copy of this instance.Returns a new instance of this class.void
setZero()
Sets all values the instance to zero.Methods inherited from class de.grogra.ray.physics.Collector3d
add, addToStatistic, getCollectedValues, getDirectionArithmeticMean, getDirectionArithmeticMean, getDirectionVariance, getDirectionVariance, getRayCount, getSpectrumArithmeticMean, getSpectrumVariance, isCollector, normalize, normalize, setAsCollector
Methods inherited from class de.grogra.ray.physics.Spectrum3d
clampMinZero, div, div, div, dot, evaluateDouble, get, getMax, integrate, mul, mul, mul, set, setIdentity, sub, sum
Methods inherited from class javax.vecmath.Tuple3d
absolute, absolute, add, add, clamp, clamp, clamp, clamp, clampMax, clampMax, clampMax, clampMax, clampMin, clampMin, clampMin, clampMin, epsilonEquals, equals, equals, get, get, get, hashCode, interpolate, interpolate, interpolate, interpolate, max, min, negate, negate, scale, scale, scaleAdd, scaleAdd, set, set, set, set, sub, sub, toString
-
Constructor Details
-
Collector3dList
public Collector3dList() -
Collector3dList
public Collector3dList(double x, double y, double z) -
Collector3dList
-
-
Method Details
-
addToStatistic
public void addToStatistic(Tuple3d rayOrigin, Spectrum3d spectrum, double scaleFactor, boolean isPrimary) Description copied from class:Collector3d
Add the Vector of the origin of a certain ray, which hits the object for this corresponding Collector-instance. Notice: The direction and the weight of the direction doesn't depends on the absorbed power but on the intensity of the incoming ray.- Overrides:
addToStatistic
in classCollector3d
- Parameters:
rayOrigin
- Where the light comes from.
-
add
Description copied from class:Collector3d
Add the newSpectrum to the spectrum of this Collector-instance and update the statistics.- Specified by:
add
in interfaceSpectrum
- Overrides:
add
in classCollector3d
- Parameters:
collector
- the spectrum to add
-
getPrimary
-
getSecondary
-
setZero
public void setZero()Description copied from class:Collector3d
Sets all values the instance to zero. Useful when the instance is still used as container for information/ results of theLightModel
computation.- Specified by:
setZero
in interfaceSpectrum
- Overrides:
setZero
in classCollector3d
-
newInstance
Description copied from class:Collector3d
Returns a new instance of this class.- Specified by:
newInstance
in interfaceCollector
- Specified by:
newInstance
in interfaceSpectrum
- Overrides:
newInstance
in classCollector3d
- Returns:
- new instance of same class
-
clone
Description copied from class:Collector3d
Creates a copy of the Spectrum or a deep-copy of this instance.
-