luxrays::Spectrum Class Reference

#include <spectrum.h>

List of all members.

Public Member Functions

 Spectrum (const float _r=0.f, const float _g=0.f, const float _b=0.f)
Spectrum operator+ (const Spectrum &v) const
Spectrum operator* (const Spectrum &v) const
Spectrumoperator*= (const Spectrum &v)
Spectrumoperator+= (const Spectrum &v)
Spectrum operator- (const Spectrum &v) const
Spectrumoperator-= (const Spectrum &v)
bool operator== (const Spectrum &v) const
Spectrum operator* (float f) const
Spectrumoperator*= (float f)
Spectrum operator/ (float f) const
Spectrumoperator/= (float f)
Spectrum operator- () const
float operator[] (int i) const
float & operator[] (int i)
float Filter () const
bool Black () const
bool IsNaN () const
float Y () const
void Clamp ()
 Spectrum (float _r=0.f, float _g=0.f, float _b=0.f)
Spectrum operator+ (const Spectrum &v) const
Spectrum operator* (const Spectrum &v) const
Spectrumoperator*= (const Spectrum &v)
Spectrumoperator+= (const Spectrum &v)
Spectrum operator- (const Spectrum &v) const
Spectrumoperator-= (const Spectrum &v)
bool operator== (const Spectrum &v) const
Spectrum operator* (float f) const
Spectrumoperator*= (float f)
Spectrum operator/ (float f) const
Spectrumoperator/= (float f)
Spectrum operator- () const
float operator[] (int i) const
float & operator[] (int i)
float Filter () const
bool Black () const
bool IsNaN () const

Public Attributes

float r
float g
float b

Detailed Description

Definition at line 32 of file core/pixel/spectrum.h.


Constructor & Destructor Documentation

luxrays::Spectrum::Spectrum ( const float  _r = 0.f,
const float  _g = 0.f,
const float  _b = 0.f 
) [inline]

Definition at line 35 of file core/pixel/spectrum.h.

Referenced by operator*(), operator+(), operator-(), and operator/().

luxrays::Spectrum::Spectrum ( float  _r = 0.f,
float  _g = 0.f,
float  _b = 0.f 
) [inline]

Definition at line 33 of file utils/core/spectrum.h.


Member Function Documentation

bool luxrays::Spectrum::Black (  )  const [inline]

Definition at line 114 of file utils/core/spectrum.h.

References b, g, and r.

bool luxrays::Spectrum::Black (  )  const [inline]

Definition at line 116 of file core/pixel/spectrum.h.

References b, g, and r.

void luxrays::Spectrum::Clamp (  )  [inline]

Definition at line 128 of file core/pixel/spectrum.h.

References b, g, and r.

float luxrays::Spectrum::Filter (  )  const [inline]

Definition at line 110 of file utils/core/spectrum.h.

References b, g, and r.

float luxrays::Spectrum::Filter (  )  const [inline]
bool luxrays::Spectrum::IsNaN (  )  const [inline]

Definition at line 118 of file utils/core/spectrum.h.

References b, g, and r.

bool luxrays::Spectrum::IsNaN (  )  const [inline]

Definition at line 120 of file core/pixel/spectrum.h.

References b, g, and r.

Referenced by luxrays::SampleBuffer::SplatSample().

Spectrum luxrays::Spectrum::operator* ( float  f  )  const [inline]

Definition at line 74 of file utils/core/spectrum.h.

References b, g, r, and Spectrum().

Spectrum luxrays::Spectrum::operator* ( const Spectrum v  )  const [inline]

Definition at line 41 of file utils/core/spectrum.h.

References b, g, r, and Spectrum().

Spectrum luxrays::Spectrum::operator* ( float  f  )  const [inline]

Definition at line 76 of file core/pixel/spectrum.h.

References b, g, r, and Spectrum().

Spectrum luxrays::Spectrum::operator* ( const Spectrum v  )  const [inline]

Definition at line 43 of file core/pixel/spectrum.h.

References b, g, r, and Spectrum().

Spectrum& luxrays::Spectrum::operator*= ( float  f  )  [inline]

Definition at line 78 of file utils/core/spectrum.h.

References b, g, and r.

Spectrum& luxrays::Spectrum::operator*= ( const Spectrum v  )  [inline]

Definition at line 45 of file utils/core/spectrum.h.

References b, g, and r.

Spectrum& luxrays::Spectrum::operator*= ( float  f  )  [inline]

Definition at line 80 of file core/pixel/spectrum.h.

References b, g, and r.

Spectrum& luxrays::Spectrum::operator*= ( const Spectrum v  )  [inline]

Definition at line 47 of file core/pixel/spectrum.h.

References b, g, and r.

Spectrum luxrays::Spectrum::operator+ ( const Spectrum v  )  const [inline]

Definition at line 37 of file utils/core/spectrum.h.

References b, g, r, and Spectrum().

Spectrum luxrays::Spectrum::operator+ ( const Spectrum v  )  const [inline]

Definition at line 39 of file core/pixel/spectrum.h.

References b, g, r, and Spectrum().

Spectrum& luxrays::Spectrum::operator+= ( const Spectrum v  )  [inline]

Definition at line 52 of file utils/core/spectrum.h.

References b, g, and r.

Spectrum& luxrays::Spectrum::operator+= ( const Spectrum v  )  [inline]

Definition at line 54 of file core/pixel/spectrum.h.

References b, g, and r.

Spectrum luxrays::Spectrum::operator- (  )  const [inline]

Definition at line 98 of file utils/core/spectrum.h.

References b, g, r, and Spectrum().

Spectrum luxrays::Spectrum::operator- ( const Spectrum v  )  const [inline]

Definition at line 59 of file utils/core/spectrum.h.

References b, g, r, and Spectrum().

Spectrum luxrays::Spectrum::operator- (  )  const [inline]

Definition at line 100 of file core/pixel/spectrum.h.

References b, g, r, and Spectrum().

Spectrum luxrays::Spectrum::operator- ( const Spectrum v  )  const [inline]

Definition at line 61 of file core/pixel/spectrum.h.

References b, g, r, and Spectrum().

Spectrum& luxrays::Spectrum::operator-= ( const Spectrum v  )  [inline]

Definition at line 63 of file utils/core/spectrum.h.

References b, g, and r.

Spectrum& luxrays::Spectrum::operator-= ( const Spectrum v  )  [inline]

Definition at line 65 of file core/pixel/spectrum.h.

References b, g, and r.

Spectrum luxrays::Spectrum::operator/ ( float  f  )  const [inline]

Definition at line 85 of file utils/core/spectrum.h.

References b, g, r, and Spectrum().

Spectrum luxrays::Spectrum::operator/ ( float  f  )  const [inline]

Definition at line 87 of file core/pixel/spectrum.h.

References b, g, r, and Spectrum().

Spectrum& luxrays::Spectrum::operator/= ( float  f  )  [inline]

Definition at line 90 of file utils/core/spectrum.h.

References b, g, and r.

Spectrum& luxrays::Spectrum::operator/= ( float  f  )  [inline]

Definition at line 92 of file core/pixel/spectrum.h.

References b, g, and r.

bool luxrays::Spectrum::operator== ( const Spectrum v  )  const [inline]

Definition at line 70 of file utils/core/spectrum.h.

References b, g, and r.

bool luxrays::Spectrum::operator== ( const Spectrum v  )  const [inline]

Definition at line 72 of file core/pixel/spectrum.h.

References b, g, and r.

float& luxrays::Spectrum::operator[] ( int  i  )  [inline]

Definition at line 106 of file utils/core/spectrum.h.

References r.

float luxrays::Spectrum::operator[] ( int  i  )  const [inline]

Definition at line 102 of file utils/core/spectrum.h.

References r.

float& luxrays::Spectrum::operator[] ( int  i  )  [inline]

Definition at line 108 of file core/pixel/spectrum.h.

References r.

float luxrays::Spectrum::operator[] ( int  i  )  const [inline]

Definition at line 104 of file core/pixel/spectrum.h.

References r.

float luxrays::Spectrum::Y (  )  const [inline]

Definition at line 124 of file core/pixel/spectrum.h.

References b, g, and r.


Member Data Documentation


The documentation for this class was generated from the following files:
Generated on Sat Aug 21 14:06:20 2010 for LuxRays by  doxygen 1.6.3