QGIS API Documentation  2.11.0-Master
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
QgsCptCityColorRampV2 Class Reference

#include <qgsvectorcolorrampv2.h>

Inheritance diagram for QgsCptCityColorRampV2:
Inheritance graph
[legend]

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 QgsVectorColorRampV2clone () const override
 
QgsVectorGradientColorRampV2cloneGradientRamp () const
 
void copy (const QgsCptCityColorRampV2 *other)
 
QString copyingFileName () const
 
QgsStringMap copyingInfo () const
 
QString descFileName () const
 
bool fileLoaded () const
 
QString fileName () const
 
bool hasMultiStops () const
 
bool loadFile ()
 
void loadPalette ()
 
virtual QgsStringMap properties () const override
 
QString schemeName () const
 
void setName (QString schemeName, QString variantName="", QStringList variantList=QStringList())
 
void setSchemeName (QString schemeName)
 
void setVariantList (QStringList variantList)
 
void setVariantName (QString variantName)
 
virtual QString type () const override
 
QStringList variantList () const
 
QString variantName () const
 
- Public Member Functions inherited from QgsVectorGradientColorRampV2
 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. More...
 
virtual QColor color (double value) const override
 
QColor color1 () const
 
QColor color2 () const
 
void convertToDiscrete (bool discrete)
 
virtual int count () const override
 Returns number of defined colors, or -1 if undefined. More...
 
QgsStringMap info () const
 
bool isDiscrete () const
 
void setColor1 (QColor color)
 
void setColor2 (QColor color)
 
void setDiscrete (bool discrete)
 
void setInfo (const QgsStringMap &info)
 
void setStops (const QgsGradientStopsList &stops)
 
const QgsGradientStopsListstops () const
 
virtual double value (int index) const override
 Returns relative value between [0,1] of color at specified index. More...
 
- Public Member Functions inherited from QgsVectorColorRampV2
virtual ~QgsVectorColorRampV2 ()
 

Static Public Member Functions

static QgsVectorColorRampV2create (const QgsStringMap &properties=QgsStringMap())
 
- Static Public Member Functions inherited from QgsVectorGradientColorRampV2
static QgsVectorColorRampV2create (const QgsStringMap &properties=QgsStringMap())
 

Protected Attributes

bool mFileLoaded
 
bool mMultiStops
 
QString mSchemeName
 
QStringList mVariantList
 
QString mVariantName
 
- Protected Attributes inherited from QgsVectorGradientColorRampV2
QColor mColor1
 
QColor mColor2
 
bool mDiscrete
 
QgsStringMap mInfo
 
QgsGradientStopsList mStops
 

Detailed Description

Definition at line 245 of file qgsvectorcolorrampv2.h.

Constructor & Destructor Documentation

QgsCptCityColorRampV2::QgsCptCityColorRampV2 ( QString  schemeName = DEFAULT_CPTCITY_SCHEMENAME,
QString  variantName = DEFAULT_CPTCITY_VARIANTNAME,
bool  doLoadFile = true 
)

Definition at line 523 of file qgsvectorcolorrampv2.cpp.

QgsCptCityColorRampV2::QgsCptCityColorRampV2 ( QString  schemeName,
QStringList  variantList,
QString  variantName = QString(),
bool  doLoadFile = true 
)

Definition at line 535 of file qgsvectorcolorrampv2.cpp.

Member Function Documentation

QgsVectorColorRampV2 * QgsCptCityColorRampV2::clone ( ) const
overridevirtual

Reimplemented from QgsVectorGradientColorRampV2.

Definition at line 562 of file qgsvectorcolorrampv2.cpp.

QgsVectorGradientColorRampV2 * QgsCptCityColorRampV2::cloneGradientRamp ( ) const

Definition at line 583 of file qgsvectorcolorrampv2.cpp.

void QgsCptCityColorRampV2::copy ( const QgsCptCityColorRampV2 other)

Definition at line 569 of file qgsvectorcolorrampv2.cpp.

QString QgsCptCityColorRampV2::copyingFileName ( ) const

Definition at line 618 of file qgsvectorcolorrampv2.cpp.

QgsStringMap QgsCptCityColorRampV2::copyingInfo ( ) const

Definition at line 630 of file qgsvectorcolorrampv2.cpp.

QgsVectorColorRampV2 * QgsCptCityColorRampV2::create ( const QgsStringMap properties = QgsStringMap())
static

Definition at line 549 of file qgsvectorcolorrampv2.cpp.

QString QgsCptCityColorRampV2::descFileName ( ) const

Definition at line 624 of file qgsvectorcolorrampv2.cpp.

bool QgsCptCityColorRampV2::fileLoaded ( ) const
inline

Definition at line 280 of file qgsvectorcolorrampv2.h.

QString QgsCptCityColorRampV2::fileName ( ) const

Definition at line 608 of file qgsvectorcolorrampv2.cpp.

bool QgsCptCityColorRampV2::hasMultiStops ( ) const
inline

Definition at line 276 of file qgsvectorcolorrampv2.h.

bool QgsCptCityColorRampV2::loadFile ( )

Definition at line 635 of file qgsvectorcolorrampv2.cpp.

void QgsCptCityColorRampV2::loadPalette ( )
inline

Definition at line 275 of file qgsvectorcolorrampv2.h.

QgsStringMap QgsCptCityColorRampV2::properties ( ) const
overridevirtual

Reimplemented from QgsVectorGradientColorRampV2.

Definition at line 599 of file qgsvectorcolorrampv2.cpp.

QString QgsCptCityColorRampV2::schemeName ( ) const
inline

Definition at line 264 of file qgsvectorcolorrampv2.h.

void QgsCptCityColorRampV2::setName ( QString  schemeName,
QString  variantName = "",
QStringList  variantList = QStringList() 
)
inline

Definition at line 272 of file qgsvectorcolorrampv2.h.

void QgsCptCityColorRampV2::setSchemeName ( QString  schemeName)
inline

Definition at line 269 of file qgsvectorcolorrampv2.h.

void QgsCptCityColorRampV2::setVariantList ( QStringList  variantList)
inline

Definition at line 271 of file qgsvectorcolorrampv2.h.

void QgsCptCityColorRampV2::setVariantName ( QString  variantName)
inline

Definition at line 270 of file qgsvectorcolorrampv2.h.

virtual QString QgsCptCityColorRampV2::type ( ) const
inlineoverridevirtual

Reimplemented from QgsVectorGradientColorRampV2.

Definition at line 256 of file qgsvectorcolorrampv2.h.

QStringList QgsCptCityColorRampV2::variantList ( ) const
inline

Definition at line 266 of file qgsvectorcolorrampv2.h.

QString QgsCptCityColorRampV2::variantName ( ) const
inline

Definition at line 265 of file qgsvectorcolorrampv2.h.

Member Data Documentation

bool QgsCptCityColorRampV2::mFileLoaded
protected

Definition at line 291 of file qgsvectorcolorrampv2.h.

bool QgsCptCityColorRampV2::mMultiStops
protected

Definition at line 292 of file qgsvectorcolorrampv2.h.

QString QgsCptCityColorRampV2::mSchemeName
protected

Definition at line 288 of file qgsvectorcolorrampv2.h.

QStringList QgsCptCityColorRampV2::mVariantList
protected

Definition at line 290 of file qgsvectorcolorrampv2.h.

QString QgsCptCityColorRampV2::mVariantName
protected

Definition at line 289 of file qgsvectorcolorrampv2.h.


The documentation for this class was generated from the following files: