|
QGIS API Documentation
master-6227475
|
#include <qgsvectorcolorrampv2.h>
Inheritance diagram for QgsVectorColorBrewerColorRampV2:
Collaboration diagram for QgsVectorColorBrewerColorRampV2:Public Member Functions | |
| QgsVectorColorBrewerColorRampV2 (QString schemeName=DEFAULT_COLORBREWER_SCHEMENAME, int colors=DEFAULT_COLORBREWER_COLORS) | |
| virtual QgsVectorColorRampV2 * | clone () const |
| virtual QColor | color (double value) const |
| int | colors () const |
| virtual int | count () const |
| virtual QgsStringMap | properties () const |
| QString | schemeName () const |
| void | setColors (int colors) |
| void | setSchemeName (QString schemeName) |
| virtual QString | type () const |
| virtual double | value (int index) const |
Static Public Member Functions | |
| static QgsVectorColorRampV2 * | create (const QgsStringMap &properties=QgsStringMap()) |
| static QStringList | listSchemeNames () |
| static QList< int > | listSchemeVariants (QString schemeName) |
Protected Member Functions | |
| void | loadPalette () |
Protected Attributes | |
| int | mColors |
| QList< QColor > | mPalette |
| QString | mSchemeName |
Definition at line 157 of file qgsvectorcolorrampv2.h.
| QgsVectorColorBrewerColorRampV2::QgsVectorColorBrewerColorRampV2 | ( | QString | schemeName = DEFAULT_COLORBREWER_SCHEMENAME, |
| int | colors = DEFAULT_COLORBREWER_COLORS |
||
| ) |
Definition at line 303 of file qgsvectorcolorrampv2.cpp.
References loadPalette().
| QgsVectorColorRampV2 * QgsVectorColorBrewerColorRampV2::clone | ( | ) | const [virtual] |
Implements QgsVectorColorRampV2.
Definition at line 354 of file qgsvectorcolorrampv2.cpp.
References mColors, mSchemeName, and QgsVectorColorBrewerColorRampV2().
| QColor QgsVectorColorBrewerColorRampV2::color | ( | double | value | ) | const [virtual] |
Implements QgsVectorColorRampV2.
Definition at line 343 of file qgsvectorcolorrampv2.cpp.
References mPalette.
| int QgsVectorColorBrewerColorRampV2::colors | ( | ) | const [inline] |
Definition at line 177 of file qgsvectorcolorrampv2.h.
Referenced by QgsStyleV2ManagerDialog::addColorRampStatic(), create(), and QgsVectorColorBrewerColorRampV2Dialog::QgsVectorColorBrewerColorRampV2Dialog().
| virtual int QgsVectorColorBrewerColorRampV2::count | ( | ) | const [inline, virtual] |
Implements QgsVectorColorRampV2.
Definition at line 176 of file qgsvectorcolorrampv2.h.
| QgsVectorColorRampV2 * QgsVectorColorBrewerColorRampV2::create | ( | const QgsStringMap & | properties = QgsStringMap() | ) | [static] |
Definition at line 309 of file qgsvectorcolorrampv2.cpp.
References colors(), DEFAULT_COLORBREWER_COLORS, DEFAULT_COLORBREWER_SCHEMENAME, QgsVectorColorBrewerColorRampV2(), and schemeName().
Referenced by QgsSymbolLayerV2Utils::loadColorRamp().
| QStringList QgsVectorColorBrewerColorRampV2::listSchemeNames | ( | ) | [static] |
Definition at line 327 of file qgsvectorcolorrampv2.cpp.
References QgsColorBrewerPalette::listSchemes().
Referenced by QgsVectorColorBrewerColorRampV2Dialog::QgsVectorColorBrewerColorRampV2Dialog().
| QList< int > QgsVectorColorBrewerColorRampV2::listSchemeVariants | ( | QString | schemeName | ) | [static] |
Definition at line 332 of file qgsvectorcolorrampv2.cpp.
Referenced by QgsVectorColorBrewerColorRampV2Dialog::populateVariants().
| void QgsVectorColorBrewerColorRampV2::loadPalette | ( | ) | [protected] |
Definition at line 322 of file qgsvectorcolorrampv2.cpp.
References QgsColorBrewerPalette::listSchemeColors(), mColors, mPalette, and mSchemeName.
Referenced by QgsVectorColorBrewerColorRampV2().
| QgsStringMap QgsVectorColorBrewerColorRampV2::properties | ( | ) | const [virtual] |
Implements QgsVectorColorRampV2.
Definition at line 359 of file qgsvectorcolorrampv2.cpp.
References mColors, and mSchemeName.
| QString QgsVectorColorBrewerColorRampV2::schemeName | ( | ) | const [inline] |
Definition at line 175 of file qgsvectorcolorrampv2.h.
Referenced by QgsStyleV2ManagerDialog::addColorRampStatic(), create(), and QgsVectorColorBrewerColorRampV2Dialog::QgsVectorColorBrewerColorRampV2Dialog().
| void QgsVectorColorBrewerColorRampV2::setColors | ( | int | colors | ) | [inline] |
Definition at line 180 of file qgsvectorcolorrampv2.h.
Referenced by QgsVectorColorBrewerColorRampV2Dialog::setColors().
| void QgsVectorColorBrewerColorRampV2::setSchemeName | ( | QString | schemeName | ) | [inline] |
Definition at line 179 of file qgsvectorcolorrampv2.h.
Referenced by QgsVectorColorBrewerColorRampV2Dialog::setSchemeName().
| virtual QString QgsVectorColorBrewerColorRampV2::type | ( | ) | const [inline, virtual] |
Implements QgsVectorColorRampV2.
Definition at line 169 of file qgsvectorcolorrampv2.h.
| double QgsVectorColorBrewerColorRampV2::value | ( | int | index | ) | const [virtual] |
Implements QgsVectorColorRampV2.
Definition at line 337 of file qgsvectorcolorrampv2.cpp.
References mPalette.
int QgsVectorColorBrewerColorRampV2::mColors [protected] |
Definition at line 190 of file qgsvectorcolorrampv2.h.
Referenced by clone(), loadPalette(), and properties().
QList<QColor> QgsVectorColorBrewerColorRampV2::mPalette [protected] |
Definition at line 191 of file qgsvectorcolorrampv2.h.
Referenced by color(), loadPalette(), and value().
QString QgsVectorColorBrewerColorRampV2::mSchemeName [protected] |
Definition at line 189 of file qgsvectorcolorrampv2.h.
Referenced by clone(), loadPalette(), and properties().