#include <spd.h>
Public Member Functions | |
| SPD () | |
| virtual | ~SPD () |
| float | sample (const float lambda) const |
| void | sample (unsigned int n, const float lambda[], float *p) const |
| float | Y () const |
| float | Filter () const |
| void | AllocateSamples (unsigned int n) |
| void | FreeSamples () |
| void | Normalize () |
| void | Clamp () |
| void | Scale (float s) |
| void | Whitepoint (float temp) |
| Spectrum | ToRGB () |
Protected Attributes | |
| unsigned int | nSamples |
| float | lambdaMin |
| float | lambdaMax |
| float | delta |
| float | invDelta |
| float * | samples |
Definition at line 34 of file spd.h.
| luxrays::sdl::SPD::SPD | ( | ) | [inline] |
| virtual luxrays::sdl::SPD::~SPD | ( | ) | [inline, virtual] |
Definition at line 41 of file spd.h.
References FreeSamples().
| void luxrays::sdl::SPD::AllocateSamples | ( | unsigned int | n | ) |
| float SPD::Filter | ( | ) | const |
| void SPD::FreeSamples | ( | ) |
Definition at line 33 of file spd.cpp.
References luxrays::FreeAligned(), and samples.
Referenced by ~SPD().
| void luxrays::sdl::SPD::sample | ( | unsigned int | n, | |
| const float | lambda[], | |||
| float * | p | |||
| ) | const [inline] |
Definition at line 56 of file spd.h.
References luxrays::Floor2UInt(), invDelta, lambdaMax, lambdaMin, luxrays::sdl::Lerp(), luxrays::Min(), nSamples, and samples.
| float luxrays::sdl::SPD::sample | ( | const float | lambda | ) | const [inline] |
Definition at line 44 of file spd.h.
References luxrays::Floor2UInt(), invDelta, lambdaMax, lambdaMin, luxrays::sdl::Lerp(), luxrays::Min(), nSamples, and samples.
Referenced by luxrays::sdl::SunLight::Init(), ToRGB(), and Y().
| void SPD::Scale | ( | float | s | ) |
| Spectrum SPD::ToRGB | ( | ) |
Definition at line 95 of file spd.cpp.
References luxrays::Spectrum::b, luxrays::sdl::CIE_X, luxrays::sdl::CIE_Y, luxrays::sdl::CIE_Z, luxrays::sdl::CIEstart, luxrays::Spectrum::g, luxrays::sdl::nCIE, luxrays::Spectrum::r, and sample().
Referenced by luxrays::sdl::SunLight::Init().
| void SPD::Whitepoint | ( | float | temp | ) |
| float SPD::Y | ( | ) | const |
Definition at line 87 of file spd.cpp.
References luxrays::sdl::CIE_Y, luxrays::sdl::CIEstart, luxrays::sdl::nCIE, and sample().
float luxrays::sdl::SPD::delta [protected] |
Definition at line 86 of file spd.h.
Referenced by SPD(), and Whitepoint().
float luxrays::sdl::SPD::invDelta [protected] |
float luxrays::sdl::SPD::lambdaMax [protected] |
float luxrays::sdl::SPD::lambdaMin [protected] |
Definition at line 85 of file spd.h.
Referenced by sample(), SPD(), and Whitepoint().
unsigned int luxrays::sdl::SPD::nSamples [protected] |
Definition at line 84 of file spd.h.
Referenced by Clamp(), Filter(), Normalize(), sample(), Scale(), SPD(), and Whitepoint().
float* luxrays::sdl::SPD::samples [protected] |
Definition at line 87 of file spd.h.
Referenced by Clamp(), Filter(), FreeSamples(), Normalize(), sample(), Scale(), SPD(), and Whitepoint().
1.6.3