QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
QgsRendererCategoryV2 Class Reference

#include <qgscategorizedsymbolrendererv2.h>

Collaboration diagram for QgsRendererCategoryV2:
Collaboration graph

Public Member Functions

 QgsRendererCategoryV2 ()
 QgsRendererCategoryV2 (QVariant value, QgsSymbolV2 *symbol, QString label)
 takes ownership of symbol
 QgsRendererCategoryV2 (const QgsRendererCategoryV2 &cat)
 copy constructor
 ~QgsRendererCategoryV2 ()
QgsRendererCategoryV2operator= (const QgsRendererCategoryV2 &cat)
QVariant value () const
QgsSymbolV2symbol () const
QString label () const
void setValue (const QVariant &value)
void setSymbol (QgsSymbolV2 *s)
void setLabel (const QString &label)
QString dump () const
void toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const

Protected Attributes

QVariant mValue
QString mLabel

Detailed Description

Definition at line 27 of file qgscategorizedsymbolrendererv2.h.

Constructor & Destructor Documentation

QgsRendererCategoryV2::QgsRendererCategoryV2 ( )

Definition at line 31 of file qgscategorizedsymbolrendererv2.cpp.

QgsRendererCategoryV2::QgsRendererCategoryV2 ( QVariant  value,
QgsSymbolV2 symbol,
QString  label 

takes ownership of symbol

Definition at line 36 of file qgscategorizedsymbolrendererv2.cpp.

QgsRendererCategoryV2::QgsRendererCategoryV2 ( const QgsRendererCategoryV2 cat)

copy constructor

Definition at line 41 of file qgscategorizedsymbolrendererv2.cpp.

References QgsSymbolV2::clone(), and mSymbol.

QgsRendererCategoryV2::~QgsRendererCategoryV2 ( )

Definition at line 50 of file qgscategorizedsymbolrendererv2.cpp.

References mSymbol.

Member Function Documentation

QString QgsRendererCategoryV2::dump ( ) const

Definition at line 100 of file qgscategorizedsymbolrendererv2.cpp.

References QgsSymbolV2::dump(), mLabel, mSymbol, and mValue.

QString QgsRendererCategoryV2::label ( ) const
QgsRendererCategoryV2 & QgsRendererCategoryV2::operator= ( const QgsRendererCategoryV2 cat)

Definition at line 55 of file qgscategorizedsymbolrendererv2.cpp.

References QgsSymbolV2::clone(), mLabel, mSymbol, and mValue.

void QgsRendererCategoryV2::setLabel ( const QString &  label)

Definition at line 95 of file qgscategorizedsymbolrendererv2.cpp.

References label(), and mLabel.

void QgsRendererCategoryV2::setSymbol ( QgsSymbolV2 s)

Definition at line 87 of file qgscategorizedsymbolrendererv2.cpp.

References mSymbol.

void QgsRendererCategoryV2::setValue ( const QVariant &  value)

Definition at line 82 of file qgscategorizedsymbolrendererv2.cpp.

References mValue, and value().

QgsSymbolV2 * QgsRendererCategoryV2::symbol ( ) const
void QgsRendererCategoryV2::toSld ( QDomDocument &  doc,
QDomElement &  element,
QgsStringMap  props 
) const
QVariant QgsRendererCategoryV2::value ( ) const

Member Data Documentation

QString QgsRendererCategoryV2::mLabel

Definition at line 58 of file qgscategorizedsymbolrendererv2.h.

Referenced by dump(), label(), operator=(), setLabel(), and toSld().

QgsSymbolV2* QgsRendererCategoryV2::mSymbol
QVariant QgsRendererCategoryV2::mValue

Definition at line 56 of file qgscategorizedsymbolrendererv2.h.

Referenced by dump(), operator=(), setValue(), toSld(), and value().

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