QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Abstract base class for color ramps. More...
#include <qgsvectorcolorrampv2.h>
Public Member Functions | |
virtual | ~QgsVectorColorRampV2 () |
virtual QgsVectorColorRampV2 * | 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 QgsStringMap | 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... | |
Abstract base class for color ramps.
Definition at line 30 of file qgsvectorcolorrampv2.h.
|
inlinevirtual |
Definition at line 34 of file qgsvectorcolorrampv2.h.
|
pure virtual |
Creates a clone of the color ramp.
Implemented in QgsCptCityColorRampV2, QgsVectorColorBrewerColorRampV2, QgsRandomColorsV2, QgsVectorRandomColorRampV2, and QgsVectorGradientColorRampV2.
|
pure virtual |
Returns the color corresponding to a specified value.
value | value between [0, 1] inclusive |
Implemented in QgsVectorColorBrewerColorRampV2, QgsRandomColorsV2, QgsVectorRandomColorRampV2, and QgsVectorGradientColorRampV2.
|
pure virtual |
Returns number of defined colors, or -1 if undefined.
Implemented in QgsVectorColorBrewerColorRampV2, QgsRandomColorsV2, QgsVectorRandomColorRampV2, and QgsVectorGradientColorRampV2.
|
pure virtual |
Returns a string map containing all the color ramp's properties.
Implemented in QgsCptCityColorRampV2, QgsVectorColorBrewerColorRampV2, QgsRandomColorsV2, QgsVectorRandomColorRampV2, and QgsVectorGradientColorRampV2.
|
pure virtual |
Returns a string representing the color ramp type.
Implemented in QgsCptCityColorRampV2, QgsVectorColorBrewerColorRampV2, QgsRandomColorsV2, QgsVectorRandomColorRampV2, and QgsVectorGradientColorRampV2.
|
pure virtual |
Returns relative value between [0,1] of color at specified index.
Implemented in QgsVectorColorBrewerColorRampV2, QgsRandomColorsV2, QgsVectorRandomColorRampV2, and QgsVectorGradientColorRampV2.