Class SpectralCurve

    • Constructor Summary

      Constructors 
      Constructor Description
      SpectralCurve()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract float sample​(float lambda)
      This function determines the actual spectral curve data.
      XYZColor toXYZ()
      Convert this curve to a tristimulus CIE XYZ color by integrating against the CIE color matching functions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CIE_xbar

        private static final double[] CIE_xbar
      • CIE_ybar

        private static final double[] CIE_ybar
      • CIE_zbar

        private static final double[] CIE_zbar
      • WAVELENGTH_STEP

        private static final int WAVELENGTH_STEP
    • Constructor Detail

      • SpectralCurve

        public SpectralCurve()
    • Method Detail

      • sample

        public abstract float sample​(float lambda)
        This function determines the actual spectral curve data. Note that the lambda parameter is assumed to be in nanometers.
        Parameters:
        lambda - wavelength to sample in nanometers
        Returns:
        the value of the spectral curve at this point
      • toXYZ

        public final XYZColor toXYZ()
        Convert this curve to a tristimulus CIE XYZ color by integrating against the CIE color matching functions.
        Returns:
        XYZColor that represents this spectra