QGIS API Documentation
2.2.0-Valmiera
|
#include <qgscategorizedsymbolrendererv2.h>
Public Member Functions | |
QgsRendererCategoryV2 () | |
QgsRendererCategoryV2 (QVariant value, QgsSymbolV2 *symbol, QString label) | |
takes ownership of symbol | |
QgsRendererCategoryV2 (const QgsRendererCategoryV2 &cat) | |
copy constructor | |
QgsRendererCategoryV2 & | operator= (QgsRendererCategoryV2 cat) |
QVariant | value () const |
QgsSymbolV2 * | symbol () 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 Member Functions | |
void | swap (QgsRendererCategoryV2 &other) |
Protected Attributes | |
QVariant | mValue |
QScopedPointer< QgsSymbolV2 > | mSymbol |
QString | mLabel |
Definition at line 29 of file qgscategorizedsymbolrendererv2.h.
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 35 of file qgscategorizedsymbolrendererv2.cpp.
QgsRendererCategoryV2::QgsRendererCategoryV2 | ( | const QgsRendererCategoryV2 & | cat | ) |
copy constructor
Definition at line 42 of file qgscategorizedsymbolrendererv2.cpp.
QString QgsRendererCategoryV2::dump | ( | ) | const |
Definition at line 93 of file qgscategorizedsymbolrendererv2.cpp.
QString QgsRendererCategoryV2::label | ( | ) | const |
Definition at line 73 of file qgscategorizedsymbolrendererv2.cpp.
References mLabel.
Referenced by labelLessThan(), QgsCategorizedSymbolRendererV2::legendSymbolItems(), QgsCategorizedSymbolRendererV2::legendSymbologyItems(), QgsCategorizedSymbolRendererV2::save(), and setLabel().
QgsRendererCategoryV2 & QgsRendererCategoryV2::operator= | ( | QgsRendererCategoryV2 | cat | ) |
Definition at line 50 of file qgscategorizedsymbolrendererv2.cpp.
References swap().
void QgsRendererCategoryV2::setLabel | ( | const QString & | label | ) |
Definition at line 88 of file qgscategorizedsymbolrendererv2.cpp.
void QgsRendererCategoryV2::setSymbol | ( | QgsSymbolV2 * | s | ) |
Definition at line 83 of file qgscategorizedsymbolrendererv2.cpp.
References mSymbol.
void QgsRendererCategoryV2::setValue | ( | const QVariant & | value | ) |
Definition at line 78 of file qgscategorizedsymbolrendererv2.cpp.
|
protected |
Definition at line 56 of file qgscategorizedsymbolrendererv2.cpp.
References mLabel, mSymbol, and mValue.
Referenced by operator=().
QgsSymbolV2 * QgsRendererCategoryV2::symbol | ( | ) | const |
Definition at line 68 of file qgscategorizedsymbolrendererv2.cpp.
References mSymbol.
Referenced by QgsCategorizedSymbolRendererV2::addCategory(), QgsCategorizedSymbolRendererV2::legendSymbolItems(), QgsCategorizedSymbolRendererV2::legendSymbologyItems(), QgsCategorizedSymbolRendererV2::QgsCategorizedSymbolRendererV2(), QgsCategorizedSymbolRendererV2::rebuildHash(), QgsRuleBasedRendererV2::refineRuleCategories(), QgsCategorizedSymbolRendererV2::save(), and QgsCategorizedSymbolRendererV2::updateSymbols().
void QgsRendererCategoryV2::toSld | ( | QDomDocument & | doc, |
QDomElement & | element, | ||
QgsStringMap | props | ||
) | const |
Definition at line 98 of file qgscategorizedsymbolrendererv2.cpp.
References QgsSymbolLayerV2Utils::createFunctionElement(), mLabel, mSymbol, and mValue.
QVariant QgsRendererCategoryV2::value | ( | ) | const |
Definition at line 63 of file qgscategorizedsymbolrendererv2.cpp.
References mValue.
Referenced by QgsCategorizedSymbolRendererV2::rebuildHash(), QgsRuleBasedRendererV2::refineRuleCategories(), QgsCategorizedSymbolRendererV2::save(), setValue(), valueGreaterThan(), and valueLessThan().
|
protected |
Definition at line 58 of file qgscategorizedsymbolrendererv2.h.
Referenced by dump(), label(), setLabel(), swap(), and toSld().
|
protected |
Definition at line 57 of file qgscategorizedsymbolrendererv2.h.
Referenced by dump(), setSymbol(), swap(), symbol(), and toSld().
|
protected |
Definition at line 56 of file qgscategorizedsymbolrendererv2.h.
Referenced by dump(), setValue(), swap(), toSld(), and value().