Color ramp utilising "Color Brewer" preset color schemes.
More...
#include <qgscolorrampimpl.h>
|
void | loadPalette () |
| Generates the scheme using the current name and number of colors. More...
|
|
Color ramp utilising "Color Brewer" preset color schemes.
- Since
- QGIS 3.0
Definition at line 615 of file qgscolorrampimpl.h.
◆ QgsColorBrewerColorRamp()
◆ clone()
◆ color()
QColor QgsColorBrewerColorRamp::color |
( |
double |
value | ) |
const |
|
overridevirtual |
Returns the color corresponding to a specified value.
- Parameters
-
value | value between [0, 1] inclusive |
- Returns
- color for value
Implements QgsColorRamp.
Definition at line 873 of file qgscolorrampimpl.cpp.
◆ colors()
int QgsColorBrewerColorRamp::colors |
( |
| ) |
const |
|
inline |
◆ count()
int QgsColorBrewerColorRamp::count |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ create()
QgsColorRamp * QgsColorBrewerColorRamp::create |
( |
const QVariantMap & |
properties = QVariantMap() | ) |
|
|
static |
◆ invert()
void QgsColorBrewerColorRamp::invert |
( |
| ) |
|
|
overridevirtual |
◆ listSchemeNames()
QStringList QgsColorBrewerColorRamp::listSchemeNames |
( |
| ) |
|
|
static |
◆ listSchemeVariants()
QList< int > QgsColorBrewerColorRamp::listSchemeVariants |
( |
const QString & |
schemeName | ) |
|
|
static |
Returns a list of the valid variants (numbers of colors) for a specified color brewer scheme name.
- Parameters
-
schemeName | color brewer scheme name |
- See also
- listSchemeNames()
Definition at line 861 of file qgscolorrampimpl.cpp.
◆ loadPalette()
void QgsColorBrewerColorRamp::loadPalette |
( |
| ) |
|
|
protected |
Generates the scheme using the current name and number of colors.
Definition at line 840 of file qgscolorrampimpl.cpp.
◆ properties()
QVariantMap QgsColorBrewerColorRamp::properties |
( |
| ) |
const |
|
overridevirtual |
◆ schemeName()
QString QgsColorBrewerColorRamp::schemeName |
( |
| ) |
const |
|
inline |
◆ setColors()
void QgsColorBrewerColorRamp::setColors |
( |
int |
colors | ) |
|
|
inline |
◆ setSchemeName()
void QgsColorBrewerColorRamp::setSchemeName |
( |
const QString & |
schemeName | ) |
|
|
inline |
◆ type()
QString QgsColorBrewerColorRamp::type |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ typeString()
static QString QgsColorBrewerColorRamp::typeString |
( |
| ) |
|
|
inlinestatic |
◆ value()
double QgsColorBrewerColorRamp::value |
( |
int |
index | ) |
const |
|
overridevirtual |
◆ mColors
int QgsColorBrewerColorRamp::mColors |
|
protected |
◆ mInverted
bool QgsColorBrewerColorRamp::mInverted |
|
protected |
◆ mPalette
QList<QColor> QgsColorBrewerColorRamp::mPalette |
|
protected |
◆ mSchemeName
QString QgsColorBrewerColorRamp::mSchemeName |
|
protected |
The documentation for this class was generated from the following files: