SampledSpectrum Class Reference

#include <spectrum.h>

Inheritance diagram for SampledSpectrum:
CoefficientSpectrum< nSpectralSamples >

List of all members.

Public Member Functions

 SampledSpectrum (float v=0.f)
 SampledSpectrum (const CoefficientSpectrum< nSpectralSamples > &v)
void ToXYZ (float xyz[3]) const
float y () const
void ToRGB (float rgb[3]) const
RGBSpectrum ToRGBSpectrum () const
 SampledSpectrum (const RGBSpectrum &r, SpectrumType type=SPECTRUM_REFLECTANCE)

Static Public Member Functions

static SampledSpectrum FromSampled (const float *lambda, const float *v, int n)
static void Init ()
static SampledSpectrum FromRGB (const float rgb[3], SpectrumType type=SPECTRUM_REFLECTANCE)
static SampledSpectrum FromXYZ (const float xyz[3], SpectrumType type=SPECTRUM_REFLECTANCE)

Static Private Attributes

static SampledSpectrum X
static SampledSpectrum Y
static SampledSpectrum Z
static float yint
static SampledSpectrum rgbRefl2SpectWhite
static SampledSpectrum rgbRefl2SpectCyan
static SampledSpectrum rgbRefl2SpectMagenta
static SampledSpectrum rgbRefl2SpectYellow
static SampledSpectrum rgbRefl2SpectRed
static SampledSpectrum rgbRefl2SpectGreen
static SampledSpectrum rgbRefl2SpectBlue
static SampledSpectrum rgbIllum2SpectWhite
static SampledSpectrum rgbIllum2SpectCyan
static SampledSpectrum rgbIllum2SpectMagenta
static SampledSpectrum rgbIllum2SpectYellow
static SampledSpectrum rgbIllum2SpectRed
static SampledSpectrum rgbIllum2SpectGreen
static SampledSpectrum rgbIllum2SpectBlue

Detailed Description

Definition at line 250 of file spectrum.h.


Constructor & Destructor Documentation

SampledSpectrum::SampledSpectrum ( float  v = 0.f  )  [inline]

Definition at line 253 of file spectrum.h.

References CoefficientSpectrum< nSpectralSamples >::c, and nSpectralSamples.

SampledSpectrum::SampledSpectrum ( const CoefficientSpectrum< nSpectralSamples > &  v  )  [inline]

Definition at line 256 of file spectrum.h.

SampledSpectrum::SampledSpectrum ( const RGBSpectrum r,
SpectrumType  type = SPECTRUM_REFLECTANCE 
)

Definition at line 180 of file spectrum.cpp.

References FromRGB(), and RGBSpectrum::ToRGB().


Member Function Documentation

SampledSpectrum SampledSpectrum::FromRGB ( const float  rgb[3],
SpectrumType  type = SPECTRUM_REFLECTANCE 
) [static]
static SampledSpectrum SampledSpectrum::FromSampled ( const float *  lambda,
const float *  v,
int  n 
) [inline, static]
static SampledSpectrum SampledSpectrum::FromXYZ ( const float  xyz[3],
SpectrumType  type = SPECTRUM_REFLECTANCE 
) [inline, static]

Definition at line 356 of file spectrum.h.

References FromRGB(), and XYZToRGB().

static void SampledSpectrum::Init (  )  [inline, static]
void SampledSpectrum::ToRGB ( float  rgb[3]  )  const [inline]

Definition at line 348 of file spectrum.h.

References ToXYZ(), and XYZToRGB().

Referenced by ToRGBSpectrum().

RGBSpectrum SampledSpectrum::ToRGBSpectrum (  )  const

Definition at line 86 of file spectrum.cpp.

References FromRGB(), and ToRGB().

void SampledSpectrum::ToXYZ ( float  xyz[3]  )  const [inline]
float SampledSpectrum::y (  )  const [inline]

Member Data Documentation

Definition at line 374 of file spectrum.h.

Referenced by FromRGB(), and Init().

Definition at line 371 of file spectrum.h.

Referenced by FromRGB(), and Init().

Definition at line 373 of file spectrum.h.

Referenced by FromRGB(), and Init().

Definition at line 372 of file spectrum.h.

Referenced by FromRGB(), and Init().

Definition at line 373 of file spectrum.h.

Referenced by FromRGB(), and Init().

Definition at line 371 of file spectrum.h.

Referenced by FromRGB(), and Init().

Definition at line 372 of file spectrum.h.

Referenced by FromRGB(), and Init().

Definition at line 370 of file spectrum.h.

Referenced by FromRGB(), and Init().

Definition at line 367 of file spectrum.h.

Referenced by FromRGB(), and Init().

Definition at line 369 of file spectrum.h.

Referenced by FromRGB(), and Init().

Definition at line 368 of file spectrum.h.

Referenced by FromRGB(), and Init().

Definition at line 369 of file spectrum.h.

Referenced by FromRGB(), and Init().

Definition at line 367 of file spectrum.h.

Referenced by FromRGB(), and Init().

Definition at line 368 of file spectrum.h.

Referenced by FromRGB(), and Init().

Definition at line 365 of file spectrum.h.

Referenced by Init(), and ToXYZ().

Definition at line 365 of file spectrum.h.

Referenced by Init(), ToXYZ(), and y().

float SampledSpectrum::yint [static, private]

Definition at line 366 of file spectrum.h.

Referenced by Init(), ToXYZ(), and y().

Definition at line 365 of file spectrum.h.

Referenced by Init(), and ToXYZ().


The documentation for this class was generated from the following files:
Generated on Sat Aug 28 20:00:15 2010 for pbrt by  doxygen 1.6.3