K3dColor4 Class Reference

#include <K3dColor4.h>

List of all members.

Public Member Functions

 K3dColor4 ()
 ~K3dColor4 ()
void Reset ()
 Reset color to white color.
GLubyte * GetColorArray ()
 Get color array.
int & GetId ()
 Get or set color index in global data.
GLubyte & operator[] (int i)
 Overloaded operator[] allows set vector arrays.
GLubyte operator[] (int i) const
GLubyte & GetR ()
 Get or set red color.
GLubyte & GetG ()
 Get or set green color.
GLubyte & GetB ()
 Get or set blue color.
GLubyte & GetA ()
 Get or set alpha color.

Private Attributes

GLubyte m_aColor [4]
int m_iId
 Color index in global data.


Detailed Description

Definition at line 38 of file K3dColor4.h.


Constructor & Destructor Documentation

K3dColor4::K3dColor4 (  ) 

Definition at line 38 of file K3dColor4.cpp.

References Reset().

K3dColor4::~K3dColor4 (  ) 

Definition at line 43 of file K3dColor4.cpp.


Member Function Documentation

void K3dColor4::Reset (  ) 

Reset color to white color.

Definition at line 48 of file K3dColor4.cpp.

References m_aColor.

Referenced by K3dColor4().

GLubyte* K3dColor4::GetColorArray (  )  [inline]

Get color array.

Definition at line 50 of file K3dColor4.h.

References m_aColor.

int& K3dColor4::GetId (  )  [inline]

Get or set color index in global data.

Definition at line 56 of file K3dColor4.h.

References m_iId.

Referenced by K3dColor4Build::CreateNewColor4().

GLubyte& K3dColor4::operator[] ( int  i  )  [inline]

Overloaded operator[] allows set vector arrays.

Definition at line 62 of file K3dColor4.h.

References m_aColor.

GLubyte K3dColor4::operator[] ( int  i  )  const [inline]

Definition at line 71 of file K3dColor4.h.

References m_aColor.

GLubyte& K3dColor4::GetR (  )  [inline]

Get or set red color.

Definition at line 82 of file K3dColor4.h.

References m_aColor.

Referenced by K3dVM::AddVertex(), and K3dFaceBuild::LoadFaces().

GLubyte& K3dColor4::GetG (  )  [inline]

Get or set green color.

Definition at line 88 of file K3dColor4.h.

References m_aColor.

Referenced by K3dVM::AddVertex().

GLubyte& K3dColor4::GetB (  )  [inline]

Get or set blue color.

Definition at line 94 of file K3dColor4.h.

References m_aColor.

Referenced by K3dVM::AddVertex().

GLubyte& K3dColor4::GetA (  )  [inline]

Get or set alpha color.

Definition at line 100 of file K3dColor4.h.

References m_aColor.


Member Data Documentation

GLubyte K3dColor4::m_aColor[4] [private]

Definition at line 40 of file K3dColor4.h.

Referenced by GetA(), GetB(), GetColorArray(), GetG(), GetR(), operator[](), and Reset().

int K3dColor4::m_iId [private]

Color index in global data.

Definition at line 41 of file K3dColor4.h.

Referenced by GetId().


The documentation for this class was generated from the following files:
Generated on Thu Aug 16 23:53:31 2007 for K3dEngine by  doxygen 1.5.0