|
QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
#include <qgsvectorcolorrampv2.h>

Public Member Functions | |
| QgsVectorColorBrewerColorRampV2 (const QString &schemeName=DEFAULT_COLORBREWER_SCHEMENAME, int colors=DEFAULT_COLORBREWER_COLORS) | |
| virtual QgsVectorColorBrewerColorRampV2 * | clone () const override |
| Creates a clone of the color ramp. More... | |
| virtual QColor | color (double value) const override |
| Returns the color corresponding to a specified value. More... | |
| int | colors () const |
| virtual int | count () const override |
| Returns number of defined colors, or -1 if undefined. More... | |
| virtual QgsStringMap | properties () const override |
| Returns a string map containing all the color ramp's properties. More... | |
| QString | schemeName () const |
| void | setColors (int colors) |
| void | setSchemeName (const QString &schemeName) |
| virtual QString | type () const override |
| Returns a string representing the color ramp type. More... | |
| virtual double | value (int index) const override |
| Returns relative value between [0,1] of color at specified index. More... | |
Public Member Functions inherited from QgsVectorColorRampV2 | |
| virtual | ~QgsVectorColorRampV2 () |
Static Public Member Functions | |
| static QgsVectorColorRampV2 * | create (const QgsStringMap &properties=QgsStringMap()) |
| static QStringList | listSchemeNames () |
| static QList< int > | listSchemeVariants (const QString &schemeName) |
Protected Member Functions | |
| void | loadPalette () |
Protected Attributes | |
| int | mColors |
| QList< QColor > | mPalette |
| QString | mSchemeName |
Definition at line 325 of file qgsvectorcolorrampv2.h.
| QgsVectorColorBrewerColorRampV2::QgsVectorColorBrewerColorRampV2 | ( | const QString & | schemeName = DEFAULT_COLORBREWER_SCHEMENAME, |
| int | colors = DEFAULT_COLORBREWER_COLORS |
||
| ) |
Definition at line 476 of file qgsvectorcolorrampv2.cpp.
|
overridevirtual |
Creates a clone of the color ramp.
Implements QgsVectorColorRampV2.
Definition at line 528 of file qgsvectorcolorrampv2.cpp.
|
overridevirtual |
Returns the color corresponding to a specified value.
| value | value between [0, 1] inclusive |
Implements QgsVectorColorRampV2.
Definition at line 517 of file qgsvectorcolorrampv2.cpp.
|
inline |
Definition at line 345 of file qgsvectorcolorrampv2.h.
|
inlineoverridevirtual |
Returns number of defined colors, or -1 if undefined.
Implements QgsVectorColorRampV2.
Definition at line 344 of file qgsvectorcolorrampv2.h.
|
static |
Definition at line 483 of file qgsvectorcolorrampv2.cpp.
|
static |
Definition at line 501 of file qgsvectorcolorrampv2.cpp.
|
static |
Definition at line 506 of file qgsvectorcolorrampv2.cpp.
|
protected |
Definition at line 496 of file qgsvectorcolorrampv2.cpp.
|
overridevirtual |
Returns a string map containing all the color ramp's properties.
Implements QgsVectorColorRampV2.
Definition at line 533 of file qgsvectorcolorrampv2.cpp.
|
inline |
Definition at line 343 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 348 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 347 of file qgsvectorcolorrampv2.h.
|
inlineoverridevirtual |
Returns a string representing the color ramp type.
Implements QgsVectorColorRampV2.
Definition at line 337 of file qgsvectorcolorrampv2.h.
|
overridevirtual |
Returns relative value between [0,1] of color at specified index.
Implements QgsVectorColorRampV2.
Definition at line 511 of file qgsvectorcolorrampv2.cpp.
|
protected |
Definition at line 358 of file qgsvectorcolorrampv2.h.
Definition at line 359 of file qgsvectorcolorrampv2.h.
|
protected |
Definition at line 357 of file qgsvectorcolorrampv2.h.
1.8.13