|
| QgsLimitedRandomColorRamp (int count=DEFAULT_RANDOM_COUNT, int hueMin=DEFAULT_RANDOM_HUE_MIN, int hueMax=DEFAULT_RANDOM_HUE_MAX, int satMin=DEFAULT_RANDOM_SAT_MIN, int satMax=DEFAULT_RANDOM_SAT_MAX, int valMin=DEFAULT_RANDOM_VAL_MIN, int valMax=DEFAULT_RANDOM_VAL_MAX) |
| Constructor for QgsLimitedRandomColorRamp. More...
|
|
QgsLimitedRandomColorRamp * | clone () const override |
| Creates a clone of the color ramp. More...
|
|
QColor | color (double value) const override |
| Returns the color corresponding to a specified value. More...
|
|
int | count () const override |
| Returns number of defined colors, or -1 if undefined. More...
|
|
int | hueMax () const |
| Returns the maximum hue for generated colors. More...
|
|
int | hueMin () const |
| Returns the minimum hue for generated colors. More...
|
|
QVariantMap | properties () const override |
| Returns a string map containing all the color ramp's properties. More...
|
|
int | satMax () const |
| Returns the maximum saturation for generated colors. More...
|
|
int | satMin () const |
| Returns the minimum saturation for generated colors. More...
|
|
void | setCount (int val) |
| Sets the number of colors contained in the ramp. More...
|
|
void | setHueMax (int val) |
| Sets the maximum hue for generated colors. More...
|
|
void | setHueMin (int val) |
| Sets the minimum hue for generated colors. More...
|
|
void | setSatMax (int val) |
| Sets the maximum saturation for generated colors. More...
|
|
void | setSatMin (int val) |
| Sets the minimum saturation for generated colors. More...
|
|
void | setValMax (int val) |
| Sets the maximum value for generated colors. More...
|
|
void | setValMin (int val) |
| Sets the minimum value for generated colors. More...
|
|
QString | type () const override |
| Returns a string representing the color ramp type. More...
|
|
void | updateColors () |
| Must be called after changing the properties of the color ramp to regenerate the list of random colors. More...
|
|
int | valMax () const |
| Returns the maximum value for generated colors. More...
|
|
int | valMin () const |
| Returns the minimum value for generated colors. More...
|
|
double | value (int index) const override |
| Returns relative value between [0,1] of color at specified index. More...
|
|
virtual | ~QgsColorRamp () |
|
virtual QgsColorRamp * | clone () const =0 |
| Creates a clone of the color ramp. More...
|
|
virtual QColor | color (double value) const =0 |
| Returns the color corresponding to a specified value. More...
|
|
virtual int | count () const =0 |
| Returns number of defined colors, or -1 if undefined. More...
|
|
virtual void | invert () |
| Inverts the ordering of the color ramp. More...
|
|
virtual QVariantMap | properties () const =0 |
| Returns a string map containing all the color ramp's properties. More...
|
|
virtual QString | type () const =0 |
| Returns a string representing the color ramp type. More...
|
|
virtual double | value (int index) const =0 |
| Returns relative value between [0,1] of color at specified index. More...
|
|