QGIS API Documentation
2.8.2-Wien
|
#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 QgsVectorColorRampV2 * | clone () const override |
virtual QColor | color (double value) const override |
int | count () const override |
int | hueMax () const |
int | hueMin () const |
virtual QgsStringMap | properties () const override |
int | satMax () const |
int | satMin () const |
void | setCount (int val) |
void | setHueMax (int val) |
void | setHueMin (int val) |
void | setSatMax (int val) |
void | setSatMin (int val) |
void | setValMax (int val) |
void | setValMin (int val) |
virtual QString | type () const override |
void | updateColors () |
int | valMax () const |
int | valMin () const |
virtual double | value (int index) const override |
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 |
Protected Attributes | |
QList< QColor > | mColors |
int | mCount |
int | mHueMax |
int | mHueMin |
int | mSatMax |
int | mSatMin |
int | mValMax |
int | mValMin |
Definition at line 115 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 263 of file qgsvectorcolorrampv2.cpp.
|
overridevirtual |
Implements QgsVectorColorRampV2.
Definition at line 306 of file qgsvectorcolorrampv2.cpp.
|
overridevirtual |
Implements QgsVectorColorRampV2.
Definition at line 295 of file qgsvectorcolorrampv2.cpp.
|
inlineoverridevirtual |
Implements QgsVectorColorRampV2.
Definition at line 143 of file qgsvectorcolorrampv2.h.
|
static |
Definition at line 271 of file qgsvectorcolorrampv2.cpp.
|
inline |
Definition at line 145 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 144 of file qgsvectorcolorrampv2.h.
|
overridevirtual |
Implements QgsVectorColorRampV2.
Definition at line 311 of file qgsvectorcolorrampv2.cpp.
|
static |
get a list of random colors
Definition at line 324 of file qgsvectorcolorrampv2.cpp.
|
inline |
Definition at line 147 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 146 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 151 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 153 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 152 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 155 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 154 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 157 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 156 of file qgsvectorcolorrampv2.h.
|
inlineoverridevirtual |
Implements QgsVectorColorRampV2.
Definition at line 129 of file qgsvectorcolorrampv2.h.
void QgsVectorRandomColorRampV2::updateColors | ( | ) |
Definition at line 356 of file qgsvectorcolorrampv2.cpp.
|
inline |
Definition at line 149 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 148 of file qgsvectorcolorrampv2.h.
|
overridevirtual |
Implements QgsVectorColorRampV2.
Definition at line 289 of file qgsvectorcolorrampv2.cpp.
|
protected |
Definition at line 162 of file qgsvectorcolorrampv2.h.
|
protected |
Definition at line 160 of file qgsvectorcolorrampv2.h.
|
protected |
Definition at line 161 of file qgsvectorcolorrampv2.h.
|
protected |
Definition at line 161 of file qgsvectorcolorrampv2.h.
|
protected |
Definition at line 161 of file qgsvectorcolorrampv2.h.
|
protected |
Definition at line 161 of file qgsvectorcolorrampv2.h.
|
protected |
Definition at line 161 of file qgsvectorcolorrampv2.h.
|
protected |
Definition at line 161 of file qgsvectorcolorrampv2.h.