lux::SWCSpectrum Class Reference

#include <spectrum.h>

List of all members.

Public Member Functions

 SWCSpectrum (Scalar v=0.f)
 SWCSpectrum (Spectrum s)
 SWCSpectrum (const SPD *s)
 SWCSpectrum (float cs[WAVELENGTH_SAMPLES])
SWCSpectrumoperator+= (const SWCSpectrum &s2)
SWCSpectrum operator+ (const SWCSpectrum &s2) const
SWCSpectrum operator- (const SWCSpectrum &s2) const
SWCSpectrum operator/ (const SWCSpectrum &s2) const
SWCSpectrum operator* (const SWCSpectrum &sp) const
SWCSpectrumoperator*= (const SWCSpectrum &sp)
SWCSpectrum operator* (Scalar a) const
SWCSpectrumoperator*= (Scalar a)
SWCSpectrum operator/ (Scalar a) const
SWCSpectrumoperator/= (Scalar a)
void AddWeighted (Scalar w, const SWCSpectrum &s)
bool operator== (const SWCSpectrum &sp) const
bool operator!= (const SWCSpectrum &sp) const
bool Black () const
SWCSpectrum Sqrt () const
SWCSpectrum Pow (const SWCSpectrum &e) const
SWCSpectrum operator- () const
SWCSpectrum Clamp (Scalar low=0.f, Scalar high=INFINITY) const
bool IsNaN () const
void Print (FILE *f) const
XYZColor ToXYZ () const
Scalar y () const
Scalar filter () const
bool operator< (const SWCSpectrum &s2) const

Public Attributes

Scalar c [WAVELENGTH_SAMPLES]

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)

Friends

class boost::serialization::access
class lux::ParamSet
ostream & operator<< (ostream &, const SWCSpectrum &)
SWCSpectrum operator* (Scalar a, const SWCSpectrum &s)
SWCSpectrum Exp (const SWCSpectrum &s)


Detailed Description

Definition at line 432 of file spectrum.h.


Constructor & Destructor Documentation

lux::SWCSpectrum::SWCSpectrum ( Scalar  v = 0.f  )  [inline]

Definition at line 436 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

SWCSpectrum::SWCSpectrum ( Spectrum  s  ) 

SWCSpectrum::SWCSpectrum ( const SPD s  ) 

lux::SWCSpectrum::SWCSpectrum ( float  cs[WAVELENGTH_SAMPLES]  )  [inline]

Definition at line 444 of file spectrum.h.

References c.


Member Function Documentation

void lux::SWCSpectrum::AddWeighted ( Scalar  w,
const SWCSpectrum s 
) [inline]

Definition at line 507 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

Referenced by SWCSpectrum().

bool lux::SWCSpectrum::Black (  )  const [inline]

SWCSpectrum lux::SWCSpectrum::Clamp ( Scalar  low = 0.f,
Scalar  high = INFINITY 
) const [inline]

Definition at line 548 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

Referenced by lux::FresnelApproxEta(), and lux::FresnelApproxK().

Scalar SWCSpectrum::filter (  )  const

bool lux::SWCSpectrum::IsNaN (  )  const [inline]

Definition at line 555 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

Referenced by lux::ParticleTracingIntegrator::Li().

bool lux::SWCSpectrum::operator!= ( const SWCSpectrum sp  )  const [inline]

Definition at line 516 of file spectrum.h.

SWCSpectrum lux::SWCSpectrum::operator* ( Scalar  a  )  const [inline]

Definition at line 483 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

SWCSpectrum lux::SWCSpectrum::operator* ( const SWCSpectrum sp  )  const [inline]

Definition at line 472 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

SWCSpectrum& lux::SWCSpectrum::operator*= ( Scalar  a  )  [inline]

Definition at line 489 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

SWCSpectrum& lux::SWCSpectrum::operator*= ( const SWCSpectrum sp  )  [inline]

Definition at line 478 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

SWCSpectrum lux::SWCSpectrum::operator+ ( const SWCSpectrum s2  )  const [inline]

Definition at line 454 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

SWCSpectrum& lux::SWCSpectrum::operator+= ( const SWCSpectrum s2  )  [inline]

Definition at line 449 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

SWCSpectrum lux::SWCSpectrum::operator- (  )  const [inline]

Definition at line 536 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

SWCSpectrum lux::SWCSpectrum::operator- ( const SWCSpectrum s2  )  const [inline]

Definition at line 460 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

SWCSpectrum lux::SWCSpectrum::operator/ ( Scalar  a  )  const [inline]

Definition at line 498 of file spectrum.h.

SWCSpectrum lux::SWCSpectrum::operator/ ( const SWCSpectrum s2  )  const [inline]

Definition at line 466 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

SWCSpectrum& lux::SWCSpectrum::operator/= ( Scalar  a  )  [inline]

Definition at line 501 of file spectrum.h.

References c, Scalar, and WAVELENGTH_SAMPLES.

bool lux::SWCSpectrum::operator< ( const SWCSpectrum s2  )  const [inline]

Definition at line 568 of file spectrum.h.

References y().

bool lux::SWCSpectrum::operator== ( const SWCSpectrum sp  )  const [inline]

Definition at line 511 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

SWCSpectrum lux::SWCSpectrum::Pow ( const SWCSpectrum e  )  const [inline]

Definition at line 530 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

Referenced by lux::Lafortune::f().

void lux::SWCSpectrum::Print ( FILE *  f  )  const [inline]

Definition at line 560 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

template<class Archive >
void lux::SWCSpectrum::serialize ( Archive &  ar,
const unsigned int  version 
) [inline, private]

Definition at line 578 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

SWCSpectrum lux::SWCSpectrum::Sqrt (  )  const [inline]

Definition at line 524 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

Referenced by lux::FresnelApproxEta(), and lux::FresnelApproxK().

XYZColor SWCSpectrum::ToXYZ (  )  const

Scalar SWCSpectrum::y (  )  const


Friends And Related Function Documentation

friend class boost::serialization::access [friend]

Definition at line 433 of file spectrum.h.

SWCSpectrum Exp ( const SWCSpectrum s  )  [friend]

Definition at line 542 of file spectrum.h.

friend class lux::ParamSet [friend]

Definition at line 571 of file spectrum.h.

SWCSpectrum operator* ( Scalar  a,
const SWCSpectrum s 
) [friend]

Definition at line 495 of file spectrum.h.

ostream& operator<< ( ostream &  ,
const SWCSpectrum  
) [friend]


Member Data Documentation

Scalar lux::SWCSpectrum::c[WAVELENGTH_SAMPLES]


The documentation for this class was generated from the following files:

Generated on Fri Jul 24 11:52:04 2009 for lux by  doxygen 1.5.9