OpendTect
7.0
|
Public Member Functions | |
Color (unsigned char r_=255, unsigned char g_=255, unsigned char b_=255, unsigned char t_=0) | |
Color (unsigned int rgbval) | |
float | average () const |
unsigned char | b () const |
float | bF () const |
Color | complementaryColor () const |
TypeSet< Color > | complimentaryColors (int) const |
float | contrast (const Color &) const |
Color | darker (float fac) const |
void | fill (BufferString &) const |
bool | fromDescription (const char *) |
unsigned char | g () const |
const char * | getDescription () const |
void | getHSV (unsigned char &, unsigned char &, unsigned char &) const |
float | getRelLuminance () const |
const char * | getStdStr (bool withhash=true, int transpopt=0) const |
float | gF () const |
bool | isVisible () const |
const char * | largeUserInfoString () const |
Color | lighter (float fac) const |
bool | operator!= (const Color &c) const |
bool | operator== (const Color &c) const |
unsigned char | r () const |
float | rF () const |
unsigned int & | rgb () |
unsigned int | rgb () const |
void | set (unsigned char r_, unsigned char g_, unsigned char b_, unsigned char t_=0) |
void | setHSV (unsigned char h, unsigned char s, unsigned char v) |
void | setRgb (unsigned int rgb_) |
void | setStdStr (const char *) |
e.g. "#00ff32" More... | |
void | setTransparency (unsigned char t_) |
void | setTransparencyF (float tf) |
unsigned char | t () const |
float | tF () const |
bool | use (const char *) |
Static Public Member Functions | |
static Color | Anthracite () |
static Color | Black () |
static Color | Blue () |
static void | convertFromStr (const BufferStringSet &, TypeSet< Color > &) |
static void | convertToStr (const TypeSet< Color > &, BufferStringSet &) |
static const TypeSet< Color > & | descriptionCenters () |
static const BufferStringSet & | descriptions () |
static Color | DgbColor () |
static float | getFloat (unsigned char) |
static unsigned char | getUChar (float v) |
static Color | Green () |
static Color | interpolate (const Color &, const Color &, float frac=0.5) |
static Color | LightGrey () |
static Color | NoColor () |
static int | nrStdDrawColors () |
static Color | Orange () |
static Color | Peach () |
static Color | Red () |
static Color | stdDrawColor (int) |
static Color | White () |
static Color | Yellow () |
Protected Attributes | |
unsigned int | col_ |
<>
OD::Color::Color | ( | unsigned char | r_ = 255 , |
unsigned char | g_ = 255 , |
||
unsigned char | b_ = 255 , |
||
unsigned char | t_ = 0 |
||
) |
OD::Color::Color | ( | unsigned int | rgbval | ) |
|
inlinestatic |
|
inline |
unsigned char OD::Color::b | ( | ) | const |
|
inline |
|
inlinestatic |
|
inlinestatic |
Color OD::Color::complementaryColor | ( | ) | const |
float OD::Color::contrast | ( | const Color & | ) | const |
|
static |
|
static |
|
inline |
|
static |
|
inlinestatic |
void OD::Color::fill | ( | BufferString & | ) | const |
bool OD::Color::fromDescription | ( | const char * | ) |
unsigned char OD::Color::g | ( | ) | const |
const char* OD::Color::getDescription | ( | ) | const |
|
static |
void OD::Color::getHSV | ( | unsigned char & | , |
unsigned char & | , | ||
unsigned char & | |||
) | const |
float OD::Color::getRelLuminance | ( | ) | const |
const char* OD::Color::getStdStr | ( | bool | withhash = true , |
int | transpopt = 0 |
||
) | const |
without hash Google KML standard -> order reversed transpopt -1=opacity 0=not 1=transparency
|
static |
|
inline |
|
inlinestatic |
bool OD::Color::isVisible | ( | ) | const |
const char* OD::Color::largeUserInfoString | ( | ) | const |
Color OD::Color::lighter | ( | float | fac | ) | const |
|
inlinestatic |
|
inlinestatic |
|
static |
bool OD::Color::operator!= | ( | const Color & | c | ) | const |
bool OD::Color::operator== | ( | const Color & | c | ) | const |
|
inlinestatic |
|
inlinestatic |
unsigned char OD::Color::r | ( | ) | const |
|
inlinestatic |
|
inline |
unsigned int& OD::Color::rgb | ( | ) |
unsigned int OD::Color::rgb | ( | ) | const |
void OD::Color::set | ( | unsigned char | r_, |
unsigned char | g_, | ||
unsigned char | b_, | ||
unsigned char | t_ = 0 |
||
) |
void OD::Color::setHSV | ( | unsigned char | h, |
unsigned char | s, | ||
unsigned char | v | ||
) |
void OD::Color::setRgb | ( | unsigned int | rgb_ | ) |
void OD::Color::setStdStr | ( | const char * | ) |
e.g. "#00ff32"
void OD::Color::setTransparency | ( | unsigned char | t_ | ) |
void OD::Color::setTransparencyF | ( | float | tf | ) |
|
static |
unsigned char OD::Color::t | ( | ) | const |
|
inline |
bool OD::Color::use | ( | const char * | ) |
|
inlinestatic |
|
inlinestatic |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024