|
QGIS API Documentation
2.4.0-Chugiak
|
Renders the diagrams for all features with the same settings. More...
#include <qgsdiagramrendererv2.h>


Public Member Functions | |
| QgsSingleCategoryDiagramRenderer () | |
| ~QgsSingleCategoryDiagramRenderer () | |
| QgsDiagramRendererV2 * | clone () const |
| Returns new instance that is equivalent to this one. More... | |
| QString | rendererName () const |
| QList< QString > | diagramAttributes () const |
| Returns attribute indices needed for diagram rendering. More... | |
| void | setDiagramSettings (const QgsDiagramSettings &s) |
| QList< QgsDiagramSettings > | diagramSettings () const |
| Returns list with all diagram settings in the renderer. More... | |
| void | readXML (const QDomElement &elem, const QgsVectorLayer *layer) |
| void | writeXML (QDomElement &layerElem, QDomDocument &doc, const QgsVectorLayer *layer) const |
Public Member Functions inherited from QgsDiagramRendererV2 | |
| QgsDiagramRendererV2 () | |
| virtual | ~QgsDiagramRendererV2 () |
| virtual QSizeF | sizeMapUnits (const QgsFeature &feature, const QgsRenderContext &c) |
| Returns size of the diagram for a feature in map units. More... | |
| void | renderDiagram (const QgsFeature &feature, QgsRenderContext &c, const QPointF &pos) |
| void | setDiagram (QgsDiagram *d) |
| QgsDiagram * | diagram () const |
Protected Member Functions | |
| bool | diagramSettings (const QgsFeature &feature, const QgsRenderContext &c, QgsDiagramSettings &s) |
| Returns diagram settings for a feature (or false if the diagram for the feature is not to be rendered). More... | |
| QSizeF | diagramSize (const QgsFeature &, const QgsRenderContext &c) |
| Returns size of the diagram (in painter units) or an invalid size in case of error. More... | |
Protected Member Functions inherited from QgsDiagramRendererV2 | |
| QgsDiagramRendererV2 (const QgsDiagramRendererV2 &other) | |
| void | convertSizeToMapUnits (QSizeF &size, const QgsRenderContext &context) const |
| Converts size from mm to map units. More... | |
| void | _readXML (const QDomElement &elem, const QgsVectorLayer *layer) |
| void | _writeXML (QDomElement &rendererElem, QDomDocument &doc, const QgsVectorLayer *layer) const |
Private Attributes | |
| QgsDiagramSettings | mSettings |
Additional Inherited Members | |
Static Protected Member Functions inherited from QgsDiagramRendererV2 | |
| static int | dpiPaintDevice (const QPainter *) |
| Returns the paint device dpi (or -1 in case of error. More... | |
Protected Attributes inherited from QgsDiagramRendererV2 | |
| QgsDiagram * | mDiagram |
| Reference to the object that does the real diagram rendering. More... | |
Renders the diagrams for all features with the same settings.
Definition at line 213 of file qgsdiagramrendererv2.h.
| QgsSingleCategoryDiagramRenderer::QgsSingleCategoryDiagramRenderer | ( | ) |
Definition at line 385 of file qgsdiagramrendererv2.cpp.
Referenced by clone().
| QgsSingleCategoryDiagramRenderer::~QgsSingleCategoryDiagramRenderer | ( | ) |
Definition at line 389 of file qgsdiagramrendererv2.cpp.
|
virtual |
Returns new instance that is equivalent to this one.
Implements QgsDiagramRendererV2.
Definition at line 393 of file qgsdiagramrendererv2.cpp.
References QgsSingleCategoryDiagramRenderer().
|
inlinevirtual |
Returns attribute indices needed for diagram rendering.
Implements QgsDiagramRendererV2.
Definition at line 223 of file qgsdiagramrendererv2.h.
|
virtual |
Returns list with all diagram settings in the renderer.
Implements QgsDiagramRendererV2.
Definition at line 410 of file qgsdiagramrendererv2.cpp.
References mSettings.
|
protectedvirtual |
Returns diagram settings for a feature (or false if the diagram for the feature is not to be rendered).
Used internally within renderDiagram()
| feature | the feature |
| c | render context |
| s | out: diagram settings for the feature |
Implements QgsDiagramRendererV2.
Definition at line 398 of file qgsdiagramrendererv2.cpp.
References mSettings.
|
protectedvirtual |
Returns size of the diagram (in painter units) or an invalid size in case of error.
Implements QgsDiagramRendererV2.
Definition at line 405 of file qgsdiagramrendererv2.cpp.
References QgsFeature::attributes(), QgsDiagramRendererV2::mDiagram, and mSettings.
|
virtual |
Implements QgsDiagramRendererV2.
Definition at line 417 of file qgsdiagramrendererv2.cpp.
References QgsDiagramRendererV2::_readXML(), mSettings, and QgsDiagramSettings::readXML().
|
inlinevirtual |
Implements QgsDiagramRendererV2.
Definition at line 221 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 225 of file qgsdiagramrendererv2.h.
|
virtual |
Implements QgsDiagramRendererV2.
Definition at line 429 of file qgsdiagramrendererv2.cpp.
References QgsDiagramRendererV2::_writeXML(), mSettings, and QgsDiagramSettings::writeXML().
|
private |
Definition at line 238 of file qgsdiagramrendererv2.h.
Referenced by diagramSettings(), diagramSize(), readXML(), and writeXML().
1.8.7