Quantum GIS API Documentation  1.7.4
Public Member Functions | Protected Member Functions | Private Attributes
QgsSingleCategoryDiagramRenderer Class Reference

Renders the diagrams for all features with the same settings. More...

#include <qgsdiagramrendererv2.h>

Inheritance diagram for QgsSingleCategoryDiagramRenderer:
Inheritance graph
[legend]
Collaboration diagram for QgsSingleCategoryDiagramRenderer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 QgsSingleCategoryDiagramRenderer ()
 ~QgsSingleCategoryDiagramRenderer ()
QString rendererName () const
QList< int > diagramAttributes () const
 Returns attribute indices needed for diagram rendering.
void setDiagramSettings (const QgsDiagramSettings &s)
QList< QgsDiagramSettingsdiagramSettings () const
 Returns list with all diagram settings in the renderer.
void readXML (const QDomElement &elem)
void writeXML (QDomElement &layerElem, QDomDocument &doc) const

Protected Member Functions

bool diagramSettings (const QgsAttributeMap &, const QgsRenderContext &c, QgsDiagramSettings &s)
 Returns diagram settings for a feature (or false if the diagram for the feature is not to be rendered).
QSizeF diagramSize (const QgsAttributeMap &attributes, const QgsRenderContext &c)
 Returns size of the diagram (in painter units) or an invalid size in case of error.

Private Attributes

QgsDiagramSettings mSettings

Detailed Description

Renders the diagrams for all features with the same settings.

Definition at line 148 of file qgsdiagramrendererv2.h.


Constructor & Destructor Documentation

Definition at line 223 of file qgsdiagramrendererv2.cpp.

Definition at line 227 of file qgsdiagramrendererv2.cpp.


Member Function Documentation

QList<int> QgsSingleCategoryDiagramRenderer::diagramAttributes ( ) const [inline, virtual]

Returns attribute indices needed for diagram rendering.

Implements QgsDiagramRendererV2.

Definition at line 156 of file qgsdiagramrendererv2.h.

Returns list with all diagram settings in the renderer.

Implements QgsDiagramRendererV2.

Definition at line 237 of file qgsdiagramrendererv2.cpp.

References mSettings.

bool QgsSingleCategoryDiagramRenderer::diagramSettings ( const QgsAttributeMap att,
const QgsRenderContext c,
QgsDiagramSettings s 
) [protected, virtual]

Returns diagram settings for a feature (or false if the diagram for the feature is not to be rendered).

Used internally within renderDiagram()

Parameters:
attattribute map
crender context
sout: diagram settings for the feature

Implements QgsDiagramRendererV2.

Definition at line 231 of file qgsdiagramrendererv2.cpp.

References mSettings.

QSizeF QgsSingleCategoryDiagramRenderer::diagramSize ( const QgsAttributeMap attributes,
const QgsRenderContext c 
) [inline, protected, virtual]

Returns size of the diagram (in painter units) or an invalid size in case of error.

Implements QgsDiagramRendererV2.

Definition at line 168 of file qgsdiagramrendererv2.h.

void QgsSingleCategoryDiagramRenderer::readXML ( const QDomElement &  elem) [virtual]
QString QgsSingleCategoryDiagramRenderer::rendererName ( ) const [inline, virtual]

Implements QgsDiagramRendererV2.

Definition at line 154 of file qgsdiagramrendererv2.h.

Definition at line 158 of file qgsdiagramrendererv2.h.

void QgsSingleCategoryDiagramRenderer::writeXML ( QDomElement &  layerElem,
QDomDocument &  doc 
) const [virtual]

Member Data Documentation

Definition at line 171 of file qgsdiagramrendererv2.h.

Referenced by diagramSettings(), readXML(), and writeXML().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines