Allolib  1.0
C++ Components For Interactive Multimedia
al::CIE_XYZ Struct Reference

Public Member Functions

 CIE_XYZ (float x=0, float y=1, float z=1)
 
template<class T >
 CIE_XYZ (const T *xyz)
 
 CIE_XYZ (const Color &v)
 
 CIE_XYZ (const Colori &v)
 
 CIE_XYZ (const RGB &v)
 
 CIE_XYZ (const HSV &v)
 
 CIE_XYZ (const Lab &v)
 
 CIE_XYZ (const Luv &v)
 
float & operator[] (int i)
 Set color component at index with no bounds checking.
 
const float & operator[] (int i) const
 Get color component at index with no bounds checking.
 
CIE_XYZoperator= (const Color &v)
 Set from RGBA color.
 
CIE_XYZoperator= (const Colori &v)
 Set from RGBA color.
 
CIE_XYZoperator= (const RGB &v)
 Set from RGB color.
 
CIE_XYZoperator= (const HSV &v)
 Set from HSV color.
 
CIE_XYZoperator= (const Lab &v)
 Set from Lab color.
 
CIE_XYZoperator= (const Luv &v)
 Set from Luv color.
 

Public Attributes

union {
   struct {
      float   x
 
      float   y
 < red component in [0, 1]
 
      float   z
 < green component in [0, 1]
 
   } 
 
   float   components [3]
 CIE_XYZ component vector.
 
}; 
 

Detailed Description

Definition at line 654 of file al_Color.hpp.

Constructor & Destructor Documentation

◆ CIE_XYZ() [1/8]

al::CIE_XYZ::CIE_XYZ ( float  x = 0,
float  y = 1,
float  z = 1 
)
inline
Parameters
[in]xCIE X
[in]yCIE Y
[in]zCIE Z

Definition at line 667 of file al_Color.hpp.

◆ CIE_XYZ() [2/8]

template<class T >
al::CIE_XYZ::CIE_XYZ ( const T *  xyz)
inline
Parameters
[in]xyz3-vector of CIE_XYZ components

Definition at line 671 of file al_Color.hpp.

◆ CIE_XYZ() [3/8]

al::CIE_XYZ::CIE_XYZ ( const Color v)
inline
Parameters
[in]vRGB color to convert from

Definition at line 674 of file al_Color.hpp.

◆ CIE_XYZ() [4/8]

al::CIE_XYZ::CIE_XYZ ( const Colori v)
inline
Parameters
[in]vRGB color to convert from

Definition at line 677 of file al_Color.hpp.

◆ CIE_XYZ() [5/8]

al::CIE_XYZ::CIE_XYZ ( const RGB v)
inline
Parameters
[in]vRGB color to convert from

Definition at line 680 of file al_Color.hpp.

◆ CIE_XYZ() [6/8]

al::CIE_XYZ::CIE_XYZ ( const HSV v)
inline
Parameters
[in]vHSV color to convert from

Definition at line 683 of file al_Color.hpp.

◆ CIE_XYZ() [7/8]

al::CIE_XYZ::CIE_XYZ ( const Lab v)
inline
Parameters
[in]vLab color to convert from

Definition at line 686 of file al_Color.hpp.

◆ CIE_XYZ() [8/8]

al::CIE_XYZ::CIE_XYZ ( const Luv v)
inline
Parameters
[in]vLuv color to convert from

Definition at line 689 of file al_Color.hpp.


The documentation for this struct was generated from the following file: