QGIS API Documentation
2.8.2-Wien
|
#include <qgsvectorcolorrampv2.h>
Public Member Functions | |
QgsVectorGradientColorRampV2 (QColor color1=DEFAULT_GRADIENT_COLOR1, QColor color2=DEFAULT_GRADIENT_COLOR2, bool discrete=false, QgsGradientStopsList stops=QgsGradientStopsList()) | |
void | addStopsToGradient (QGradient *gradient, double alpha=1) |
copy color ramp stops to a QGradient | |
virtual QgsVectorColorRampV2 * | clone () const override |
virtual QColor | color (double value) const override |
QColor | color1 () const |
QColor | color2 () const |
void | convertToDiscrete (bool discrete) |
virtual int | count () const override |
QgsStringMap | info () const |
bool | isDiscrete () const |
virtual QgsStringMap | properties () const override |
void | setColor1 (QColor color) |
void | setColor2 (QColor color) |
void | setDiscrete (bool discrete) |
void | setInfo (const QgsStringMap &info) |
void | setStops (const QgsGradientStopsList &stops) |
const QgsGradientStopsList & | stops () const |
virtual QString | type () const override |
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()) |
Protected Attributes | |
QColor | mColor1 |
QColor | mColor2 |
bool | mDiscrete |
QgsStringMap | mInfo |
QgsGradientStopsList | mStops |
Definition at line 59 of file qgsvectorcolorrampv2.h.
QgsVectorGradientColorRampV2::QgsVectorGradientColorRampV2 | ( | QColor | color1 = DEFAULT_GRADIENT_COLOR1 , |
QColor | color2 = DEFAULT_GRADIENT_COLOR2 , |
||
bool | discrete = false , |
||
QgsGradientStopsList | stops = QgsGradientStopsList() |
||
) |
Definition at line 44 of file qgsvectorcolorrampv2.cpp.
void QgsVectorGradientColorRampV2::addStopsToGradient | ( | QGradient * | gradient, |
double | alpha = 1 |
||
) |
copy color ramp stops to a QGradient
Definition at line 234 of file qgsvectorcolorrampv2.cpp.
|
overridevirtual |
Implements QgsVectorColorRampV2.
Reimplemented in QgsCptCityColorRampV2.
Definition at line 159 of file qgsvectorcolorrampv2.cpp.
|
overridevirtual |
Implements QgsVectorColorRampV2.
Definition at line 113 of file qgsvectorcolorrampv2.cpp.
|
inline |
Definition at line 81 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 82 of file qgsvectorcolorrampv2.h.
void QgsVectorGradientColorRampV2::convertToDiscrete | ( | bool | discrete | ) |
Definition at line 192 of file qgsvectorcolorrampv2.cpp.
|
inlineoverridevirtual |
Implements QgsVectorColorRampV2.
Definition at line 69 of file qgsvectorcolorrampv2.h.
|
static |
Reimplemented in QgsCptCityColorRampV2.
Definition at line 50 of file qgsvectorcolorrampv2.cpp.
|
inline |
Definition at line 93 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 86 of file qgsvectorcolorrampv2.h.
|
overridevirtual |
Implements QgsVectorColorRampV2.
Reimplemented in QgsCptCityColorRampV2.
Definition at line 167 of file qgsvectorcolorrampv2.cpp.
|
inline |
Definition at line 83 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 84 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 87 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 94 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 90 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 91 of file qgsvectorcolorrampv2.h.
|
inlineoverridevirtual |
Implements QgsVectorColorRampV2.
Reimplemented in QgsCptCityColorRampV2.
Definition at line 75 of file qgsvectorcolorrampv2.h.
|
overridevirtual |
Implements QgsVectorColorRampV2.
Definition at line 97 of file qgsvectorcolorrampv2.cpp.
|
protected |
Definition at line 101 of file qgsvectorcolorrampv2.h.
|
protected |
Definition at line 101 of file qgsvectorcolorrampv2.h.
|
protected |
Definition at line 102 of file qgsvectorcolorrampv2.h.
|
protected |
Definition at line 104 of file qgsvectorcolorrampv2.h.
|
protected |
Definition at line 103 of file qgsvectorcolorrampv2.h.