|
Public Types |
enum | ColorModel {
UNKNOWN_CLR_MODEL,
ALPHA,
LUM_ALPHA,
RGBA,
HSVA
} |
Public Member Functions |
| ColorPallet (const string &filename, bool &ok) |
| Create a new color pallet table.
|
bool | getRGBA (const size_t offset, float &r, float &g, float &b, float &a) const |
| Retrief the RGB value for a cell level.
|
bool | setRGBA (const size_t offset, const float r, const float g, const float b, const float a) |
| Set the RGB value for a cell level.
|
void | setColorModel (const ColorModel cm) |
ColorModel | getColorModel () const |
Private Member Functions |
bool | checkColorModel (const string &str) |
| Look for a color model = string and set the type.
|
bool | insertCmapEntryRGBA (const float v1, const float r1, const float g1, const float b1, const float a1, const float v2, const float r2, const float g2, const float b2, const float a2) |
bool | handleA_Line (const string &bufStr) |
bool | handleLA_Line (const string &bufStr) |
bool | handleRGBA_Line (const string &bufStr) |
bool | handleHSVA_Line (const string &bufStr) |
Private Attributes |
vector< float > | r |
vector< float > | g |
vector< float > | b |
vector< float > | a |
ColorModel | colorModel |