K3dColor3 Class Reference

#include <K3dColor3.h>

List of all members.

Public Member Functions

 K3dColor3 ()
 ~K3dColor3 ()
void Reset ()
 Reset color to white color.
GLubyte * GetColorArray ()
 Get color array.
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.
int & GetId ()
 Get or set color index in global data.

Private Attributes

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


Detailed Description

Definition at line 37 of file K3dColor3.h.


Constructor & Destructor Documentation

K3dColor3::K3dColor3 (  ) 

Definition at line 36 of file K3dColor3.cpp.

References Reset().

K3dColor3::~K3dColor3 (  ) 

Definition at line 41 of file K3dColor3.cpp.


Member Function Documentation

void K3dColor3::Reset (  ) 

Reset color to white color.

Definition at line 46 of file K3dColor3.cpp.

References m_aColor.

Referenced by K3dColor3().

GLubyte* K3dColor3::GetColorArray (  )  [inline]

Get color array.

Definition at line 47 of file K3dColor3.h.

References m_aColor.

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

Overloaded operator[] allows set vector arrays.

Definition at line 53 of file K3dColor3.h.

References m_aColor.

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

Definition at line 62 of file K3dColor3.h.

References m_aColor.

GLubyte& K3dColor3::GetR (  )  [inline]

Get or set red color.

Definition at line 73 of file K3dColor3.h.

References m_aColor.

Referenced by K3dPlaneBuild::CreateNewPlaneObj(), and K3dObjectWork::SetColor().

GLubyte& K3dColor3::GetG (  )  [inline]

Get or set green color.

Definition at line 79 of file K3dColor3.h.

References m_aColor.

Referenced by K3dPlaneBuild::CreateNewPlaneObj(), and K3dObjectWork::SetColor().

GLubyte& K3dColor3::GetB (  )  [inline]

Get or set blue color.

Definition at line 85 of file K3dColor3.h.

References m_aColor.

Referenced by K3dPlaneBuild::CreateNewPlaneObj(), and K3dObjectWork::SetColor().

int& K3dColor3::GetId (  )  [inline]

Get or set color index in global data.

Definition at line 91 of file K3dColor3.h.

References m_iId.

Referenced by K3dColor3Build::CreateNewColor3().


Member Data Documentation

GLubyte K3dColor3::m_aColor[3] [private]

Definition at line 39 of file K3dColor3.h.

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

int K3dColor3::m_iId [private]

Color index in global data.

Definition at line 40 of file K3dColor3.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