lux::SWCSpectrum Class Reference

#include <spectrum.h>

Collaboration diagram for lux::SWCSpectrum:
[legend]

List of all members.

Public Member Functions

 SWCSpectrum (Scalar v=0.f)
 SWCSpectrum (const TsPack *tspack, const RGBColor &s)
 SWCSpectrum (const TsPack *tspack, const SPD *s)
 SWCSpectrum (const float cs[WAVELENGTH_SAMPLES])
SWCSpectrum operator+ (const SWCSpectrum &s2) const
SWCSpectrumoperator+= (const SWCSpectrum &s2)
SWCSpectrum operator- (const SWCSpectrum &s2) const
SWCSpectrumoperator-= (const SWCSpectrum &s2)
SWCSpectrum operator/ (const SWCSpectrum &s2) const
SWCSpectrumoperator/= (const SWCSpectrum &sp)
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 TsPack *tspack) const
Scalar Y (const TsPack *tspack) const
Scalar Filter (const TsPack *tspack) 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 39 of file spectrum.h.


Constructor & Destructor Documentation

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

Definition at line 43 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

SWCSpectrum::SWCSpectrum ( const TsPack tspack,
const RGBColor s 
)
SWCSpectrum::SWCSpectrum ( const TsPack tspack,
const SPD s 
)
lux::SWCSpectrum::SWCSpectrum ( const float  cs[WAVELENGTH_SAMPLES]  )  [inline]

Definition at line 51 of file spectrum.h.

References c.


Member Function Documentation

void lux::SWCSpectrum::AddWeighted ( Scalar  w,
const SWCSpectrum s 
) [inline]
bool lux::SWCSpectrum::Black (  )  const [inline]
SWCSpectrum lux::SWCSpectrum::Clamp ( Scalar  low = 0.f,
Scalar  high = INFINITY 
) const [inline]
Scalar SWCSpectrum::Filter ( const TsPack tspack  )  const
bool lux::SWCSpectrum::IsNaN (  )  const [inline]

Definition at line 169 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

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

Definition at line 130 of file spectrum.h.

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

Definition at line 100 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

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

Definition at line 89 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

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

Definition at line 106 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

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

Definition at line 95 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

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

Definition at line 56 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

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

Definition at line 62 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

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

Definition at line 150 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

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

Definition at line 67 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

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

Definition at line 73 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

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

Definition at line 115 of file spectrum.h.

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

Definition at line 78 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

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

Definition at line 118 of file spectrum.h.

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

Definition at line 84 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

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

Definition at line 125 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

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

Definition at line 144 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 174 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 193 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

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

Definition at line 138 of file spectrum.h.

References c, and WAVELENGTH_SAMPLES.

XYZColor SWCSpectrum::ToXYZ ( const TsPack tspack  )  const
Scalar SWCSpectrum::Y ( const TsPack tspack  )  const

Friends And Related Function Documentation

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

Definition at line 40 of file spectrum.h.

SWCSpectrum Exp ( const SWCSpectrum s  )  [friend]

Definition at line 156 of file spectrum.h.

friend class lux::ParamSet [friend]

Definition at line 186 of file spectrum.h.

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

Definition at line 112 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 by  doxygen 1.6.2-20100208