#include <K3dColor3.h>
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. | |
Definition at line 37 of file K3dColor3.h.
| K3dColor3::K3dColor3 | ( | ) |
| K3dColor3::~K3dColor3 | ( | ) |
Definition at line 41 of file K3dColor3.cpp.
| 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] |
| 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] |
| 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().
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] |
1.5.0