RiSpectrum[ Color | Source | Search | Keywords | Summary | Ancestors | All Members | Descendants ]
| public: | |
| RiSpectrum(); | |
| RiSpectrum(RiReal v); | |
| static int | GetNumComponents(); |
| static RiReal | GetMinLambda(); |
| static RiReal | GetMaxLambda(); |
| static RiReal | GetBinWidth(int i); |
| static RiSpectrum | FromRGB(RiReal red, RiReal blue, RiReal green); |
| RiReal& | operator[] (int i); |
| RiReal | operator[] (int i) const; |
| RiReal | GetValue( RiReal wavelength ) const; |
| // wavelength-related access and area functions | |
| int | GetIndexAtWavelength( RiReal lambda ) const; |
| void | GetIndexAtWavelength(RiReal lambda, int& i, RiReal& t) const; |
| RiReal | GetArea() const; |
| RiReal | GetArea(RiReal l1, RiReal l2) const; |
| RiReal | GetMinValue() const; |
| RiReal | GetMaxValue() const; |
| RiReal | GetAvgValue() const; |
| // operators | |
| const RiSpectrum & | operator=( const RiSpectrum & ) ; |
| const RiSpectrum & | operator-=( const RiSpectrum& ) ; |
| const RiSpectrum &operator+= | =( const RiSpectrum& ) ; |
| const RiSpectrum &operator*= | =( const RiSpectrum& ) ; |
| const RiSpectrum &operator/= | =( const RiSpectrum& ) ; |
| const RiSpectrum &operator*= | =( RiReal) ; |
| const RiSpectrum &operator/= | =( RiReal) ; |
| RiSpectrum | operator-() const; |
| RiSpectrum | operator+() const; |
| RiSpectrum | operator+( const RiSpectrum& ) const; |
| RiSpectrum | operator-( const RiSpectrum& ) const; |
| RiSpectrum | operator*( const RiSpectrum& ) const; |
| RiSpectrum | operator/( const RiSpectrum& ) const; |
| RiSpectrum | operator*( RiReal d ) const; |
| RiSpectrum | operator/( RiReal d ) const; |
| bool | operator==( const RiSpectrum& ) const; |
| bool operator!= | =( const RiSpectrum& ) const; |
| protected: |
RiSpectrum();
RiSpectrum(RiReal v);
static int GetNumComponents();
static RiReal GetMinLambda();
static RiReal GetMaxLambda();
static RiReal GetBinWidth(int i);
static RiSpectrum FromRGB(RiReal red, RiReal blue, RiReal green);
RiReal& operator[] (int i);
RiReal operator[] (int i) const;
RiReal GetValue( RiReal wavelength ) const;
int GetIndexAtWavelength( RiReal lambda ) const;
void GetIndexAtWavelength(RiReal lambda, int& i, RiReal& t) const;
RiReal GetArea() const;
RiReal GetArea(RiReal l1, RiReal l2) const;
RiReal GetMinValue() const;
RiReal GetMaxValue() const;
RiReal GetAvgValue() const;
const RiSpectrum &operator=( const RiSpectrum & ) ;
const RiSpectrum &operator-=( const RiSpectrum& ) ;
const RiSpectrum &operator+=( const RiSpectrum& ) ;
const RiSpectrum &operator*=( const RiSpectrum& ) ;
const RiSpectrum &operator/=( const RiSpectrum& ) ;
const RiSpectrum &operator*=( RiReal) ;
const RiSpectrum &operator/=( RiReal) ;
RiSpectrum operator-() const;
RiSpectrum operator+() const;
RiSpectrum operator+( const RiSpectrum& ) const;
RiSpectrum operator-( const RiSpectrum& ) const;
RiSpectrum operator*( const RiSpectrum& ) const;
RiSpectrum operator/( const RiSpectrum& ) const;
RiSpectrum operator*( RiReal d ) const;
RiSpectrum operator/( RiReal d ) const;
bool operator==( const RiSpectrum& ) const;
bool operator!=( const RiSpectrum& ) const;
| public: | ||
|---|---|---|
| static int | GetNumComponents(); | |
| static RiReal | GetMinLambda(); | |
| static RiReal | GetMaxLambda(); | |
| static RiReal | GetBinWidth(int i); | |
| static RiSpectrum | FromRGB(RiReal red, RiReal blue, RiReal green); | |
| RiReal& | operator[] (int i); | |
| RiReal | operator[] (int i) const; | |
| RiReal | GetValue( RiReal wavelength ) const; | |
| // wavelength-related access and area functions | ||
| int | GetIndexAtWavelength( RiReal lambda ) const; | |
| void | GetIndexAtWavelength(RiReal lambda, int& i, RiReal& t) const; | |
| RiReal | GetArea() const; | |
| RiReal | GetArea(RiReal l1, RiReal l2) const; | |
| RiReal | GetMinValue() const; | |
| RiReal | GetMaxValue() const; | |
| RiReal | GetAvgValue() const; | |
| // operators | ||
| const RiSpectrum & | operator=( const RiSpectrum & ) ; | |
| const RiSpectrum & | operator-=( const RiSpectrum& ) ; | |
| const RiSpectrum &operator+= | =( const RiSpectrum& ) ; | |
| const RiSpectrum &operator*= | =( const RiSpectrum& ) ; | |
| const RiSpectrum &operator/= | =( const RiSpectrum& ) ; | |
| const RiSpectrum &operator*= | =( RiReal) ; | |
| const RiSpectrum &operator/= | =( RiReal) ; | |
| RiSpectrum | operator-() const; | |
| RiSpectrum | operator+() const; | |
| RiSpectrum | operator+( const RiSpectrum& ) const; | |
| RiSpectrum | operator-( const RiSpectrum& ) const; | |
| RiSpectrum | operator*( const RiSpectrum& ) const; | |
| RiSpectrum | operator/( const RiSpectrum& ) const; | |
| RiSpectrum | operator*( RiReal d ) const; | |
| RiSpectrum | operator/( RiReal d ) const; | |
| bool | operator==( const RiSpectrum& ) const; | |
| bool operator!= | =( const RiSpectrum& ) const; | |
| protected: | ||