QGIS API Documentation
3.0.2-Girona (307d082)
|
categorized renderer More...
#include <qgscategorizedsymbolrenderer.h>
Public Member Functions | |
QgsRendererCategory ()=default | |
Constructor for QgsRendererCategory. More... | |
QgsRendererCategory (const QVariant &value, QgsSymbol *symbol, const QString &label, bool render=true) | |
takes ownership of symbol More... | |
QgsRendererCategory (const QgsRendererCategory &cat) | |
copy constructor More... | |
QString | dump () const |
QString | label () const |
QgsRendererCategory & | operator= (QgsRendererCategory cat) |
bool | renderState () const |
Returns true if the category is currently enabled and should be rendered. More... | |
void | setLabel (const QString &label) |
void | setRenderState (bool render) |
Sets whether the category is currently enabled and should be rendered. More... | |
void | setSymbol (QgsSymbol *s) |
void | setValue (const QVariant &value) |
QgsSymbol * | symbol () const |
void | toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const |
QVariant | value () const |
Protected Member Functions | |
void | swap (QgsRendererCategory &other) |
Protected Attributes | |
QString | mLabel |
bool | mRender = true |
std::unique_ptr< QgsSymbol > | mSymbol |
QVariant | mValue |
categorized renderer
Definition at line 34 of file qgscategorizedsymbolrenderer.h.
|
default |
Constructor for QgsRendererCategory.
QgsRendererCategory::QgsRendererCategory | ( | const QVariant & | value, |
QgsSymbol * | symbol, | ||
const QString & | label, | ||
bool | render = true |
||
) |
takes ownership of symbol
Definition at line 37 of file qgscategorizedsymbolrenderer.cpp.
QgsRendererCategory::QgsRendererCategory | ( | const QgsRendererCategory & | cat | ) |
copy constructor
Definition at line 45 of file qgscategorizedsymbolrenderer.cpp.
QString QgsRendererCategory::dump | ( | ) | const |
Definition at line 107 of file qgscategorizedsymbolrenderer.cpp.
QString QgsRendererCategory::label | ( | ) | const |
Definition at line 77 of file qgscategorizedsymbolrenderer.cpp.
QgsRendererCategory & QgsRendererCategory::operator= | ( | QgsRendererCategory | cat | ) |
Definition at line 54 of file qgscategorizedsymbolrenderer.cpp.
bool QgsRendererCategory::renderState | ( | ) | const |
Returns true if the category is currently enabled and should be rendered.
Definition at line 82 of file qgscategorizedsymbolrenderer.cpp.
void QgsRendererCategory::setLabel | ( | const QString & | label | ) |
Definition at line 97 of file qgscategorizedsymbolrenderer.cpp.
void QgsRendererCategory::setRenderState | ( | bool | render | ) |
Sets whether the category is currently enabled and should be rendered.
Definition at line 102 of file qgscategorizedsymbolrenderer.cpp.
void QgsRendererCategory::setSymbol | ( | QgsSymbol * | s | ) |
Definition at line 92 of file qgscategorizedsymbolrenderer.cpp.
void QgsRendererCategory::setValue | ( | const QVariant & | value | ) |
Definition at line 87 of file qgscategorizedsymbolrenderer.cpp.
|
protected |
Definition at line 60 of file qgscategorizedsymbolrenderer.cpp.
QgsSymbol * QgsRendererCategory::symbol | ( | ) | const |
Definition at line 72 of file qgscategorizedsymbolrenderer.cpp.
void QgsRendererCategory::toSld | ( | QDomDocument & | doc, |
QDomElement & | element, | ||
QgsStringMap | props | ||
) | const |
Definition at line 112 of file qgscategorizedsymbolrenderer.cpp.
QVariant QgsRendererCategory::value | ( | ) | const |
Definition at line 67 of file qgscategorizedsymbolrenderer.cpp.
|
protected |
Definition at line 81 of file qgscategorizedsymbolrenderer.h.
|
protected |
Definition at line 82 of file qgscategorizedsymbolrenderer.h.
|
protected |
Definition at line 80 of file qgscategorizedsymbolrenderer.h.
|
protected |
Definition at line 79 of file qgscategorizedsymbolrenderer.h.