Module raytracer

Class Collector3dList

All Implemented Interfaces:
Collector, Spectrum, DoubleToDouble, Serializable, Cloneable

public class Collector3dList extends Collector3d
This class distinguish
Author:
adge-k
See Also:
  • Constructor Details

    • Collector3dList

      public Collector3dList()
    • Collector3dList

      public Collector3dList(double x, double y, double z)
    • Collector3dList

      public Collector3dList(Spectrum spectrum)
  • 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 class Collector3d
      Parameters:
      rayOrigin - Where the light comes from.
    • add

      public void add(Spectrum collector)
      Description copied from class: Collector3d
      Add the newSpectrum to the spectrum of this Collector-instance and update the statistics.
      Specified by:
      add in interface Spectrum
      Overrides:
      add in class Collector3d
      Parameters:
      collector - the spectrum to add
    • getPrimary

      public Collector3d getPrimary()
    • getSecondary

      public Collector3d 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 the LightModel computation.
      Specified by:
      setZero in interface Spectrum
      Overrides:
      setZero in class Collector3d
    • newInstance

      public Collector3dList newInstance()
      Description copied from class: Collector3d
      Returns a new instance of this class.
      Specified by:
      newInstance in interface Collector
      Specified by:
      newInstance in interface Spectrum
      Overrides:
      newInstance in class Collector3d
      Returns:
      new instance of same class
    • clone

      public Collector3dList clone()
      Description copied from class: Collector3d
      Creates a copy of the Spectrum or a deep-copy of this instance.
      Specified by:
      clone in interface Collector
      Specified by:
      clone in interface Spectrum
      Overrides:
      clone in class Collector3d
      Returns:
      Copy of this instance.