|
Quantum GIS API Documentation
1.8
|
#include <qgsvectorcolorrampv2.h>


Public Member Functions | |
| QgsVectorColorBrewerColorRampV2 (QString schemeName=DEFAULT_COLORBREWER_SCHEMENAME, int colors=DEFAULT_COLORBREWER_COLORS) | |
| virtual QColor | color (double value) const |
| virtual QString | type () const |
| virtual QgsVectorColorRampV2 * | clone () const |
| virtual QgsStringMap | properties () const |
| QString | schemeName () const |
| int | colors () const |
| void | setSchemeName (QString schemeName) |
| void | setColors (int colors) |
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 | |
| QString | mSchemeName |
| int | mColors |
| QList< QColor > | mPalette |
Definition at line 127 of file qgsvectorcolorrampv2.h.
| QgsVectorColorBrewerColorRampV2::QgsVectorColorBrewerColorRampV2 | ( | QString | schemeName = DEFAULT_COLORBREWER_SCHEMENAME, |
| int | colors = DEFAULT_COLORBREWER_COLORS |
||
| ) |
Definition at line 192 of file qgsvectorcolorrampv2.cpp.
References loadPalette().
| QgsVectorColorRampV2 * QgsVectorColorBrewerColorRampV2::clone | ( | ) | const [virtual] |
Implements QgsVectorColorRampV2.
Definition at line 239 of file qgsvectorcolorrampv2.cpp.
References mColors, mSchemeName, and QgsVectorColorBrewerColorRampV2().
| QColor QgsVectorColorBrewerColorRampV2::color | ( | double | value | ) | const [virtual] |
Implements QgsVectorColorRampV2.
Definition at line 228 of file qgsvectorcolorrampv2.cpp.
References mPalette.
| int QgsVectorColorBrewerColorRampV2::colors | ( | ) | const [inline] |
Definition at line 144 of file qgsvectorcolorrampv2.h.
Referenced by create().
| QgsVectorColorRampV2 * QgsVectorColorBrewerColorRampV2::create | ( | const QgsStringMap & | properties = QgsStringMap() | ) | [static] |
Definition at line 198 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 218 of file qgsvectorcolorrampv2.cpp.
References QgsColorBrewerPalette::listSchemes().
| QList< int > QgsVectorColorBrewerColorRampV2::listSchemeVariants | ( | QString | schemeName | ) | [static] |
Definition at line 223 of file qgsvectorcolorrampv2.cpp.
| void QgsVectorColorBrewerColorRampV2::loadPalette | ( | ) | [protected] |
Definition at line 213 of file qgsvectorcolorrampv2.cpp.
References QgsColorBrewerPalette::listSchemeColors(), mColors, mPalette, and mSchemeName.
Referenced by QgsVectorColorBrewerColorRampV2().
| QgsStringMap QgsVectorColorBrewerColorRampV2::properties | ( | ) | const [virtual] |
Implements QgsVectorColorRampV2.
Definition at line 244 of file qgsvectorcolorrampv2.cpp.
References mColors, and mSchemeName.
| QString QgsVectorColorBrewerColorRampV2::schemeName | ( | ) | const [inline] |
Definition at line 143 of file qgsvectorcolorrampv2.h.
Referenced by create().
| void QgsVectorColorBrewerColorRampV2::setColors | ( | int | colors | ) | [inline] |
Definition at line 147 of file qgsvectorcolorrampv2.h.
| void QgsVectorColorBrewerColorRampV2::setSchemeName | ( | QString | schemeName | ) | [inline] |
Definition at line 146 of file qgsvectorcolorrampv2.h.
| virtual QString QgsVectorColorBrewerColorRampV2::type | ( | ) | const [inline, virtual] |
Implements QgsVectorColorRampV2.
Definition at line 137 of file qgsvectorcolorrampv2.h.
int QgsVectorColorBrewerColorRampV2::mColors [protected] |
Definition at line 157 of file qgsvectorcolorrampv2.h.
Referenced by clone(), loadPalette(), and properties().
QList<QColor> QgsVectorColorBrewerColorRampV2::mPalette [protected] |
Definition at line 158 of file qgsvectorcolorrampv2.h.
Referenced by color(), and loadPalette().
QString QgsVectorColorBrewerColorRampV2::mSchemeName [protected] |
Definition at line 156 of file qgsvectorcolorrampv2.h.
Referenced by clone(), loadPalette(), and properties().
1.7.6.1