#include <vuColour.h>
Inheritance diagram for vuColourN:

Public Member Functions | |
| vuColourN (void) | |
| default constructor | |
| virtual | ~vuColourN (void) |
| destructor | |
| virtual float & | operator[] (unsigned int index) |
| provides direct random access to the components | |
| virtual float | operator[] (unsigned int index) const |
| provides direct reading access to the components | |
| virtual float * | getData () |
| returns a pointer to the float array containing the data | |
| virtual float const * | getData () const |
| returns a pointer to the float array containing the data | |
| virtual word | nComponents () const |
| returns the number of components. | |
| virtual void | print () const |
| prints the components of the colour | |
It allows basic access to the data independent from the underlying colour model. The user has to be careful not to read beyond the last element given be nComponents(). All vuColour<S> templates are derived from this base class and all colour models are derived from a specific vuColour<S>. For instance vuColourRGBa is derived from vuColour<4>. It is not possible to access binary operators from this base class. These operations have to be performed in the specific model.
Definition at line 30 of file vuColour.h.
|
|
default constructor
Definition at line 34 of file vuColour.h. |
|
|
destructor
Definition at line 37 of file vuColour.h. |
|
|
returns a pointer to the float array containing the data
Reimplemented in vuColour< S >, vuColour< 32 >, vuColour< 10 >, vuColour< 4 >, and vuColour< 8 >. Definition at line 49 of file vuColour.h. |
|
|
returns a pointer to the float array containing the data
Reimplemented in vuColour< S >, vuColour< 32 >, vuColour< 10 >, vuColour< 4 >, and vuColour< 8 >. Definition at line 46 of file vuColour.h. Referenced by SMatrix::SMatrix(). |
|
|
returns the number of components. This depends on the number given during creation of the template. Reimplemented in vuColour< S >, vuColour< 32 >, vuColour< 10 >, vuColour< 4 >, and vuColour< 8 >. Definition at line 53 of file vuColour.h. References word. Referenced by vuTFDesign::ColourNode::ColourNode(), vuTFPreintegrated::integrate(), vuTFDesignSpec::LightNode::LightNode(), and SMatrix::SMatrix(). |
|
|
provides direct reading access to the components
Reimplemented in vuColour< S >, vuColour< 32 >, vuColour< 10 >, vuColour< 4 >, and vuColour< 8 >. Definition at line 43 of file vuColour.h. |
|
|
provides direct random access to the components
Reimplemented in vuColour< S >, vuColour< 32 >, vuColour< 10 >, vuColour< 4 >, and vuColour< 8 >. Definition at line 40 of file vuColour.h. |
|
|
prints the components of the colour
Reimplemented in vuColour< S >, vuColour< 32 >, vuColour< 10 >, vuColour< 4 >, and vuColour< 8 >. Definition at line 56 of file vuColour.h. |
1.3.9.1