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

vuColourRGBa Class Reference

Implementation for the RGB colour model plus alpha channel. More...

#include <vuColourRGBa.h>

Inheritance diagram for vuColourRGBa:

Inheritance graph
[legend]
Collaboration diagram for vuColourRGBa:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vuColourRGBa ()
 default constructor
 vuColourRGBa (const vuColourRGBa &inst)
 copy constructor
 vuColourRGBa (const vuColour< 4 > &inst)
 same as copy constructor
 vuColourRGBa (const float *f)
 constructor, This will set the ith component of this to be the ith component of f
 vuColourRGBa (const float f)
 constructor, This will set each componet to be f
 vuColourRGBa (const float r, const float g, const float b, const float a)
 constructor, each component will be set y it';s corresponding value
 vuColourRGBa (const float r, const float g, const float b)
 constructor, each component will be set by it's corresponing parameter, alpha will be initialized to 1.0
 vuColourRGBa (const vuColourXYZa &inst)
 constructor, this will initialize this to be the equilavent rgba of the xyza passed in
 vuColourRGBa (const vuColour7a &inst)
 constructor, This will initialise this instance to be the equivalent rgba of the vucolour7a passed in
 vuColourRGBa (const vuColour31a &inst)
 constructor, This will initialise this instance to be the equivalent rgba of the vucolour 31a passed in
void from (const vuColourXYZa &xyza)
 will copy from xyza into this, converting to the proper format
void from (const vuColour7a &c7a)
 will copy from vuColour7a into this, converting to the proper format
void from (const vuColour31a &c31a)
 will copy from vuVolour31a into this, converting to the proper format
void glColor ()
 Issue a glColour4f call with the appropriate parameters.

Static Public Member Functions

floatgetCXF31toRGB ()
floatgetCXF7toRGB ()
 returns the V7 to RGB transformation matrix

Detailed Description

Implementation for the RGB colour model plus alpha channel.

Derived from vuColour general colour template class. With conversion functions from other colour models.

Definition at line 98 of file vuColourRGBa.h.


Constructor & Destructor Documentation

vuColourRGBa::vuColourRGBa  )  [inline]
 

default constructor

Definition at line 102 of file vuColourRGBa.h.

vuColourRGBa::vuColourRGBa const vuColourRGBa inst  )  [inline]
 

copy constructor

Definition at line 104 of file vuColourRGBa.h.

vuColourRGBa::vuColourRGBa const vuColour< 4 > &  inst  )  [inline]
 

same as copy constructor

Definition at line 106 of file vuColourRGBa.h.

vuColourRGBa::vuColourRGBa const float f  )  [inline]
 

constructor, This will set the ith component of this to be the ith component of f

Definition at line 109 of file vuColourRGBa.h.

vuColourRGBa::vuColourRGBa const float  f  )  [inline]
 

constructor, This will set each componet to be f

Definition at line 112 of file vuColourRGBa.h.

vuColourRGBa::vuColourRGBa const float  r,
const float  g,
const float  b,
const float  a
[inline]
 

constructor, each component will be set y it';s corresponding value

Definition at line 115 of file vuColourRGBa.h.

vuColourRGBa::vuColourRGBa const float  r,
const float  g,
const float  b
[inline]
 

constructor, each component will be set by it's corresponing parameter, alpha will be initialized to 1.0

Definition at line 121 of file vuColourRGBa.h.

vuColourRGBa::vuColourRGBa const vuColourXYZa inst  )  [inline]
 

constructor, this will initialize this to be the equilavent rgba of the xyza passed in

Definition at line 128 of file vuColourRGBa.h.

References from().

Here is the call graph for this function:

vuColourRGBa::vuColourRGBa const vuColour7a inst  )  [inline]
 

constructor, This will initialise this instance to be the equivalent rgba of the vucolour7a passed in

Definition at line 131 of file vuColourRGBa.h.

References from().

Here is the call graph for this function:

vuColourRGBa::vuColourRGBa const vuColour31a inst  )  [inline]
 

constructor, This will initialise this instance to be the equivalent rgba of the vucolour 31a passed in

Definition at line 134 of file vuColourRGBa.h.

References from().

Here is the call graph for this function:


Member Function Documentation

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

will copy from vuVolour31a into this, converting to the proper format

Definition at line 149 of file vuColourRGBa.h.

References CXF31toRGB, and vuColour< 4 >::fromColourN().

Here is the call graph for this function:

void vuColourRGBa::from const vuColour7a c7a  )  [inline]
 

will copy from vuColour7a into this, converting to the proper format

Definition at line 143 of file vuColourRGBa.h.

References CXF7toRGB, and vuColour< 4 >::fromColourN().

Here is the call graph for this function:

void vuColourRGBa::from const vuColourXYZa xyza  )  [inline]
 

will copy from xyza into this, converting to the proper format

Definition at line 137 of file vuColourRGBa.h.

References CXFXYZtoRGB, and vuColour< 4 >::fromColourN().

Referenced by vuSpectralImage::get_rgb(), ns_vu1112112::SpectralImage::get_rgb(), vuTFIntensity::getRGBa(), ns_vu1112112::vu1112112::shootRays(), and vuColourRGBa().

Here is the call graph for this function:

float* vuColourRGBa::getCXF31toRGB  )  [inline, static]
 

Definition at line 154 of file vuColourRGBa.h.

float* vuColourRGBa::getCXF7toRGB  )  [inline, static]
 

returns the V7 to RGB transformation matrix

Definition at line 157 of file vuColourRGBa.h.

void vuColourRGBa::glColor  )  [inline]
 

Issue a glColour4f call with the appropriate parameters.

The colour components will not be clamped!

Definition at line 161 of file vuColourRGBa.h.

References glColor4f().

Referenced by ns_vu1112112::vu1112112::shootRays(), and vu1112113::shootRays().

Here is the call graph for this function:


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