Class for Managing color strings and names
![]() | StringMode string representation mode
|
![]() | synopsis -color option synopsis |
![]() | setColor (GLfloat r, GLfloat g, GLfloat b, GLfloat a = 1.0f) set color, each component should be between 0 and 1 |
![]() | operator= (const Color& c) assignement operator |
![]() | getColor (void) const returns color values as a 4 components array |
![]() | getRed (void) const returns color red component |
![]() | getGreen (void) const returns color green component |
![]() | getBlue (void) const returns color blue component |
![]() | getAlpha (void) const returns color alpha component |
![]() | glSet (void) const set color in GL window |
![]() | scan (const char *src) set color value from a #RGB, #RRGGBB, #RRRGGGBBB or #RRRRGGGGBBBB string |
![]() | colorCmd (TclModule *m, Data3D *data, int argc, char **argv, int i = 0) -color TCL command |
![]() | exception
| ||||||||||
![]() | constructors
| ||||||||||
![]() | destructor |
![]() | color [4] RGBA color components |
![]() | str color string |
![]() | mode str mode |
Class for Managing color strings and names
char* str
StringMode mode
constructors
Color()
Color(GLfloat r, GLfloat g, GLfloat b, GLfloat a = 1.0f)
g - green color component
b - blue color component
a - alpha component Color(const char *src) throw(InvalidString)
Color(const Material& mat)
destructor
void setColor(GLfloat r, GLfloat g, GLfloat b, GLfloat a = 1.0f)
g - green color component
b - blue color component
a - alpha component Color& operator=(const Color& c)
const GLfloat* getColor(void) const
GLfloat getRed(void) const
GLfloat getGreen(void) const
GLfloat getBlue(void) const
GLfloat getAlpha(void) const
void glSet(void) const
bool scan(const char *src)
int colorCmd(TclModule *m, Data3D *data, int argc, char **argv, int i = 0)
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de