RiIrregularSpectralCurve

A RiSpectralCurve represented by irregular data points

[ Color | Source | Search | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION
WARNINGS

Class Summary

class RiIrregularSpectralCurve : public RiSpectralCurve
{
public:
// Constructors and assignment
RiIrregularSpectralCurve(const RiReal *data, const RiReal *lambda, int numSamples);
RiIrregularSpectralCurve(int numSamples);
~RiIrregularSpectralCurve();
void SetSample(int sample, RiReal value, RiReal lambda);
// Members
RiReal GetValue(RiReal lambda) const;
protected:
}; // RiIrregularSpectralCurve


DESCRIPTION

A RiSpectralCurve represented by irregular data points. The user passes in two arrays, one representing the values of the spectral curve, the other representing the wavelengths corresponding to those values.


WARNINGS

The user is responsible for deleting the array passed in. RiRegularSpectralCurve makes it's own internal copy. The wavelength samples (lambda) must be strictly increasing.

RiIrregularSpectralCurve(const RiReal *data, const RiReal *lambda, int numSamples);

Default Constructor

    RiIrregularSpectralCurve(const RiReal *data, const RiReal *lambda, int numSamples);

RiIrregularSpectralCurve(int numSamples);

Constructor for incremental creation

    RiIrregularSpectralCurve(int numSamples);

~RiIrregularSpectralCurve();

Destructor

    ~RiIrregularSpectralCurve();

void SetSample(int sample, RiReal value, RiReal lambda);

Build the data incrementally (useful for reading)

    void SetSample(int sample, RiReal value, RiReal lambda);

RiReal GetValue(RiReal lambda) const;

returns the linearly interpolated value of the function at lambda

    virtual RiReal GetValue(RiReal lambda) const;

All Members

public:
operator RiSpectrum() const;
RiReal GetValue(RiReal lambda) const; // pure virtual
RiReal operator()(RiReal lambda) const ;
// Constructors and assignment
void SetSample(int sample, RiReal value, RiReal lambda);
protected:
RiSpectrum Integrate(RiReal stepSize) const;

Ancestors

Inheritance chain for RiIrregularSpectralCurve:


Descendants

Class is not inherited by any others.


Generated from source by the Cocoon utilities on Fri Feb 25 15:15:01 2000 .