|
enum class | PaletteType {
Custom
,
Qualitative
,
Sequential
,
Diverging
,
FlexibleDiverging
} |
|
| SBDPaletteQualitative () |
| Default constructor.
|
|
| SBDPaletteQualitative (int hue1, int hue2, int chroma=50, int luminance=70, std::string name=std::string("")) |
|
| SBDPaletteQualitative (const SBDPaletteQualitative &otherColorPalette) |
| Copy constructor.
|
|
virtual | ~SBDPaletteQualitative () |
|
int | getHue1 () const |
| Returns the starting value for the first coordinate.
|
|
void | setHue1 (int hue1) |
| Sets the starting value for the first coordinate.
|
|
int | getHue2 () const |
| Returns the end value for the first coordinate.
|
|
void | setHue2 (int hue2) |
| Sets the end value for the first coordinate.
|
|
void | setHue (int hue1, int hue2) |
| Sets the parameters for the first coordinate.
|
|
int | getChroma () const |
| Returns the value for the second coordinate.
|
|
void | setChroma (int chroma) |
| Sets the value for the second coordinate.
|
|
int | getLuminance () const |
| Returns the value for the third coordinate.
|
|
void | setLuminance (int luminance) |
| Sets the value for the third coordinate.
|
|
| SBDPalette () |
| Default constructor.
|
|
virtual | ~SBDPalette () |
|
PaletteType | getType () const |
| Returns the type of the color palette.
|
|
void | setType (SBDPalette::PaletteType paletteType) |
| Sets the type of the color palette.
|
|
const std::string & | getName () const |
| Returns the palette's name.
|
|
void | setName (const std::string &name) |
| Sets the palette's name to name .
|
|
bool | getReverseFlag () const |
| Returns the reverse flag - whether the color palette is mirrored or not.
|
|
void | setReverseFlag (bool b) |
| Sets the reverse flag - whether to mirror or not the color palette.
|
|
SBColor | getColor (float value) const |
| Returns SBColor based on the palette and an intensity value value .
|
|
static float | getValueAlongLinearTrajectory (float y1, float y2, float power, float x) |
| Returns a value along the "linear" trajectory.
|
|
static float | getValueAlongTriangularTrajectory (float y1, float ymax, float y2, float power, float x) |
| Returns a value along "triangular" trajectory.
|
|
int | hue1 |
| The starting value for the first coordinate.
|
|
int | hue2 |
| The end value for the first coordinate.
|
|
int | chroma |
| The value of the second coordinate.
|
|
int | luminance |
| The value of the third coordinate.
|
|
PaletteType | paletteType |
| The palette's type.
|
|
std::string * | name |
| The palette's name.
|
|
bool | reverseFlag |
| Reverse flag: if true, then the palette is reversed/mirrored.
|
|
A qualitative HCL palette is constructed in a 3D color coordinate space with coordinates named Hue, Chroma, and Luminance, where the coordinate Hue can have an arbitrary value, and coordinates Chroma and Luminance are constant: hue = hue1 + i * (hue2 - hue1), where i is a value (of intensity) based on which the colorization should be done. chroma is const luminance is const