QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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]
Collaboration diagram for QgsCptCityColorRampV2:
Collaboration 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 QString type () const
 
virtual QgsVectorColorRampV2clone () const
 
void copy (const QgsCptCityColorRampV2 *other)
 
QgsVectorGradientColorRampV2cloneGradientRamp () 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 QgsGradientStopsListstops () const
 
QgsStringMap info () const
 
void setInfo (const QgsStringMap &info)
 
void addStopsToGradient (QGradient *gradient, double alpha=1)
 copy color ramp stops to a QGradient 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

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
 

Detailed Description

Definition at line 228 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 460 of file qgsvectorcolorrampv2.cpp.

References loadFile(), and mVariantList.

Referenced by clone(), and create().

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

Definition at line 472 of file qgsvectorcolorrampv2.cpp.

References loadFile(), mVariantList, and variantList().

Member Function Documentation

QgsVectorColorRampV2 * QgsCptCityColorRampV2::clone ( ) const
virtual

Reimplemented from QgsVectorGradientColorRampV2.

Definition at line 499 of file qgsvectorcolorrampv2.cpp.

References copy(), and QgsCptCityColorRampV2().

QgsVectorGradientColorRampV2 * QgsCptCityColorRampV2::cloneGradientRamp ( ) const
void QgsCptCityColorRampV2::copy ( const QgsCptCityColorRampV2 other)
QString QgsCptCityColorRampV2::copyingFileName ( ) const
QgsStringMap QgsCptCityColorRampV2::copyingInfo ( ) const
QgsVectorColorRampV2 * QgsCptCityColorRampV2::create ( const QgsStringMap properties = QgsStringMap())
static
QString QgsCptCityColorRampV2::descFileName ( ) const
bool QgsCptCityColorRampV2::fileLoaded ( ) const
inline

Definition at line 263 of file qgsvectorcolorrampv2.h.

QString QgsCptCityColorRampV2::fileName ( ) const
bool QgsCptCityColorRampV2::hasMultiStops ( ) const
inline

Definition at line 259 of file qgsvectorcolorrampv2.h.

Referenced by QgsCptCityColorRampItem::init().

bool QgsCptCityColorRampV2::loadFile ( )
void QgsCptCityColorRampV2::loadPalette ( )
inline

Definition at line 258 of file qgsvectorcolorrampv2.h.

QgsStringMap QgsCptCityColorRampV2::properties ( ) const
virtual

Reimplemented from QgsVectorGradientColorRampV2.

Definition at line 536 of file qgsvectorcolorrampv2.cpp.

References mSchemeName, and mVariantName.

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

Definition at line 252 of file qgsvectorcolorrampv2.h.

void QgsCptCityColorRampV2::setVariantList ( QStringList  variantList)
inline

Definition at line 254 of file qgsvectorcolorrampv2.h.

Referenced by QgsCptCityColorRampV2Dialog::updateRamp().

void QgsCptCityColorRampV2::setVariantName ( QString  variantName)
inline
virtual QString QgsCptCityColorRampV2::type ( ) const
inlinevirtual

Reimplemented from QgsVectorGradientColorRampV2.

Definition at line 239 of file qgsvectorcolorrampv2.h.

QStringList QgsCptCityColorRampV2::variantList ( ) const
inline
QString QgsCptCityColorRampV2::variantName ( ) const
inline

Member Data Documentation

bool QgsCptCityColorRampV2::mFileLoaded
protected

Definition at line 274 of file qgsvectorcolorrampv2.h.

Referenced by copy(), and loadFile().

bool QgsCptCityColorRampV2::mMultiStops
protected

Definition at line 275 of file qgsvectorcolorrampv2.h.

Referenced by loadFile().

QString QgsCptCityColorRampV2::mSchemeName
protected

Definition at line 271 of file qgsvectorcolorrampv2.h.

Referenced by cloneGradientRamp(), copy(), fileName(), loadFile(), and properties().

QStringList QgsCptCityColorRampV2::mVariantList
protected

Definition at line 273 of file qgsvectorcolorrampv2.h.

Referenced by copy(), and QgsCptCityColorRampV2().

QString QgsCptCityColorRampV2::mVariantName
protected

Definition at line 272 of file qgsvectorcolorrampv2.h.

Referenced by cloneGradientRamp(), copy(), fileName(), loadFile(), and properties().


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