|
QGIS API Documentation
2.4.0-Chugiak
|
#include <qgsvectorcolorrampv2.h>


Public Member Functions | |
| QgsVectorRandomColorRampV2 (int count=DEFAULT_RANDOM_COUNT, int hueMin=DEFAULT_RANDOM_HUE_MIN, int hueMax=DEFAULT_RANDOM_HUE_MAX, int satMin=DEFAULT_RANDOM_SAT_MIN, int satMax=DEFAULT_RANDOM_SAT_MAX, int valMin=DEFAULT_RANDOM_VAL_MIN, int valMax=DEFAULT_RANDOM_VAL_MAX) | |
| virtual double | value (int index) const |
| virtual QColor | color (double value) const |
| virtual QString | type () const |
| virtual QgsVectorColorRampV2 * | clone () const |
| virtual QgsStringMap | properties () const |
| void | updateColors () |
| int | count () const |
| int | hueMin () const |
| int | hueMax () const |
| int | satMin () const |
| int | satMax () const |
| int | valMin () const |
| int | valMax () const |
| void | setCount (int val) |
| void | setHueMin (int val) |
| void | setHueMax (int val) |
| void | setSatMin (int val) |
| void | setSatMax (int val) |
| void | setValMin (int val) |
| void | setValMax (int val) |
Public Member Functions inherited from QgsVectorColorRampV2 | |
| virtual | ~QgsVectorColorRampV2 () |
Static Public Member Functions | |
| static QgsVectorColorRampV2 * | create (const QgsStringMap &properties=QgsStringMap()) |
| static QList< QColor > | randomColors (int count, int hueMax=DEFAULT_RANDOM_HUE_MAX, int hueMin=DEFAULT_RANDOM_HUE_MIN, int satMax=DEFAULT_RANDOM_SAT_MAX, int satMin=DEFAULT_RANDOM_SAT_MIN, int valMax=DEFAULT_RANDOM_VAL_MAX, int valMin=DEFAULT_RANDOM_VAL_MIN) |
| get a list of random colors More... | |
Protected Attributes | |
| int | mCount |
| int | mHueMin |
| int | mHueMax |
| int | mSatMin |
| int | mSatMax |
| int | mValMin |
| int | mValMax |
| QList< QColor > | mColors |
Definition at line 114 of file qgsvectorcolorrampv2.h.
| QgsVectorRandomColorRampV2::QgsVectorRandomColorRampV2 | ( | int | count = DEFAULT_RANDOM_COUNT, |
| int | hueMin = DEFAULT_RANDOM_HUE_MIN, |
||
| int | hueMax = DEFAULT_RANDOM_HUE_MAX, |
||
| int | satMin = DEFAULT_RANDOM_SAT_MIN, |
||
| int | satMax = DEFAULT_RANDOM_SAT_MAX, |
||
| int | valMin = DEFAULT_RANDOM_VAL_MIN, |
||
| int | valMax = DEFAULT_RANDOM_VAL_MAX |
||
| ) |
Definition at line 251 of file qgsvectorcolorrampv2.cpp.
References updateColors().
|
virtual |
Implements QgsVectorColorRampV2.
Definition at line 294 of file qgsvectorcolorrampv2.cpp.
References mCount, mHueMax, mHueMin, mSatMax, mSatMin, mValMax, mValMin, and QgsVectorRandomColorRampV2().
|
virtual |
Implements QgsVectorColorRampV2.
Definition at line 283 of file qgsvectorcolorrampv2.cpp.
References mColors.
|
inlinevirtual |
Implements QgsVectorColorRampV2.
Definition at line 142 of file qgsvectorcolorrampv2.h.
Referenced by create(), and randomColors().
|
static |
Definition at line 259 of file qgsvectorcolorrampv2.cpp.
References count(), DEFAULT_RANDOM_COUNT, DEFAULT_RANDOM_HUE_MAX, DEFAULT_RANDOM_HUE_MIN, DEFAULT_RANDOM_SAT_MAX, DEFAULT_RANDOM_SAT_MIN, DEFAULT_RANDOM_VAL_MAX, DEFAULT_RANDOM_VAL_MIN, hueMax(), hueMin(), QgsVectorRandomColorRampV2(), satMax(), satMin(), valMax(), and valMin().
Referenced by QgsSymbolLayerV2Utils::loadColorRamp().
|
inline |
Definition at line 144 of file qgsvectorcolorrampv2.h.
Referenced by create().
|
inline |
Definition at line 143 of file qgsvectorcolorrampv2.h.
Referenced by create(), and randomColors().
|
virtual |
Implements QgsVectorColorRampV2.
Definition at line 299 of file qgsvectorcolorrampv2.cpp.
References mCount, mHueMax, mHueMin, mSatMax, mSatMin, mValMax, and mValMin.
|
static |
get a list of random colors
Definition at line 312 of file qgsvectorcolorrampv2.cpp.
References count(), hueMin(), satMin(), and valMin().
Referenced by updateColors().
|
inline |
Definition at line 146 of file qgsvectorcolorrampv2.h.
Referenced by create().
|
inline |
Definition at line 145 of file qgsvectorcolorrampv2.h.
Referenced by create(), and randomColors().
|
inline |
Definition at line 150 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 152 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 151 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 154 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 153 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 156 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 155 of file qgsvectorcolorrampv2.h.
|
inlinevirtual |
Implements QgsVectorColorRampV2.
Definition at line 128 of file qgsvectorcolorrampv2.h.
| void QgsVectorRandomColorRampV2::updateColors | ( | ) |
Definition at line 336 of file qgsvectorcolorrampv2.cpp.
References mColors, mCount, mHueMax, mHueMin, mSatMax, mSatMin, mValMax, mValMin, and randomColors().
Referenced by QgsVectorRandomColorRampV2().
|
inline |
Definition at line 148 of file qgsvectorcolorrampv2.h.
Referenced by create().
|
inline |
Definition at line 147 of file qgsvectorcolorrampv2.h.
Referenced by create(), and randomColors().
|
virtual |
Implements QgsVectorColorRampV2.
Definition at line 277 of file qgsvectorcolorrampv2.cpp.
References mColors.
|
protected |
Definition at line 161 of file qgsvectorcolorrampv2.h.
Referenced by color(), updateColors(), and value().
|
protected |
Definition at line 159 of file qgsvectorcolorrampv2.h.
Referenced by clone(), properties(), and updateColors().
|
protected |
Definition at line 160 of file qgsvectorcolorrampv2.h.
Referenced by clone(), properties(), and updateColors().
|
protected |
Definition at line 160 of file qgsvectorcolorrampv2.h.
Referenced by clone(), properties(), and updateColors().
|
protected |
Definition at line 160 of file qgsvectorcolorrampv2.h.
Referenced by clone(), properties(), and updateColors().
|
protected |
Definition at line 160 of file qgsvectorcolorrampv2.h.
Referenced by clone(), properties(), and updateColors().
|
protected |
Definition at line 160 of file qgsvectorcolorrampv2.h.
Referenced by clone(), properties(), and updateColors().
|
protected |
Definition at line 160 of file qgsvectorcolorrampv2.h.
Referenced by clone(), properties(), and updateColors().
1.8.7