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

#include <qgscategorizedsymbolrendererv2.h>

Public Member Functions

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

Protected Member Functions

void swap (QgsRendererCategoryV2 &other)

Protected Attributes

QVariant mValue
QScopedPointer< QgsSymbolV2mSymbol
QString mLabel
bool mRender

Detailed Description

Definition at line 29 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,
bool  render = true 

takes ownership of symbol

Definition at line 35 of file qgscategorizedsymbolrendererv2.cpp.

QgsRendererCategoryV2::QgsRendererCategoryV2 ( const QgsRendererCategoryV2 cat)

copy constructor

Definition at line 43 of file qgscategorizedsymbolrendererv2.cpp.

Member Function Documentation

QString QgsRendererCategoryV2::dump ( ) const

Definition at line 105 of file qgscategorizedsymbolrendererv2.cpp.

References mLabel, mRender, mSymbol, and mValue.

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

Definition at line 52 of file qgscategorizedsymbolrendererv2.cpp.

References swap().

bool QgsRendererCategoryV2::renderState ( ) const
void QgsRendererCategoryV2::setLabel ( const QString &  label)

Definition at line 95 of file qgscategorizedsymbolrendererv2.cpp.

References label(), and mLabel.

void QgsRendererCategoryV2::setRenderState ( bool  render)

Definition at line 100 of file qgscategorizedsymbolrendererv2.cpp.

References mRender.

void QgsRendererCategoryV2::setSymbol ( QgsSymbolV2 s)

Definition at line 90 of file qgscategorizedsymbolrendererv2.cpp.

References mSymbol.

void QgsRendererCategoryV2::setValue ( const QVariant &  value)

Definition at line 85 of file qgscategorizedsymbolrendererv2.cpp.

References mValue, and value().

void QgsRendererCategoryV2::swap ( QgsRendererCategoryV2 other)

Definition at line 58 of file qgscategorizedsymbolrendererv2.cpp.

References mLabel, mSymbol, and mValue.

Referenced by operator=().

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 62 of file qgscategorizedsymbolrendererv2.h.

Referenced by dump(), label(), setLabel(), swap(), and toSld().

bool QgsRendererCategoryV2::mRender

Definition at line 63 of file qgscategorizedsymbolrendererv2.h.

Referenced by dump(), renderState(), and setRenderState().

QScopedPointer<QgsSymbolV2> QgsRendererCategoryV2::mSymbol

Definition at line 61 of file qgscategorizedsymbolrendererv2.h.

Referenced by dump(), setSymbol(), swap(), symbol(), and toSld().

QVariant QgsRendererCategoryV2::mValue

Definition at line 60 of file qgscategorizedsymbolrendererv2.h.

Referenced by dump(), setValue(), swap(), toSld(), and value().

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