Public Member Functions | |
| Color (unsigned char r_=255, unsigned char g_=255, unsigned char b_=255, unsigned char t_=0) | |
| Color (unsigned int rgbval) | |
| bool | operator== (const Color &c) const |
| bool | operator!= (const Color &c) const |
| unsigned char | r () const |
| unsigned char | g () const |
| unsigned char | b () const |
| unsigned char | t () const |
| bool | isVisible () const |
| unsigned int | rgb () const |
| unsigned int & | rgb () |
| void | set (unsigned char r_, unsigned char g_, unsigned char b_, unsigned char t_=0) |
| Color | complementaryColor () const |
| Color | operator* (float) const |
| void | lighter (float f=1.1) |
| void | setRgb (unsigned int rgb_) |
| void | setTransparency (unsigned char t_) |
| void | setHSV (unsigned char h, unsigned char s, unsigned char v) |
| void | getHSV (unsigned char &, unsigned char &, unsigned char &) |
| void | setStdStr (const char *) |
| e.g. "#00ff32" | |
| const char * | getStdStr (bool withhash=true, int transpopt=0) const |
| transpopt -1=opacity 0=not 1=transparency | |
| void | fill (char *) const |
| bool | use (const char *) |
Static Public Member Functions | |
| static Color | Black () |
| static Color | White () |
| static Color | DgbColor () |
| static Color | LightGrey () |
| static Color | NoColor () |
| static unsigned char | getUChar (float v) |
| static int | nrStdDrawColors () |
| static Color | stdDrawColor (int) |
Protected Attributes | |
| unsigned int | col_ |
| Color::Color | ( | unsigned char | r_ = 255, |
|
| unsigned char | g_ = 255, |
|||
| unsigned char | b_ = 255, |
|||
| unsigned char | t_ = 0 | |||
| ) |
| Color::Color | ( | unsigned int | rgbval | ) |
| unsigned char Color::b | ( | ) | const |
| static Color Color::Black | ( | ) | [inline, static] |
| Color Color::complementaryColor | ( | ) | const |
| static Color Color::DgbColor | ( | ) | [inline, static] |
| void Color::fill | ( | char * | ) | const |
| unsigned char Color::g | ( | ) | const |
| void Color::getHSV | ( | unsigned char & | , | |
| unsigned char & | , | |||
| unsigned char & | ||||
| ) |
| const char* Color::getStdStr | ( | bool | withhash = true, |
|
| int | transpopt = 0 | |||
| ) | const |
transpopt -1=opacity 0=not 1=transparency
| static unsigned char Color::getUChar | ( | float | v | ) | [static] |
| bool Color::isVisible | ( | ) | const |
| void Color::lighter | ( | float | f = 1.1 |
) |
| static Color Color::LightGrey | ( | ) | [inline, static] |
| static Color Color::NoColor | ( | ) | [inline, static] |
| static int Color::nrStdDrawColors | ( | ) | [static] |
| bool Color::operator!= | ( | const Color & | c | ) | const |
| Color Color::operator* | ( | float | ) | const |
| bool Color::operator== | ( | const Color & | c | ) | const |
| unsigned char Color::r | ( | ) | const |
| unsigned int Color::rgb | ( | ) | const |
| unsigned int& Color::rgb | ( | ) |
| void Color::set | ( | unsigned char | r_, | |
| unsigned char | g_, | |||
| unsigned char | b_, | |||
| unsigned char | t_ = 0 | |||
| ) |
| void Color::setHSV | ( | unsigned char | h, | |
| unsigned char | s, | |||
| unsigned char | v | |||
| ) |
| void Color::setRgb | ( | unsigned int | rgb_ | ) |
| void Color::setStdStr | ( | const char * | ) |
e.g. "#00ff32"
| void Color::setTransparency | ( | unsigned char | t_ | ) |
| static Color Color::stdDrawColor | ( | int | ) | [static] |
| unsigned char Color::t | ( | ) | const |
| bool Color::use | ( | const char * | ) |
| static Color Color::White | ( | ) | [inline, static] |
unsigned int Color::col_ [protected] |
1.7.1