|
int | hue1 |
| The starting value for the hue coordinate.
|
|
int | hue2 |
| The center value for the hue coordinate.
|
|
int | hue3 |
| The end value for the first coordinate.
|
|
int | chroma1 |
| The starting value for the chroma coordinate (corresponds to hue1 )
|
|
int | chroma2 |
| The center value for the chroma coordinate (corresponds to hue2 )
|
|
int | chroma3 |
| The end value for the chroma coordinate (corresponds to hue3 )
|
|
int | maximumChroma1 |
| The max value for the chroma coordinate for the triangular trajectory in the first sequential palette.
|
|
int | maximumChroma2 |
| The max value for the chroma coordinate for the triangular trajectory in the second sequential palette.
|
|
float | chromaPower1 |
| The power of the intensity value for the computation of the chroma coordinate in the first sequential palette, the power should be greater than 0.
|
|
float | chromaPower2 |
| The power of the intensity value for the computation of the chroma coordinate in the second sequential palette, the power should be greater than 0.
|
|
int | luminance1 |
| The starting value for the luminance coordinate (corresponds to hue1 )
|
|
int | luminance2 |
| The center value for the luminance coordinate (corresponds to hue2 )
|
|
int | luminance3 |
| The end value for the luminance coordinate (corresponds to hue3 )
|
|
float | luminancePower1 |
| The power of the intensity value for the computation of the luminance coordinate in the first sequential palette, the power should be greater than 0.
|
|
float | luminancePower2 |
| The power of the intensity value for the computation of the luminance coordinate in the second sequential palette, the power should be greater than 0.
|
|
float | neutralPoint |
| The neutral point position, should be in the range [0.0, 1.0].
|
|
|
int | getHue1 () const |
| Returns the starting value for the first coordinate.
|
|
void | setHue1 (int hue) |
| Sets the starting value for the first coordinate.
|
|
int | getHue2 () const |
| Returns the center value for the first coordinate.
|
|
void | setHue2 (int hue) |
| Sets the center value for the first coordinate.
|
|
int | getHue3 () const |
| Returns the end value for the first coordinate.
|
|
void | setHue3 (int hue) |
| Sets the end value for the first coordinate.
|
|
void | setHue (int hue1, int hue2, int hue3) |
| Sets the parameters for the first coordinate.
|
|
int | getChroma1 () const |
| Returns the starting value for the second coordinate.
|
|
void | setChroma1 (int chroma) |
| Sets the starting value for the second coordinate.
|
|
int | getChroma2 () const |
| Returns the center value for the second coordinate.
|
|
void | setChroma2 (int chroma) |
| Sets the center value for the second coordinate.
|
|
int | getChroma3 () const |
| Returns the end value for the second coordinate.
|
|
void | setChroma3 (int chroma) |
| Sets the end value for the second coordinate.
|
|
int | getMaximumChroma1 () const |
| Returns the max value for the second coordinate in the first sequential palette.
|
|
void | setMaximumChroma1 (int maximumChroma) |
| Sets the max value for the second coordinate in the first sequential palette.
|
|
int | getMaximumChroma2 () const |
| Returns the max value for the second coordinate in the second sequential palette.
|
|
void | setMaximumChroma2 (int maximumChroma) |
| Sets the max value for the second coordinate in the second sequential palette.
|
|
float | getChromaPower1 () const |
| Returns the power of the intensity value for the computation of the second coordinate in the first sequential palette.
|
|
void | setChromaPower1 (float chromaPower) |
| Sets the power of the intensity value for the computation of the second coordinate in the first sequential palette, the power should be greater than 0.
|
|
float | getChromaPower2 () const |
| Returns the power of the intensity value for the computation of the second coordinate in the second sequential palette.
|
|
void | setChromaPower2 (float chromaPower) |
| Sets the power of the intensity value for the computation of the second coordinate in the second sequential palette, the power should be greater than 0.
|
|
void | setChroma (int chroma1, int chroma2, int chroma3, int maximumChroma1, int maximumChroma2, float chromaPower1=1.0f, float chromaPower2=1.0f) |
| Sets the parameters for the second coordinate.
|
|
int | getLuminance1 () const |
| Returns the starting value for the third coordinate.
|
|
void | setLuminance1 (int luminance) |
| Sets the starting value for the third coordinate.
|
|
int | getLuminance2 () const |
| Returns the center value for the third coordinate.
|
|
void | setLuminance2 (int luminance) |
| Sets the center value for the third coordinate.
|
|
int | getLuminance3 () const |
| Returns the end value for the third coordinate.
|
|
void | setLuminance3 (int luminance) |
| Sets the end value for the third coordinate.
|
|
float | getLuminancePower1 () const |
| Returns the power of the intensity value for the computation of the third coordinate in the first sequential palette.
|
|
void | setLuminancePower1 (float luminancePower) |
| Sets the power of the intensity value for the computation of the third coordinate in the first sequential palette, the power should be greater than 0.
|
|
float | getLuminancePower2 () const |
| Returns the power of the intensity value for the computation of the third coordinate in the second sequential palette.
|
|
void | setLuminancePower2 (float luminancePower) |
| Sets the power of the intensity value for the computation of the third coordinate in the second sequential palette, the power should be greater than 0.
|
|
void | setLuminance (int luminance1, int luminance2, int luminance3, float luminancePower1=1.0f, float luminancePower2=1.0f) |
| Sets the parameters for the third coordinate.
|
|
float | getNeutralPoint () const |
| Returns the neutral point position.
|
|
void | setNeutralPoint (float neutralPoint) |
| Sets the neutral point position, should be in the range [0.0, 1.0].
|
|
|
enum class | PaletteType {
Custom
,
Qualitative
,
Sequential
,
Diverging
,
FlexibleDiverging
} |
|
| 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.
|
|
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 flexible diverging palette is constructed in a 3D color coordinate space with coordinates named Hue, Chroma, and Luminance. Flexible diverging HCL color palettes generated through combination of two fully flexible multi-hue sequential palettes.