Stellarium 0.15.2
|
Public Types | |
enum | ColorInterpolation { ciRGB, ciHSV } |
enum | GradientPreset { gpGrayscale, gpHot, gpCold, gpNight, gpCandy, gpGeography, gpIon, gpThermal, gpPolar, gpSpectrum, gpJet, gpHues } |
Public Member Functions | |
QCPColorGradient (GradientPreset preset=gpCold) | |
bool | operator== (const QCPColorGradient &other) const |
bool | operator!= (const QCPColorGradient &other) const |
int | levelCount () const |
QMap< double, QColor > | colorStops () const |
ColorInterpolation | colorInterpolation () const |
bool | periodic () const |
void | setLevelCount (int n) |
void | setColorStops (const QMap< double, QColor > &colorStops) |
void | setColorStopAt (double position, const QColor &color) |
void | setColorInterpolation (ColorInterpolation interpolation) |
void | setPeriodic (bool enabled) |
void | colorize (const double *data, const QCPRange &range, QRgb *scanLine, int n, int dataIndexFactor=1, bool logarithmic=false) |
QRgb | color (double position, const QCPRange &range, bool logarithmic=false) |
void | loadPreset (GradientPreset preset) |
void | clearColorStops () |
QCPColorGradient | inverted () const |
Protected Member Functions | |
void | updateColorBuffer () |
Protected Attributes | |
int | mLevelCount |
QMap< double, QColor > | mColorStops |
ColorInterpolation | mColorInterpolation |
bool | mPeriodic |
QVector< QRgb > | mColorBuffer |
bool | mColorBufferInvalidated |
Definition at line 1900 of file qcustomplot.h.
Defines the color spaces in which color interpolation between gradient stops can be performed.
Definition at line 1909 of file qcustomplot.h.
Defines the available presets that can be loaded with loadPreset. See the documentation there for an image of the presets.
Definition at line 1918 of file qcustomplot.h.