QGIS API Documentation
2.2.0-Valmiera
|
#include <qgsvectorcolorrampv2.h>
Public Member Functions | |
QgsCptCityColorRampV2 (QString schemeName=DEFAULT_CPTCITY_SCHEMENAME, QString variantName=DEFAULT_CPTCITY_VARIANTNAME, bool doLoadFile=true) | |
QgsCptCityColorRampV2 (QString schemeName, QStringList variantList, QString variantName=QString(), bool doLoadFile=true) | |
virtual QString | type () const |
virtual QgsVectorColorRampV2 * | clone () const |
void | copy (const QgsCptCityColorRampV2 *other) |
QgsVectorGradientColorRampV2 * | cloneGradientRamp () const |
virtual QgsStringMap | properties () const |
QString | schemeName () const |
QString | variantName () const |
QStringList | variantList () const |
void | setSchemeName (QString schemeName) |
void | setVariantName (QString variantName) |
void | setVariantList (QStringList variantList) |
void | setName (QString schemeName, QString variantName="", QStringList variantList=QStringList()) |
void | loadPalette () |
bool | hasMultiStops () const |
QString | fileName () const |
bool | loadFile () |
bool | fileLoaded () const |
QString | copyingFileName () const |
QString | descFileName () const |
QgsStringMap | copyingInfo () const |
Public Member Functions inherited from QgsVectorGradientColorRampV2 | |
QgsVectorGradientColorRampV2 (QColor color1=DEFAULT_GRADIENT_COLOR1, QColor color2=DEFAULT_GRADIENT_COLOR2, bool discrete=false, QgsGradientStopsList stops=QgsGradientStopsList()) | |
virtual int | count () const |
virtual double | value (int index) const |
virtual QColor | color (double value) const |
QColor | color1 () const |
QColor | color2 () const |
void | setColor1 (QColor color) |
void | setColor2 (QColor color) |
bool | isDiscrete () const |
void | setDiscrete (bool discrete) |
void | convertToDiscrete (bool discrete) |
void | setStops (const QgsGradientStopsList &stops) |
const QgsGradientStopsList & | stops () const |
QgsStringMap | info () const |
void | setInfo (const QgsStringMap &info) |
void | addStopsToGradient (QGradient *gradient) |
copy color ramp stops to a QGradient | |
Public Member Functions inherited from QgsVectorColorRampV2 | |
virtual | ~QgsVectorColorRampV2 () |
Static Public Member Functions | |
static QgsVectorColorRampV2 * | create (const QgsStringMap &properties=QgsStringMap()) |
Protected Attributes | |
QString | mSchemeName |
QString | mVariantName |
QStringList | mVariantList |
bool | mFileLoaded |
bool | mMultiStops |
Protected Attributes inherited from QgsVectorGradientColorRampV2 | |
QColor | mColor1 |
QColor | mColor2 |
bool | mDiscrete |
QgsGradientStopsList | mStops |
QgsStringMap | mInfo |
Definition at line 222 of file qgsvectorcolorrampv2.h.
QgsCptCityColorRampV2::QgsCptCityColorRampV2 | ( | QString | schemeName = DEFAULT_CPTCITY_SCHEMENAME , |
QString | variantName = DEFAULT_CPTCITY_VARIANTNAME , |
||
bool | doLoadFile = true |
||
) |
Definition at line 441 of file qgsvectorcolorrampv2.cpp.
References loadFile(), and mVariantList.
QgsCptCityColorRampV2::QgsCptCityColorRampV2 | ( | QString | schemeName, |
QStringList | variantList, | ||
QString | variantName = QString() , |
||
bool | doLoadFile = true |
||
) |
Definition at line 453 of file qgsvectorcolorrampv2.cpp.
References loadFile(), mVariantList, and variantList().
|
virtual |
Reimplemented from QgsVectorGradientColorRampV2.
Definition at line 480 of file qgsvectorcolorrampv2.cpp.
References copy(), and QgsCptCityColorRampV2().
QgsVectorGradientColorRampV2 * QgsCptCityColorRampV2::cloneGradientRamp | ( | ) | const |
Definition at line 501 of file qgsvectorcolorrampv2.cpp.
References copyingFileName(), copyingInfo(), QgsCptCityArchive::defaultBaseDir(), QgsVectorGradientColorRampV2::info(), QgsVectorGradientColorRampV2::mColor1, QgsVectorGradientColorRampV2::mColor2, QgsVectorGradientColorRampV2::mDiscrete, mSchemeName, QgsVectorGradientColorRampV2::mStops, mVariantName, QgsVectorGradientColorRampV2::QgsVectorGradientColorRampV2(), and QgsVectorGradientColorRampV2::setInfo().
void QgsCptCityColorRampV2::copy | ( | const QgsCptCityColorRampV2 * | other | ) |
Definition at line 487 of file qgsvectorcolorrampv2.cpp.
References QgsVectorGradientColorRampV2::color1(), QgsVectorGradientColorRampV2::color2(), QgsVectorGradientColorRampV2::isDiscrete(), QgsVectorGradientColorRampV2::mColor1, QgsVectorGradientColorRampV2::mColor2, QgsVectorGradientColorRampV2::mDiscrete, mFileLoaded, mSchemeName, QgsVectorGradientColorRampV2::mStops, mVariantList, mVariantName, and QgsVectorGradientColorRampV2::stops().
Referenced by clone().
QString QgsCptCityColorRampV2::copyingFileName | ( | ) | const |
Definition at line 536 of file qgsvectorcolorrampv2.cpp.
References QgsCptCityArchive::defaultBaseDir(), fileName(), and QgsCptCityArchive::findFileName().
Referenced by cloneGradientRamp(), and copyingInfo().
QgsStringMap QgsCptCityColorRampV2::copyingInfo | ( | ) | const |
Definition at line 548 of file qgsvectorcolorrampv2.cpp.
References copyingFileName().
Referenced by cloneGradientRamp().
|
static |
Reimplemented from QgsVectorGradientColorRampV2.
Definition at line 467 of file qgsvectorcolorrampv2.cpp.
References DEFAULT_CPTCITY_SCHEMENAME, DEFAULT_CPTCITY_VARIANTNAME, QgsCptCityColorRampV2(), schemeName(), and variantName().
Referenced by QgsSymbolLayerV2Utils::loadColorRamp().
QString QgsCptCityColorRampV2::descFileName | ( | ) | const |
Definition at line 542 of file qgsvectorcolorrampv2.cpp.
References QgsCptCityArchive::defaultBaseDir(), fileName(), and QgsCptCityArchive::findFileName().
|
inline |
Definition at line 257 of file qgsvectorcolorrampv2.h.
QString QgsCptCityColorRampV2::fileName | ( | ) | const |
Definition at line 526 of file qgsvectorcolorrampv2.cpp.
References QgsCptCityArchive::defaultBaseDir(), mSchemeName, and mVariantName.
Referenced by copyingFileName(), descFileName(), QgsCptCityColorRampItem::init(), and loadFile().
|
inline |
Definition at line 253 of file qgsvectorcolorrampv2.h.
Referenced by QgsCptCityColorRampItem::init().
bool QgsCptCityColorRampV2::loadFile | ( | ) |
Definition at line 553 of file qgsvectorcolorrampv2.cpp.
References fileName(), QgsCptCityArchive::gradientColorMap(), QgsVectorGradientColorRampV2::mColor1, QgsVectorGradientColorRampV2::mColor2, QgsVectorGradientColorRampV2::mDiscrete, mFileLoaded, mMultiStops, mSchemeName, QgsVectorGradientColorRampV2::mStops, mVariantName, and QgsDebugMsg.
Referenced by QgsCptCityColorRampItem::init(), and QgsCptCityColorRampV2().
|
inline |
Definition at line 252 of file qgsvectorcolorrampv2.h.
|
virtual |
Reimplemented from QgsVectorGradientColorRampV2.
Definition at line 517 of file qgsvectorcolorrampv2.cpp.
References mSchemeName, and mVariantName.
|
inline |
Definition at line 241 of file qgsvectorcolorrampv2.h.
Referenced by create().
|
inline |
Definition at line 249 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 246 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 248 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 247 of file qgsvectorcolorrampv2.h.
Referenced by QgsCptCityColorRampItem::init().
|
inlinevirtual |
Reimplemented from QgsVectorGradientColorRampV2.
Definition at line 233 of file qgsvectorcolorrampv2.h.
|
inline |
Definition at line 243 of file qgsvectorcolorrampv2.h.
Referenced by QgsCptCityColorRampItem::init(), and QgsCptCityColorRampV2().
|
inline |
Definition at line 242 of file qgsvectorcolorrampv2.h.
Referenced by create(), QgsCptCityColorRampItem::equal(), and QgsCptCityColorRampItem::init().
|
protected |
Definition at line 268 of file qgsvectorcolorrampv2.h.
Referenced by copy(), and loadFile().
|
protected |
Definition at line 269 of file qgsvectorcolorrampv2.h.
Referenced by loadFile().
|
protected |
Definition at line 265 of file qgsvectorcolorrampv2.h.
Referenced by cloneGradientRamp(), copy(), fileName(), loadFile(), and properties().
|
protected |
Definition at line 267 of file qgsvectorcolorrampv2.h.
Referenced by copy(), and QgsCptCityColorRampV2().
|
protected |
Definition at line 266 of file qgsvectorcolorrampv2.h.
Referenced by cloneGradientRamp(), copy(), fileName(), loadFile(), and properties().