Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vuColour31a Class Reference

Implementation for the 'full; spectral colour model. More...

#include <vuColour31a.h>

Inheritance diagram for vuColour31a:

Inheritance graph
[legend]
Collaboration diagram for vuColour31a:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vuColour31a ()
 default constructor
 vuColour31a (const vuColour31a &inst)
 copy constructor
 vuColour31a (const vuColour< 32 > &inst)
 copy constructor
 vuColour31a (const float *f)
 cunstruct from an array of floats.
 vuColour31a (const double *f)
 cunstruct from an array of doubles.
 vuColour31a (const float f)
 Sets all components (including the alpha value) to f.
 vuColour31a (const vuColourRGBa &rgba)
 construct a spectrum from RGBa colour.
void from (const vuColourRGBa &rgba)
 sets up a spectrum from an vuColourRGBa.
vuColour31aplanckian (const float T)
 generates the spectrum for a planckian black body radiator of temerature T (Kelvin)

Detailed Description

Implementation for the 'full; spectral colour model.

It has 31 components plus alpha channel. Derived from vuColour. With conversion functions from other colour models.

Definition at line 30 of file vuColour31a.h.


Constructor & Destructor Documentation

vuColour31a::vuColour31a  )  [inline]
 

default constructor

Definition at line 34 of file vuColour31a.h.

vuColour31a::vuColour31a const vuColour31a inst  )  [inline]
 

copy constructor

Definition at line 36 of file vuColour31a.h.

vuColour31a::vuColour31a const vuColour< 32 > &  inst  )  [inline]
 

copy constructor

Definition at line 38 of file vuColour31a.h.

vuColour31a::vuColour31a const float f  )  [inline]
 

cunstruct from an array of floats.

The alpha value is taken from the N+1st position.

Definition at line 41 of file vuColour31a.h.

vuColour31a::vuColour31a const double *  f  )  [inline]
 

cunstruct from an array of doubles.

The alpha value is taken from the N+1st position.

Definition at line 44 of file vuColour31a.h.

vuColour31a::vuColour31a const float  f  )  [inline]
 

Sets all components (including the alpha value) to f.

Definition at line 46 of file vuColour31a.h.

vuColour31a::vuColour31a const vuColourRGBa rgba  )  [inline]
 

construct a spectrum from RGBa colour.

Calls from()

Definition at line 49 of file vuColour31a.h.

References from().

Here is the call graph for this function:


Member Function Documentation

void vuColour31a::from const vuColourRGBa rgba  )  [inline]
 

sets up a spectrum from an vuColourRGBa.

This is done using the pseudoinverse of the 31a -> RGBa transform. The resulting spectrum is one of many possible spectra.

Definition at line 55 of file vuColour31a.h.

References CXFRGBto31, and vuColour< 32 >::fromColourN().

Referenced by vuColour31a().

Here is the call graph for this function:

vuColour31a& vuColour31a::planckian const float  T  )  [inline]
 

generates the spectrum for a planckian black body radiator of temerature T (Kelvin)

Definition at line 61 of file vuColour31a.h.

References T.

Referenced by vuSpecPalette::OnCreatePlanckian().


The documentation for this class was generated from the following file:
Generated on Wed Dec 15 21:21:13 2004 for vuVolume by  doxygen 1.3.9.1