Quantum GIS API Documentation
1.7.4
|
Renders the diagrams for all features with the same settings. More...
#include <qgsdiagramrendererv2.h>
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< QgsDiagramSettings > | diagramSettings () 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 |
Renders the diagrams for all features with the same settings.
Definition at line 148 of file qgsdiagramrendererv2.h.
Definition at line 223 of file qgsdiagramrendererv2.cpp.
Definition at line 227 of file qgsdiagramrendererv2.cpp.
QList<int> QgsSingleCategoryDiagramRenderer::diagramAttributes | ( | ) | const [inline, virtual] |
Returns attribute indices needed for diagram rendering.
Implements QgsDiagramRendererV2.
Definition at line 156 of file qgsdiagramrendererv2.h.
QList< QgsDiagramSettings > QgsSingleCategoryDiagramRenderer::diagramSettings | ( | ) | const [virtual] |
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()
att | attribute map |
c | render context |
s | out: 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] |
Implements QgsDiagramRendererV2.
Definition at line 244 of file qgsdiagramrendererv2.cpp.
References QgsDiagramRendererV2::_readXML(), mSettings, and QgsDiagramSettings::readXML().
QString QgsSingleCategoryDiagramRenderer::rendererName | ( | ) | const [inline, virtual] |
Implements QgsDiagramRendererV2.
Definition at line 154 of file qgsdiagramrendererv2.h.
void QgsSingleCategoryDiagramRenderer::setDiagramSettings | ( | const QgsDiagramSettings & | s | ) | [inline] |
Definition at line 158 of file qgsdiagramrendererv2.h.
void QgsSingleCategoryDiagramRenderer::writeXML | ( | QDomElement & | layerElem, |
QDomDocument & | doc | ||
) | const [virtual] |
Implements QgsDiagramRendererV2.
Definition at line 256 of file qgsdiagramrendererv2.cpp.
References QgsDiagramRendererV2::_writeXML(), mSettings, and QgsDiagramSettings::writeXML().
Definition at line 171 of file qgsdiagramrendererv2.h.
Referenced by diagramSettings(), readXML(), and writeXML().