QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QgsRendererCategoryV2 Class Reference

categorized renderer More...

#include <qgscategorizedsymbolrendererv2.h>

Public Member Functions

 QgsRendererCategoryV2 ()
 QgsRendererCategoryV2 (const QVariant &value, QgsSymbolV2 *symbol, const QString &label, bool render=true)
 takes ownership of symbol More...
 QgsRendererCategoryV2 (const QgsRendererCategoryV2 &cat)
 copy constructor More...
 ~QgsRendererCategoryV2 ()
QString dump () const
QString label () const
QgsRendererCategoryV2operator= (QgsRendererCategoryV2 cat)
bool renderState () const
void setLabel (const QString &label)
void setRenderState (bool render)
void setSymbol (QgsSymbolV2 *s)
void setValue (const QVariant &value)
QgsSymbolV2symbol () const
void toSld (QDomDocument &doc, QDomElement &element, const QgsStringMap &props) const
 Creates a DOM element representing the category in SLD format. More...
QVariant value () const

Protected Member Functions

void swap (QgsRendererCategoryV2 &other)

Protected Attributes

QString mLabel
bool mRender
QScopedPointer< QgsSymbolV2mSymbol
QVariant mValue

Detailed Description

categorized renderer

Definition at line 31 of file qgscategorizedsymbolrendererv2.h.

Constructor & Destructor Documentation

◆ QgsRendererCategoryV2() [1/3]

QgsRendererCategoryV2::QgsRendererCategoryV2 ( )

Definition at line 37 of file qgscategorizedsymbolrendererv2.cpp.

◆ QgsRendererCategoryV2() [2/3]

QgsRendererCategoryV2::QgsRendererCategoryV2 ( const QVariant value,
QgsSymbolV2 symbol,
const QString label,
bool  render = true 

takes ownership of symbol

Definition at line 42 of file qgscategorizedsymbolrendererv2.cpp.

◆ QgsRendererCategoryV2() [3/3]

QgsRendererCategoryV2::QgsRendererCategoryV2 ( const QgsRendererCategoryV2 cat)

copy constructor

Definition at line 50 of file qgscategorizedsymbolrendererv2.cpp.

◆ ~QgsRendererCategoryV2()

QgsRendererCategoryV2::~QgsRendererCategoryV2 ( )

Definition at line 42 of file qgscategorizedsymbolrendererv2.h.

Member Function Documentation

◆ dump()

QString QgsRendererCategoryV2::dump ( ) const

Definition at line 112 of file qgscategorizedsymbolrendererv2.cpp.

◆ label()

QString QgsRendererCategoryV2::label ( ) const

Definition at line 82 of file qgscategorizedsymbolrendererv2.cpp.

◆ operator=()

QgsRendererCategoryV2 & QgsRendererCategoryV2::operator= ( QgsRendererCategoryV2  cat)

Definition at line 59 of file qgscategorizedsymbolrendererv2.cpp.

◆ renderState()

bool QgsRendererCategoryV2::renderState ( ) const

Definition at line 87 of file qgscategorizedsymbolrendererv2.cpp.

◆ setLabel()

void QgsRendererCategoryV2::setLabel ( const QString label)

Definition at line 102 of file qgscategorizedsymbolrendererv2.cpp.

◆ setRenderState()

void QgsRendererCategoryV2::setRenderState ( bool  render)

Definition at line 107 of file qgscategorizedsymbolrendererv2.cpp.

◆ setSymbol()

void QgsRendererCategoryV2::setSymbol ( QgsSymbolV2 s)

Definition at line 97 of file qgscategorizedsymbolrendererv2.cpp.

◆ setValue()

void QgsRendererCategoryV2::setValue ( const QVariant value)

Definition at line 92 of file qgscategorizedsymbolrendererv2.cpp.

◆ swap()

void QgsRendererCategoryV2::swap ( QgsRendererCategoryV2 other)

Definition at line 65 of file qgscategorizedsymbolrendererv2.cpp.

◆ symbol()

QgsSymbolV2 * QgsRendererCategoryV2::symbol ( ) const

Definition at line 77 of file qgscategorizedsymbolrendererv2.cpp.

◆ toSld()

void QgsRendererCategoryV2::toSld ( QDomDocument doc,
QDomElement element,
const QgsStringMap props 
) const

Creates a DOM element representing the category in SLD format.

docDOM document
elementdestination DOM element
propsgraduated renderer properties

Definition at line 117 of file qgscategorizedsymbolrendererv2.cpp.

◆ value()

QVariant QgsRendererCategoryV2::value ( ) const

Definition at line 72 of file qgscategorizedsymbolrendererv2.cpp.

Member Data Documentation

◆ mLabel

QString QgsRendererCategoryV2::mLabel

Definition at line 71 of file qgscategorizedsymbolrendererv2.h.

◆ mRender

bool QgsRendererCategoryV2::mRender

Definition at line 72 of file qgscategorizedsymbolrendererv2.h.

◆ mSymbol

QScopedPointer<QgsSymbolV2> QgsRendererCategoryV2::mSymbol

Definition at line 70 of file qgscategorizedsymbolrendererv2.h.

◆ mValue

QVariant QgsRendererCategoryV2::mValue

Definition at line 69 of file qgscategorizedsymbolrendererv2.h.

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