#include <spectrum.h>
Public Member Functions | |
RGBSpectrum (float v=0.f) | |
RGBSpectrum (const CoefficientSpectrum< 3 > &v) | |
RGBSpectrum (const RGBSpectrum &s, SpectrumType type=SPECTRUM_REFLECTANCE) | |
void | ToRGB (float *rgb) const |
const RGBSpectrum & | ToRGBSpectrum () const |
void | ToXYZ (float xyz[3]) const |
float | y () const |
Static Public Member Functions | |
static RGBSpectrum | FromRGB (const float rgb[3], SpectrumType type=SPECTRUM_REFLECTANCE) |
static RGBSpectrum | FromXYZ (const float xyz[3], SpectrumType type=SPECTRUM_REFLECTANCE) |
static RGBSpectrum | FromSampled (const float *lambda, const float *v, int n) |
Definition at line 378 of file spectrum.h.
RGBSpectrum::RGBSpectrum | ( | float | v = 0.f |
) | [inline] |
Definition at line 382 of file spectrum.h.
RGBSpectrum::RGBSpectrum | ( | const CoefficientSpectrum< 3 > & | v | ) | [inline] |
Definition at line 383 of file spectrum.h.
RGBSpectrum::RGBSpectrum | ( | const RGBSpectrum & | s, | |
SpectrumType | type = SPECTRUM_REFLECTANCE | |||
) | [inline] |
Definition at line 385 of file spectrum.h.
static RGBSpectrum RGBSpectrum::FromRGB | ( | const float | rgb[3], | |
SpectrumType | type = SPECTRUM_REFLECTANCE | |||
) | [inline, static] |
Definition at line 388 of file spectrum.h.
References Assert, CoefficientSpectrum< nSamples >::c, and CoefficientSpectrum< nSamples >::HasNaNs().
Referenced by ParamSet::AddRGBSpectrum(), ImageTexture< Tmemory, Treturn >::convertOut(), CreateKdSubsurfaceMaterial(), CreateSubsurfaceMaterial(), UVTexture::Evaluate(), MarbleTexture::Evaluate(), RegularHalfangleBRDF::f(), GetVolumeScatteringProperties(), ReadImagePFM(), ReadImageTGA(), and SubsurfaceFromDiffuse().
static RGBSpectrum RGBSpectrum::FromSampled | ( | const float * | lambda, | |
const float * | v, | |||
int | n | |||
) | [inline, static] |
Definition at line 418 of file spectrum.h.
References CIE_lambda, CIE_X, CIE_Y, CIE_Z, FromXYZ(), InterpolateSpectrumSamples(), nCIESamples, SortSpectrumSamples(), and SpectrumSamplesSorted().
Referenced by ParamSet::AddBlackbodySpectrum(), ParamSet::AddSampledSpectrum(), ParamSet::AddSampledSpectrumFiles(), CreateMetalMaterial(), and MeasuredMaterial::MeasuredMaterial().
static RGBSpectrum RGBSpectrum::FromXYZ | ( | const float | xyz[3], | |
SpectrumType | type = SPECTRUM_REFLECTANCE | |||
) | [inline, static] |
Definition at line 408 of file spectrum.h.
References CoefficientSpectrum< nSamples >::c, and XYZToRGB().
Referenced by ParamSet::AddXYZSpectrum(), and FromSampled().
void RGBSpectrum::ToRGB | ( | float * | rgb | ) | const [inline] |
Definition at line 397 of file spectrum.h.
References CoefficientSpectrum< 3 >::c.
Referenced by ImageTexture< Tmemory, Treturn >::convertOut(), SampledSpectrum::SampledSpectrum(), SHWriteImage(), and SubsurfaceFromDiffuse().
const RGBSpectrum& RGBSpectrum::ToRGBSpectrum | ( | ) | const [inline] |
Definition at line 402 of file spectrum.h.
Referenced by InfiniteAreaLight::InfiniteAreaLight().
void RGBSpectrum::ToXYZ | ( | float | xyz[3] | ) | const [inline] |
Definition at line 405 of file spectrum.h.
References CoefficientSpectrum< 3 >::c, and RGBToXYZ().
Referenced by ImageFilm::AddSample(), and ImageFilm::Splat().
float RGBSpectrum::y | ( | ) | const [inline] |
Definition at line 414 of file spectrum.h.
References CoefficientSpectrum< 3 >::c.
Referenced by ImageTexture< Tmemory, Treturn >::convertIn(), GeneratePath(), I(), IrradianceCacheIntegrator::indirectLo(), InfiniteAreaLight::InfiniteAreaLight(), SubsurfaceOctreeNode::InitHierarchy(), SingleScatteringIntegrator::Li(), PathIntegrator::Li(), IGIIntegrator::Li(), EmissionIntegrator::Li(), IrradianceCacheIntegrator::pathL(), IGIIntegrator::Preprocess(), and PhotonShootingTask::Run().