#include <photonmap.h>
Public Member Functions | |
BasicColorPhoton (const TsPack *tspack, const Point &pp, const SWCSpectrum &wt) | |
BasicColorPhoton () | |
virtual | ~BasicColorPhoton () |
SWCSpectrum | GetSWCSpectrum (const TsPack *tspack, u_int nb) const |
virtual void | save (bool isLittleEndian, std::basic_ostream< char > &stream) const |
virtual void | load (bool isLittleEndian, std::basic_istream< char > &stream) |
Public Attributes | |
SWCSpectrum | alpha |
float | w [WAVELENGTH_SAMPLES] |
Definition at line 60 of file core/photonmap.h.
lux::BasicColorPhoton::BasicColorPhoton | ( | const TsPack * | tspack, | |
const Point & | pp, | |||
const SWCSpectrum & | wt | |||
) | [inline] |
Definition at line 62 of file core/photonmap.h.
References alpha, lux::SWCSpectrum::c, if(), lux::SpectrumWavelengths::single, lux::SpectrumWavelengths::single_w, lux::TsPack::swl, lux::SpectrumWavelengths::w, w, and WAVELENGTH_SAMPLES.
lux::BasicColorPhoton::BasicColorPhoton | ( | ) | [inline] |
Definition at line 74 of file core/photonmap.h.
virtual lux::BasicColorPhoton::~BasicColorPhoton | ( | ) | [inline, virtual] |
Definition at line 75 of file core/photonmap.h.
SWCSpectrum lux::BasicColorPhoton::GetSWCSpectrum | ( | const TsPack * | tspack, | |
u_int | nb | |||
) | const |
Definition at line 39 of file core/photonmap.cpp.
References alpha, lux::SWCSpectrum::c, lux::TsPack::swl, w, lux::SpectrumWavelengths::w, WAVELENGTH_END, WAVELENGTH_SAMPLES, and WAVELENGTH_START.
Referenced by lux::LightPhotonMap::EPhoton(), lux::LightPhotonMap::LDiffusePhoton(), lux::ExPhotonIntegrator::LiDirectLightingMode(), lux::LightPhotonMap::LPhoton(), lux::RadiancePhotonMap::LPhoton(), and lux::LightPhotonMap::LPhotonDiffuseApprox().
void lux::BasicColorPhoton::load | ( | bool | isLittleEndian, | |
std::basic_istream< char > & | stream | |||
) | [virtual] |
Implements lux::BasicPhoton.
Reimplemented in lux::LightPhoton, and lux::RadiancePhoton.
Definition at line 78 of file core/photonmap.cpp.
References alpha, lux::SWCSpectrum::c, lux::osReadLittleEndianFloat(), lux::BasicPhoton::p, w, and WAVELENGTH_SAMPLES.
void lux::BasicColorPhoton::save | ( | bool | isLittleEndian, | |
std::basic_ostream< char > & | stream | |||
) | const [virtual] |
Implements lux::BasicPhoton.
Reimplemented in lux::LightPhoton, and lux::RadiancePhoton.
Definition at line 63 of file core/photonmap.cpp.
References alpha, lux::SWCSpectrum::c, lux::osWriteLittleEndianFloat(), lux::BasicPhoton::p, w, and WAVELENGTH_SAMPLES.
Definition at line 82 of file core/photonmap.h.
Referenced by BasicColorPhoton(), GetSWCSpectrum(), load(), and save().
float lux::BasicColorPhoton::w[WAVELENGTH_SAMPLES] |
Definition at line 83 of file core/photonmap.h.
Referenced by BasicColorPhoton(), GetSWCSpectrum(), lux::LightPhoton::load(), load(), and save().