Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::ContinuousSpectrum Class Referenceabstract

Abstract continous spectral power distribution data type, which supports evaluation at arbitrary wavelengths. More...

#include <mitsuba/core/spectrum.h>

+ Inheritance diagram for mitsuba::ContinuousSpectrum:

Public Member Functions

virtual Float eval (Float lambda) const =0
 
virtual Float average (Float lambdaMin, Float lambdaMax) const
 Integrate the spectral power distribution over a given interval and return the average value. More...
 
virtual std::string toString () const =0
 Return a string representation. More...
 
virtual ~ContinuousSpectrum ()
 Virtual destructor. More...
 

Detailed Description

Abstract continous spectral power distribution data type, which supports evaluation at arbitrary wavelengths.

Here, the term 'continous' doesn't necessarily mean that the underlying spectrum is continous, but rather emphasizes the fact that it is a function over the reals (as opposed to the discrete spectrum, which only stores samples for a discrete set of wavelengths).

Constructor & Destructor Documentation

virtual mitsuba::ContinuousSpectrum::~ContinuousSpectrum ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

virtual Float mitsuba::ContinuousSpectrum::average ( Float  lambdaMin,
Float  lambdaMax 
) const
virtual

Integrate the spectral power distribution over a given interval and return the average value.

Unless overridden in a subclass, the integration is done using adaptive Gauss-Lobatto quadrature.

Parameters
lambdaMinThe lower interval bound in nanometers
lambdaMaxThe upper interval bound in nanometers
Remarks
If lambdaMin >= lambdaMax, the implementation will return zero.

Reimplemented in mitsuba::InterpolatedSpectrum.

virtual Float mitsuba::ContinuousSpectrum::eval ( Float  lambda) const
pure virtual

Evaluate the value of the spectral power distribution at the given wavelength.

Parameters
lambdaA wavelength in nanometers

Implemented in mitsuba::InterpolatedSpectrum, mitsuba::ProductSpectrum, mitsuba::RayleighSpectrum, and mitsuba::BlackBodySpectrum.

virtual std::string mitsuba::ContinuousSpectrum::toString ( ) const
pure virtual

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