#include <color.h>
Public Member Functions | |
Spectrum (float v=0.f) | |
Spectrum (float cs[COLOR_SAMPLES]) | |
Spectrum & | operator+= (const Spectrum &s2) |
Spectrum | operator+ (const Spectrum &s2) const |
Spectrum | operator- (const Spectrum &s2) const |
Spectrum | operator/ (const Spectrum &s2) const |
Spectrum | operator* (const Spectrum &sp) const |
Spectrum & | operator*= (const Spectrum &sp) |
Spectrum | operator* (float a) const |
Spectrum & | operator*= (float a) |
Spectrum | operator/ (float a) const |
Spectrum & | operator/= (float a) |
void | AddWeighted (float w, const Spectrum &s) |
bool | operator== (const Spectrum &sp) const |
bool | operator!= (const Spectrum &sp) const |
bool | Black () const |
Spectrum | Sqrt () const |
Spectrum | Pow (const Spectrum &e) const |
Spectrum | operator- () const |
Spectrum | Clamp (float low=0.f, float high=INFINITY) const |
bool | IsNaN () const |
void | Print (FILE *f) const |
void | XYZ (float xyz[3]) const |
float | y () const |
bool | operator< (const Spectrum &s2) const |
Static Public Attributes | |
static const int | CIEstart = 360 |
static const int | CIEend = 830 |
static const int | nCIE = CIEend-CIEstart+1 |
static const float | CIE_X [nCIE] |
static const float | CIE_Y [nCIE] |
static const float | CIE_Z [nCIE] |
Private Attributes | |
float | c [COLOR_SAMPLES] |
Static Private Attributes | |
static float | XWeight [COLOR_SAMPLES] |
static float | YWeight [COLOR_SAMPLES] |
static float | ZWeight [COLOR_SAMPLES] |
Friends | |
class | ParamSet |
ostream & | operator<< (ostream &, const Spectrum &) |
Spectrum | operator* (float a, const Spectrum &s) |
Spectrum | Exp (const Spectrum &s) |
Spectrum | FromXYZ (float x, float y, float z) |
Definition at line 29 of file color.h.
Spectrum::Spectrum | ( | float | v = 0.f |
) | [inline] |
Spectrum Spectrum::operator* | ( | float | a | ) | const [inline] |
Spectrum& Spectrum::operator*= | ( | float | a | ) | [inline] |
Spectrum& Spectrum::operator/= | ( | float | a | ) | [inline] |
void Spectrum::AddWeighted | ( | float | w, | |
const Spectrum & | s | |||
) | [inline] |
Definition at line 99 of file color.h.
References c, and COLOR_SAMPLES.
Referenced by ImageFilm::AddSample().
bool Spectrum::operator== | ( | const Spectrum & | sp | ) | const [inline] |
bool Spectrum::operator!= | ( | const Spectrum & | sp | ) | const [inline] |
bool Spectrum::Black | ( | ) | const [inline] |
Definition at line 111 of file color.h.
References COLOR_SAMPLES.
Referenced by EstimateDirect(), BidirIntegrator::evalPath(), BidirIntegrator::generatePath(), UberMaterial::GetBSDF(), Translucent::GetBSDF(), Mirror::GetBSDF(), Glass::GetBSDF(), IrradianceCache::IndirectLo(), WhittedIntegrator::Li(), SingleScattering::Li(), PhotonIntegrator::Li(), PathIntegrator::Li(), IrradianceCache::Li(), IGIIntegrator::Li(), ExPhotonIntegrator::Li(), DirectLighting::Li(), PhotonIntegrator::Preprocess(), IGIIntegrator::Preprocess(), ExPhotonIntegrator::Preprocess(), and BSDF::Sample_f().
Spectrum Spectrum::Sqrt | ( | ) | const [inline] |
Definition at line 116 of file color.h.
References c, and COLOR_SAMPLES.
Referenced by FresnelApproxEta(), and FresnelApproxK().
Definition at line 122 of file color.h.
References c, and COLOR_SAMPLES.
Referenced by Lafortune::f().
Spectrum Spectrum::operator- | ( | ) | const [inline] |
Spectrum Spectrum::Clamp | ( | float | low = 0.f , |
|
float | high = INFINITY | |||
) | const [inline] |
Definition at line 140 of file color.h.
References c, Clamp(), and COLOR_SAMPLES.
Referenced by MIPMap< Spectrum >::clamp(), FresnelApproxEta(), and FresnelApproxK().
bool Spectrum::IsNaN | ( | ) | const [inline] |
void Spectrum::Print | ( | FILE * | f | ) | const [inline] |
void Spectrum::XYZ | ( | float | xyz[3] | ) | const [inline] |
float Spectrum::y | ( | ) | const [inline] |
Definition at line 164 of file color.h.
References COLOR_SAMPLES.
Referenced by ImageTexture< T >::convert(), InfiniteAreaLightIS::InfiniteAreaLightIS(), SingleScattering::Li(), IGIIntegrator::Li(), EmissionIntegrator::Li(), operator<(), IGIIntegrator::Preprocess(), ExPhotonIntegrator::Preprocess(), ReadImage(), Scene::Render(), and WeightedSampleOneLight().
bool Spectrum::operator< | ( | const Spectrum & | s2 | ) | const [inline] |
ostream& operator<< | ( | ostream & | os, | |
const Spectrum & | s | |||
) | [friend] |
const int Spectrum::CIEstart = 360 [static] |
const int Spectrum::CIEend = 830 [static] |
const int Spectrum::nCIE = CIEend-CIEstart+1 [static] |
const float Spectrum::CIE_X [static] |
const float Spectrum::CIE_Y [static] |
const float Spectrum::CIE_Z [static] |
float Spectrum::c[COLOR_SAMPLES] [private] |
Definition at line 184 of file color.h.
Referenced by AddWeighted(), Clamp(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator/(), operator<<(), operator==(), Pow(), Sqrt(), and ParamSet::ToString().
float Spectrum::XWeight [static, private] |
float Spectrum::YWeight [static, private] |
float Spectrum::ZWeight [static, private] |