QgsVectorColorBrewerColorRampV2 Class Reference

#include <qgsvectorcolorrampv2.h>

Inheritance diagram for QgsVectorColorBrewerColorRampV2:

Inheritance graph
Collaboration diagram for QgsVectorColorBrewerColorRampV2:

Collaboration graph

List of all members.

Public Member Functions

virtual QColor color (double value) const
virtual QString type () const
virtual QgsVectorColorRampV2clone () const
virtual QgsStringMap properties () const
QString schemeName () const
int colors () const
void setSchemeName (QString schemeName)
void setColors (int colors)

Static Public Member Functions

static QgsVectorColorRampV2create (const QgsStringMap &properties=QgsStringMap())
static QStringList listSchemeNames ()
static QList< int > listSchemeVariants (QString schemeName)

Protected Member Functions

void loadPalette ()

Protected Attributes

QString mSchemeName
int mColors
QList< QColor > mPalette

Detailed Description

Definition at line 113 of file qgsvectorcolorrampv2.h.

Constructor & Destructor Documentation

QgsVectorColorBrewerColorRampV2::QgsVectorColorBrewerColorRampV2 ( QString  schemeName = DEFAULT_COLORBREWER_SCHEMENAME,

Definition at line 177 of file qgsvectorcolorrampv2.cpp.

References loadPalette().

Referenced by clone(), and create().

Member Function Documentation

QgsVectorColorRampV2 * QgsVectorColorBrewerColorRampV2::create ( const QgsStringMap properties = QgsStringMap()  )  [static]

QColor QgsVectorColorBrewerColorRampV2::color ( double  value  )  const [virtual]

Implements QgsVectorColorRampV2.

Definition at line 213 of file qgsvectorcolorrampv2.cpp.

References mPalette.

virtual QString QgsVectorColorBrewerColorRampV2::type (  )  const [inline, virtual]

Implements QgsVectorColorRampV2.

Definition at line 123 of file qgsvectorcolorrampv2.h.

QgsVectorColorRampV2 * QgsVectorColorBrewerColorRampV2::clone (  )  const [virtual]

QgsStringMap QgsVectorColorBrewerColorRampV2::properties (  )  const [virtual]

Implements QgsVectorColorRampV2.

Definition at line 229 of file qgsvectorcolorrampv2.cpp.

References mColors, and mSchemeName.

QString QgsVectorColorBrewerColorRampV2::schemeName (  )  const [inline]

Definition at line 129 of file qgsvectorcolorrampv2.h.

Referenced by create().

int QgsVectorColorBrewerColorRampV2::colors (  )  const [inline]

Definition at line 130 of file qgsvectorcolorrampv2.h.

Referenced by create().

void QgsVectorColorBrewerColorRampV2::setSchemeName ( QString  schemeName  )  [inline]

Definition at line 132 of file qgsvectorcolorrampv2.h.

void QgsVectorColorBrewerColorRampV2::setColors ( int  colors  )  [inline]

Definition at line 133 of file qgsvectorcolorrampv2.h.

QStringList QgsVectorColorBrewerColorRampV2::listSchemeNames (  )  [static]

Definition at line 203 of file qgsvectorcolorrampv2.cpp.

References QgsColorBrewerPalette::listSchemes().

QList< int > QgsVectorColorBrewerColorRampV2::listSchemeVariants ( QString  schemeName  )  [static]

void QgsVectorColorBrewerColorRampV2::loadPalette (  )  [protected]

Member Data Documentation

Definition at line 142 of file qgsvectorcolorrampv2.h.

Referenced by clone(), loadPalette(), and properties().

Definition at line 143 of file qgsvectorcolorrampv2.h.

Referenced by clone(), loadPalette(), and properties().

QList<QColor> QgsVectorColorBrewerColorRampV2::mPalette [protected]

Definition at line 144 of file qgsvectorcolorrampv2.h.

Referenced by color(), and loadPalette().

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

Generated on Sat Feb 4 19:17:57 2012 for Quantum GIS API Documentation by  doxygen 1.5.6