RiCombinedSpectralCurve

Create a RiSpectralCurve that is the linear combination of some other set of RiSpectralCurve.

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

Quick Index

DESCRIPTION
WARNINGS

Class Summary

class RiCombinedSpectralCurve : public RiSpectralCurve
{
public:
// Constructors and assignment
RiCombinedSpectralCurve();
RiCombinedSpectralCurve(const RiSpectralCurve *c0, RiReal w0, const RiSpectralCurve *c1, RiReal w1);
RiCombinedSpectralCurve(const RiSpectralCurve *c0, RiReal w0, const RiSpectralCurve *c1, RiReal w1, const RiSpectralCurve *c2, RiReal w2);
RiCombinedSpectralCurve(const RiSpectralCurve *c0, RiReal w0, const RiSpectralCurve *c1, RiReal w1, const RiSpectralCurve *c2, RiReal w2, const RiSpectralCurve *c3, RiReal w3);
RiCombinedSpectralCurve(const RiCombinedSpectralCurve &);
RiCombinedSpectralCurve &operator=(const RiCombinedSpectralCurve &);
// Members
RiReal GetValue(RiReal lambda) const;
protected:
}; // RiCombinedSpectralCurve


DESCRIPTION

Takes 2,3, or 4 RiSpectralCurve and weights, and returns the weighted sum of the curves at each lambda.


WARNINGS

The user is responsible for deleting the RiSpectralCurves when done with the RiCombinedSpectralCurve. The user must not delete them before then.

RiCombinedSpectralCurve();

Default Constructor

    RiCombinedSpectralCurve();

RiCombinedSpectralCurve(const RiSpectralCurve *c0, RiReal w0, const RiSpectralCurve *c1, RiReal w1);

Linearly combine 2 curves

    RiCombinedSpectralCurve(const RiSpectralCurve *c0, RiReal w0, const RiSpectralCurve *c1, RiReal w1);

RiCombinedSpectralCurve(const RiSpectralCurve *c0, RiReal w0, const RiSpectralCurve *c1, RiReal w1, const RiSpectralCurve *c2, RiReal w2);

Linearly combine 3 curves

    RiCombinedSpectralCurve(const RiSpectralCurve *c0, RiReal w0, const RiSpectralCurve *c1, RiReal w1,
			    const RiSpectralCurve *c2, RiReal w2);

RiCombinedSpectralCurve(const RiSpectralCurve *c0, RiReal w0, const RiSpectralCurve *c1, RiReal w1, const RiSpectralCurve *c2, RiReal w2, const RiSpectralCurve *c3, RiReal w3);

Linearly combine 4 curves

    RiCombinedSpectralCurve(const RiSpectralCurve *c0, RiReal w0, const RiSpectralCurve *c1, RiReal w1,
			    const RiSpectralCurve *c2, RiReal w2, const RiSpectralCurve *c3, RiReal w3);

RiCombinedSpectralCurve(const RiCombinedSpectralCurve &);

Copy Constructor

    RiCombinedSpectralCurve(const RiCombinedSpectralCurve &);

RiCombinedSpectralCurve &operator=(const RiCombinedSpectralCurve &);

Assignment

    RiCombinedSpectralCurve &operator=(const RiCombinedSpectralCurve &);

RiReal GetValue(RiReal lambda) const;

Return the weighted sum of the curves

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

Ancestors

Inheritance chain for RiCombinedSpectralCurve:


Descendants

Class is not inherited by any others.


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