QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QgsVectorColorBrewerColorRampV2 Class Reference

#include <qgsvectorcolorrampv2.h>

Inheritance diagram for QgsVectorColorBrewerColorRampV2:
Inheritance graph
[legend]
Collaboration diagram for QgsVectorColorBrewerColorRampV2:
Collaboration graph
[legend]

Public Member Functions

 QgsVectorColorBrewerColorRampV2 (QString schemeName=DEFAULT_COLORBREWER_SCHEMENAME, int colors=DEFAULT_COLORBREWER_COLORS)
 
virtual double value (int index) const
 
virtual QColor color (double value) const
 
virtual QString type () const
 
virtual QgsVectorColorRampV2clone () const
 
virtual QgsStringMap properties () const
 
QString schemeName () const
 
virtual int count () const
 
int colors () const
 
void setSchemeName (QString schemeName)
 
void setColors (int colors)
 
- Public Member Functions inherited from QgsVectorColorRampV2
virtual ~QgsVectorColorRampV2 ()
 

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 187 of file qgsvectorcolorrampv2.h.

Constructor & Destructor Documentation

QgsVectorColorBrewerColorRampV2::QgsVectorColorBrewerColorRampV2 ( QString  schemeName = DEFAULT_COLORBREWER_SCHEMENAME,
int  colors = DEFAULT_COLORBREWER_COLORS 
)

Definition at line 392 of file qgsvectorcolorrampv2.cpp.

References loadPalette().

Referenced by clone(), and create().

Member Function Documentation

QgsVectorColorRampV2 * QgsVectorColorBrewerColorRampV2::clone ( ) const
virtual
QColor QgsVectorColorBrewerColorRampV2::color ( double  value) const
virtual

Implements QgsVectorColorRampV2.

Definition at line 432 of file qgsvectorcolorrampv2.cpp.

References mPalette.

int QgsVectorColorBrewerColorRampV2::colors ( ) const
inline
virtual int QgsVectorColorBrewerColorRampV2::count ( ) const
inlinevirtual

Implements QgsVectorColorRampV2.

Definition at line 206 of file qgsvectorcolorrampv2.h.

QgsVectorColorRampV2 * QgsVectorColorBrewerColorRampV2::create ( const QgsStringMap properties = QgsStringMap())
static
QStringList QgsVectorColorBrewerColorRampV2::listSchemeNames ( )
static
QList< int > QgsVectorColorBrewerColorRampV2::listSchemeVariants ( QString  schemeName)
static
void QgsVectorColorBrewerColorRampV2::loadPalette ( )
protected
QgsStringMap QgsVectorColorBrewerColorRampV2::properties ( ) const
virtual

Implements QgsVectorColorRampV2.

Definition at line 448 of file qgsvectorcolorrampv2.cpp.

References mColors, and mSchemeName.

QString QgsVectorColorBrewerColorRampV2::schemeName ( ) const
inline
void QgsVectorColorBrewerColorRampV2::setColors ( int  colors)
inline
void QgsVectorColorBrewerColorRampV2::setSchemeName ( QString  schemeName)
inline
virtual QString QgsVectorColorBrewerColorRampV2::type ( ) const
inlinevirtual

Implements QgsVectorColorRampV2.

Definition at line 199 of file qgsvectorcolorrampv2.h.

double QgsVectorColorBrewerColorRampV2::value ( int  index) const
virtual

Implements QgsVectorColorRampV2.

Definition at line 426 of file qgsvectorcolorrampv2.cpp.

References mPalette.

Member Data Documentation

int QgsVectorColorBrewerColorRampV2::mColors
protected

Definition at line 220 of file qgsvectorcolorrampv2.h.

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

QList<QColor> QgsVectorColorBrewerColorRampV2::mPalette
protected

Definition at line 221 of file qgsvectorcolorrampv2.h.

Referenced by color(), loadPalette(), and value().

QString QgsVectorColorBrewerColorRampV2::mSchemeName
protected

Definition at line 219 of file qgsvectorcolorrampv2.h.

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


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