#include <DrawingColor.h>
Public Member Functions | |
DrawingColor (const std::string &name="white", unsigned char red=255, unsigned char green=255, unsigned char blue=255) | |
DrawingColor (const std::string &name, const std::string &postScriptOrHexTriplet) | |
DrawingColor (const std::string &name, double h, double s, double v) | |
void | set (unsigned char red, unsigned char green, unsigned char blue) |
void | set (const std::string &color) |
void | setFromHSV (double h, double s, double v) |
std::string | get (void) const |
std::string | getName (void) const |
std::string | getComplement (void) const |
std::string | getPostscript (void) const |
bool | useBlackInk (void) const |
double | getHue (void) const |
double | getSaturation (void) const |
double | getValue (void) const |
Static Public Member Functions | |
static void | setCutoffAdjustment (double value) |
static double | getCutoffAdjustment (void) |
Private Member Functions | |
void | _setColorFromString (const std::string &color) |
void | _calculateHSV (void) |
unsigned char | _hexCharacterToInt (const char digit) |
std::string | _intToHexString (unsigned char v) const |
Private Attributes | |
std::string | _name |
unsigned char | _red |
unsigned char | _green |
unsigned char | _blue |
double | _h |
double | _s |
double | _v |
Static Private Attributes | |
static int | _cutoff [36] |
static double | _cutoffAdjustment = 0.0 |
Classes | |
struct | compare |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useBlackInk(): Should a label printed with this color as a background be printed using black ink or white ink? |
|
|
|
Initial value: { 7, 7, 7, 6, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9,10,10,10,10,10,10,10, 9, 8, 7, 7, 7, 7, 7, 7 } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|