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

vuColourXYZa Class Reference

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

#include <vuColourXYZa.h>

Inheritance diagram for vuColourXYZa:

Inheritance graph
[legend]
Collaboration diagram for vuColourXYZa:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vuColourXYZa ()
 default constructor
 vuColourXYZa (const vuColourXYZa &inst)
 copy constructor
 vuColourXYZa (const vuColour< 4 > &inst)
 copy constructor
 vuColourXYZa (const float *f)
 copy the contents of the array f to the components
 vuColourXYZa (const float f)
 set all components to value of f
 vuColourXYZa (const float x, const float y, const float z, const float a)
 construct by the given components
 vuColourXYZa (const vuColourRGBa &inst)
 create an XYZa representation of the given colour
 vuColourXYZa (const vuColour7a &inst)
 create an XYZa representation of the given colour
 vuColourXYZa (const vuColour31a &inst)
 create an XYZa representation of the given colour
void from (const vuColourRGBa &rgba)
 create an XYZa representation of the given colour
void from (const vuColour7a &c7a)
 create an XYZa representation of the given colour
void from (const vuColour31a &c31a)
 create an XYZa representation of the given colour
float setNormalSpectrum (const vuColour31a &s)
 calculates a normalization coefficient This is done according to the luminance (Y-component) of the spectrum of the given light source.
float setNormalSpectrum (const vuColour7a &s)
 calculates a normalization coefficient This is done according to the luminance (Y-component) of the spectrum of the given light source.
void normalize (void)
 Divides by the normalization coefficient.

Protected Attributes

float m_Normal
 this is the normal of the colour

Detailed Description

Implementation for the XYZ colour model plus alpha channel.

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

Definition at line 64 of file vuColourXYZa.h.


Constructor & Destructor Documentation

vuColourXYZa::vuColourXYZa  )  [inline]
 

default constructor

Definition at line 68 of file vuColourXYZa.h.

References D65_NORMAL, and m_Normal.

vuColourXYZa::vuColourXYZa const vuColourXYZa inst  )  [inline]
 

copy constructor

Definition at line 70 of file vuColourXYZa.h.

References D65_NORMAL, and m_Normal.

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

copy constructor

Definition at line 72 of file vuColourXYZa.h.

References D65_NORMAL, and m_Normal.

vuColourXYZa::vuColourXYZa const float f  )  [inline]
 

copy the contents of the array f to the components

Definition at line 74 of file vuColourXYZa.h.

References D65_NORMAL, and m_Normal.

vuColourXYZa::vuColourXYZa const float  f  )  [inline]
 

set all components to value of f

Definition at line 76 of file vuColourXYZa.h.

References D65_NORMAL, and m_Normal.

vuColourXYZa::vuColourXYZa const float  x,
const float  y,
const float  z,
const float  a
[inline]
 

construct by the given components

Definition at line 78 of file vuColourXYZa.h.

References D65_NORMAL, and m_Normal.

vuColourXYZa::vuColourXYZa const vuColourRGBa inst  )  [inline]
 

create an XYZa representation of the given colour

Definition at line 84 of file vuColourXYZa.h.

References from().

Here is the call graph for this function:

vuColourXYZa::vuColourXYZa const vuColour7a inst  )  [inline]
 

create an XYZa representation of the given colour

Definition at line 86 of file vuColourXYZa.h.

References from().

Here is the call graph for this function:

vuColourXYZa::vuColourXYZa const vuColour31a inst  )  [inline]
 

create an XYZa representation of the given colour

Definition at line 88 of file vuColourXYZa.h.

References from().

Here is the call graph for this function:


Member Function Documentation

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

create an XYZa representation of the given colour

Definition at line 103 of file vuColourXYZa.h.

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

Here is the call graph for this function:

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

create an XYZa representation of the given colour

Definition at line 97 of file vuColourXYZa.h.

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

Here is the call graph for this function:

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

create an XYZa representation of the given colour

Definition at line 91 of file vuColourXYZa.h.

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

Referenced by pow(), ns_vu1112112::vu1112112::shootRays(), and vuColourXYZa().

Here is the call graph for this function:

void vuColourXYZa::normalize void   )  [inline]
 

Divides by the normalization coefficient.

This leads to a luminance of one for a 100% illuminating light source.

Definition at line 138 of file vuColourXYZa.h.

float vuColourXYZa::setNormalSpectrum const vuColour7a s  )  [inline]
 

calculates a normalization coefficient This is done according to the luminance (Y-component) of the spectrum of the given light source.

This version is for the reduced spectrum.

Returns:
The normalization factor.

Definition at line 127 of file vuColourXYZa.h.

References CXF7toXYZ, dword, and m_Normal.

float vuColourXYZa::setNormalSpectrum const vuColour31a s  )  [inline]
 

calculates a normalization coefficient This is done according to the luminance (Y-component) of the spectrum of the given light source.

Returns:
The normalization factor.

Definition at line 113 of file vuColourXYZa.h.

References CXF31toXYZ, dword, and m_Normal.


Member Data Documentation

float vuColourXYZa::m_Normal [protected]
 

this is the normal of the colour

Definition at line 146 of file vuColourXYZa.h.

Referenced by setNormalSpectrum(), and vuColourXYZa().


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