QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSCOLORRAMP_H
17 #define QGSCOLORRAMP_H
19 #include "qgis_core.h"
35 sipType = sipType_QgsGradientColorRamp;
37 sipType = sipType_QgsLimitedRandomColorRamp;
39 sipType = sipType_QgsRandomColorRamp;
41 sipType = sipType_QgsPresetSchemeColorRamp;
43 sipType = sipType_QgsColorBrewerColorRamp;
45 sipType = sipType_QgsCptCityColorRamp;
57 virtual int count()
const = 0;
62 virtual double value(
int index )
const = 0;
69 virtual QColor color(
double value )
const = 0;
74 virtual QString type()
const = 0;
90 virtual QVariantMap properties()
const = 0;
101 static QList< QPair< QString, QString > > rampTypes();
Abstract base class for color ramps.
static QString typeString()
Returns the string identifier for QgsColorBrewerColorRamp.
static QString typeString()
Returns the string identifier for QgsCptCityColorRamp.
static QString typeString()
Returns the string identifier for QgsGradientColorRamp.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
static QString typeString()
Returns the string identifier for QgsPresetSchemeColorRamp.
static QString typeString()
Returns the string identifier for QgsRandomColorRamp.
virtual void invert()
Inverts the ordering of the color ramp.
static QString typeString()
Returns the string identifier for QgsLimitedRandomColorRamp.