#include <spectrumwavelengths.h>
Public Member Functions | |
SpectrumWavelengths () | |
~SpectrumWavelengths () | |
void | Sample (float u1, float u2) |
float | SampleSingle () |
Public Attributes | |
float | w [WAVELENGTH_SAMPLES] |
float | cie_X [WAVELENGTH_SAMPLES] |
float | cie_Y [WAVELENGTH_SAMPLES] |
float | cie_Z [WAVELENGTH_SAMPLES] |
bool | single |
int | single_w |
SWCSpectrum | spect_w |
SWCSpectrum | spect_c |
SWCSpectrum | spect_m |
SWCSpectrum | spect_y |
SWCSpectrum | spect_r |
SWCSpectrum | spect_g |
SWCSpectrum | spect_b |
Private Attributes | |
SPD * | spd_w |
SPD * | spd_c |
SPD * | spd_m |
SPD * | spd_y |
SPD * | spd_r |
SPD * | spd_g |
SPD * | spd_b |
Definition at line 35 of file spectrumwavelengths.h.
SpectrumWavelengths::SpectrumWavelengths | ( | ) |
Definition at line 34 of file spectrumwavelengths.cpp.
References lux::refrgb2spect_bins, lux::refrgb2spect_blue, lux::refrgb2spect_cyan, lux::refrgb2spect_end, lux::refrgb2spect_green, lux::refrgb2spect_magenta, lux::refrgb2spect_red, lux::refrgb2spect_scale, lux::refrgb2spect_start, lux::refrgb2spect_white, lux::refrgb2spect_yellow, lux::SPD::Scale(), single, single_w, spd_b, spd_c, spd_g, spd_m, spd_r, spd_w, and spd_y.
SpectrumWavelengths::~SpectrumWavelengths | ( | ) |
void lux::SpectrumWavelengths::Sample | ( | float | u1, | |
float | u2 | |||
) | [inline] |
Definition at line 42 of file spectrumwavelengths.h.
References lux::SWCSpectrum::c, lux::CIE_X, cie_X, lux::CIE_Y, cie_Y, lux::CIE_Z, cie_Z, lux::CIEstart, Floor2Int(), lux::inv_WAVELENGTH_SAMPLES, Lerp(), lux::SPD::sample(), single, single_w, spd_b, spd_c, spd_g, spd_m, spd_r, spd_w, spd_y, spect_b, spect_c, spect_g, spect_m, spect_r, spect_w, spect_y, w, WAVELENGTH_END, WAVELENGTH_SAMPLES, and WAVELENGTH_START.
Referenced by lux::IGIIntegrator::Preprocess(), and lux::RenderThread::render().
float lux::SpectrumWavelengths::SampleSingle | ( | ) | [inline] |
Definition at line 71 of file spectrumwavelengths.h.
References cie_X, cie_Y, cie_Z, single, single_w, w, and WAVELENGTH_SAMPLES.
Referenced by lux::SpecularTransmission::f(), lux::BRDFToBTDF::f(), lux::BRDFToBTDF::Pdf(), lux::SpecularTransmission::Sample_f(), and lux::BRDFToBTDF::Sample_f().
float lux::SpectrumWavelengths::cie_X[WAVELENGTH_SAMPLES] |
Definition at line 84 of file spectrumwavelengths.h.
Referenced by Sample(), SampleSingle(), and lux::SWCSpectrum::ToXYZ().
float lux::SpectrumWavelengths::cie_Y[WAVELENGTH_SAMPLES] |
Definition at line 84 of file spectrumwavelengths.h.
Referenced by Sample(), SampleSingle(), lux::SWCSpectrum::ToXYZ(), and lux::SWCSpectrum::Y().
float lux::SpectrumWavelengths::cie_Z[WAVELENGTH_SAMPLES] |
Definition at line 84 of file spectrumwavelengths.h.
Referenced by Sample(), SampleSingle(), and lux::SWCSpectrum::ToXYZ().
Definition at line 86 of file spectrumwavelengths.h.
Referenced by lux::BasicColorPhoton::BasicColorPhoton(), lux::FresnelDielectric::Evaluate(), lux::SWCSpectrum::Filter(), lux::FresnelDielectric::Index(), Sample(), SampleSingle(), SpectrumWavelengths(), lux::SWCSpectrum::ToXYZ(), and lux::SWCSpectrum::Y().
Definition at line 87 of file spectrumwavelengths.h.
Referenced by lux::BasicColorPhoton::BasicColorPhoton(), lux::FresnelDielectric::Evaluate(), lux::SWCSpectrum::Filter(), lux::FresnelDielectric::Index(), Sample(), SampleSingle(), SpectrumWavelengths(), lux::SWCSpectrum::ToXYZ(), and lux::SWCSpectrum::Y().
SPD * lux::SpectrumWavelengths::spd_b [private] |
Definition at line 95 of file spectrumwavelengths.h.
Referenced by Sample(), SpectrumWavelengths(), and ~SpectrumWavelengths().
SPD * lux::SpectrumWavelengths::spd_c [private] |
Definition at line 95 of file spectrumwavelengths.h.
Referenced by Sample(), SpectrumWavelengths(), and ~SpectrumWavelengths().
SPD * lux::SpectrumWavelengths::spd_g [private] |
Definition at line 95 of file spectrumwavelengths.h.
Referenced by Sample(), SpectrumWavelengths(), and ~SpectrumWavelengths().
SPD * lux::SpectrumWavelengths::spd_m [private] |
Definition at line 95 of file spectrumwavelengths.h.
Referenced by Sample(), SpectrumWavelengths(), and ~SpectrumWavelengths().
SPD * lux::SpectrumWavelengths::spd_r [private] |
Definition at line 95 of file spectrumwavelengths.h.
Referenced by Sample(), SpectrumWavelengths(), and ~SpectrumWavelengths().
SPD* lux::SpectrumWavelengths::spd_w [private] |
Definition at line 95 of file spectrumwavelengths.h.
Referenced by Sample(), SpectrumWavelengths(), and ~SpectrumWavelengths().
SPD * lux::SpectrumWavelengths::spd_y [private] |
Definition at line 95 of file spectrumwavelengths.h.
Referenced by Sample(), SpectrumWavelengths(), and ~SpectrumWavelengths().
Definition at line 91 of file spectrumwavelengths.h.
Referenced by Sample(), and lux::SWCSpectrum::SWCSpectrum().
Definition at line 89 of file spectrumwavelengths.h.
Referenced by Sample(), and lux::SWCSpectrum::SWCSpectrum().
Definition at line 90 of file spectrumwavelengths.h.
Referenced by Sample(), and lux::SWCSpectrum::SWCSpectrum().
Definition at line 89 of file spectrumwavelengths.h.
Referenced by Sample(), and lux::SWCSpectrum::SWCSpectrum().
Definition at line 90 of file spectrumwavelengths.h.
Referenced by Sample(), and lux::SWCSpectrum::SWCSpectrum().
Definition at line 89 of file spectrumwavelengths.h.
Referenced by Sample(), and lux::SWCSpectrum::SWCSpectrum().
Definition at line 90 of file spectrumwavelengths.h.
Referenced by Sample(), and lux::SWCSpectrum::SWCSpectrum().
float lux::SpectrumWavelengths::w[WAVELENGTH_SAMPLES] |
Definition at line 83 of file spectrumwavelengths.h.
Referenced by lux::BasicColorPhoton::BasicColorPhoton(), lux::SkyLight::ChromaticityToSpectrum(), lux::FresnelDielectric::Evaluate(), lux::BasicColorPhoton::GetSWCSpectrum(), lux::VirtualLight::GetSWCSpectrum(), lux::FresnelDielectric::Index(), PhaseDifference(), Sample(), SampleSingle(), lux::SWCSpectrum::SWCSpectrum(), and lux::VirtualLight::VirtualLight().