Quantum GIS API Documentation
1.7.5-Wroclaw
|
#include <qgsvectorcolorrampv2.h>
Public Types | |
typedef QMap< double, QColor > | StopsMap |
Public Member Functions | |
QgsVectorGradientColorRampV2 (QColor color1=DEFAULT_GRADIENT_COLOR1, QColor color2=DEFAULT_GRADIENT_COLOR2) | |
virtual QColor | color (double value) const |
virtual QString | type () const |
virtual QgsVectorColorRampV2 * | clone () const |
virtual QgsStringMap | properties () const |
QColor | color1 () const |
QColor | color2 () const |
void | setColor1 (QColor color) |
void | setColor2 (QColor color) |
void | setStops (const StopsMap &stops) |
const StopsMap & | stops () const |
![]() | |
virtual | ~QgsVectorColorRampV2 () |
Static Public Member Functions | |
static QgsVectorColorRampV2 * | create (const QgsStringMap &properties=QgsStringMap()) |
Protected Attributes | |
QColor | mColor1 |
QColor | mColor2 |
StopsMap | mStops |
Definition at line 27 of file qgsvectorcolorrampv2.h.
typedef QMap<double, QColor> QgsVectorGradientColorRampV2::StopsMap |
Definition at line 49 of file qgsvectorcolorrampv2.h.
QgsVectorGradientColorRampV2::QgsVectorGradientColorRampV2 | ( | QColor | color1 = DEFAULT_GRADIENT_COLOR1 , |
QColor | color2 = DEFAULT_GRADIENT_COLOR2 |
||
) |
Definition at line 8 of file qgsvectorcolorrampv2.cpp.
|
virtual |
Implements QgsVectorColorRampV2.
Definition at line 78 of file qgsvectorcolorrampv2.cpp.
References mColor1, mColor2, mStops, QgsVectorGradientColorRampV2(), and setStops().
|
virtual |
Implements QgsVectorColorRampV2.
Definition at line 49 of file qgsvectorcolorrampv2.cpp.
References _interpolate(), MathUtils::lower(), mColor1, mColor2, and mStops.
|
inline |
Definition at line 43 of file qgsvectorcolorrampv2.h.
Referenced by create().
|
inline |
Definition at line 44 of file qgsvectorcolorrampv2.h.
Referenced by create().
|
static |
Definition at line 13 of file qgsvectorcolorrampv2.cpp.
References color1(), color2(), QgsSymbolLayerV2Utils::decodeColor(), DEFAULT_GRADIENT_COLOR1, DEFAULT_GRADIENT_COLOR2, QgsVectorGradientColorRampV2(), setStops(), and stops().
Referenced by QgsSymbolLayerV2Utils::loadColorRamp().
|
virtual |
Implements QgsVectorColorRampV2.
Definition at line 85 of file qgsvectorcolorrampv2.cpp.
References QgsSymbolLayerV2Utils::encodeColor(), mColor1, mColor2, and mStops.
|
inline |
Definition at line 46 of file qgsvectorcolorrampv2.h.
References QgsVectorColorRampV2::color().
|
inline |
Definition at line 47 of file qgsvectorcolorrampv2.h.
References QgsVectorColorRampV2::color().
|
inline |
Definition at line 51 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 52 of file qgsvectorcolorrampv2.h.
Referenced by create().
|
inlinevirtual |
Implements QgsVectorColorRampV2.
Definition at line 37 of file qgsvectorcolorrampv2.h.
|
protected |
Definition at line 55 of file qgsvectorcolorrampv2.h.
Referenced by clone(), color(), and properties().
|
protected |
Definition at line 55 of file qgsvectorcolorrampv2.h.
Referenced by clone(), color(), and properties().
|
protected |
Definition at line 56 of file qgsvectorcolorrampv2.h.
Referenced by clone(), color(), and properties().