RiRegularSpectralCurve

A spectral curve from regularly spaced samples

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

Quick Index

DESCRIPTION
WARNINGS

Class Summary

class RiRegularSpectralCurve : public RiSpectralCurve
{
public:
// Constructors and assignment
RiRegularSpectralCurve(const RiReal *data, RiReal minLambda, RiReal maxLambda, int numSamples);
~RiRegularSpectralCurve();
// Members
RiReal GetValue(RiReal lambda) const;
protected:
}; // RiRegularSpectralCurve


DESCRIPTION

This class takes a set of numSamples regularly spaced samples from a minLambda to a maxLambda represented as an array of RiReals.


WARNINGS

The user is responsible for deleting the array passed in. RiRegularSpectralCurve makes it's own internal copy.

RiRegularSpectralCurve(const RiReal *data, RiReal minLambda, RiReal maxLambda, int numSamples);

Constructor [in] data Array of values
in minLambda
starting lambda for the data
in maxLambda
ending lambda for the data
in numSamples
total number of samples

    RiRegularSpectralCurve(const RiReal *data, RiReal minLambda, RiReal maxLambda,
			    int numSamples);

~RiRegularSpectralCurve();

Destructor deletes the internal data array

    ~RiRegularSpectralCurve();

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 ;
protected:
RiSpectrum Integrate(RiReal stepSize) const;

Ancestors

Inheritance chain for RiRegularSpectralCurve:


Descendants

Class is not inherited by any others.


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