|
QGIS API Documentation
2.12.0-Lyon
|
Returns diagram settings for a feature. More...
#include <qgsdiagramrendererv2.h>

Public Member Functions | |
| QgsDiagramRendererV2 () | |
| virtual | ~QgsDiagramRendererV2 () |
| virtual QgsDiagramRendererV2 * | clone () const =0 |
| Returns new instance that is equivalent to this one. More... | |
| QgsDiagram * | diagram () const |
| virtual QList< QString > | diagramAttributes () const =0 |
| Returns attribute indices needed for diagram rendering. More... | |
| virtual QList< QgsDiagramSettings > | diagramSettings () const =0 |
| Returns list with all diagram settings in the renderer. More... | |
| virtual QList< QgsLayerTreeModelLegendNode * > | legendItems (QgsLayerTreeLayer *nodeLayer) const |
| Returns list of legend nodes for the diagram. More... | |
| virtual void | readXML (const QDomElement &elem, const QgsVectorLayer *layer)=0 |
| void | renderDiagram (const QgsFeature &feature, QgsRenderContext &c, const QPointF &pos) |
| virtual QString | rendererName () const =0 |
| void | setDiagram (QgsDiagram *d) |
| virtual QSizeF | sizeMapUnits (const QgsFeature &feature, const QgsRenderContext &c) |
| Returns size of the diagram for a feature in map units. More... | |
| virtual void | writeXML (QDomElement &layerElem, QDomDocument &doc, const QgsVectorLayer *layer) const =0 |
Protected Member Functions | |
| QgsDiagramRendererV2 (const QgsDiagramRendererV2 &other) | |
| void | _readXML (const QDomElement &elem, const QgsVectorLayer *layer) |
| void | _writeXML (QDomElement &rendererElem, QDomDocument &doc, const QgsVectorLayer *layer) const |
| void | convertSizeToMapUnits (QSizeF &size, const QgsRenderContext &context) const |
| Converts size from mm to map units. More... | |
| virtual bool | diagramSettings (const QgsFeature &feature, const QgsRenderContext &c, QgsDiagramSettings &s)=0 |
| Returns diagram settings for a feature (or false if the diagram for the feature is not to be rendered). More... | |
| virtual QSizeF | diagramSize (const QgsFeature &features, const QgsRenderContext &c)=0 |
| Returns size of the diagram (in painter units) or an invalid size in case of error. More... | |
Static Protected Member Functions | |
| static int | dpiPaintDevice (const QPainter *) |
| Returns the paint device dpi (or -1 in case of error. More... | |
Protected Attributes | |
| QgsDiagram * | mDiagram |
| Reference to the object that does the real diagram rendering. More... | |
Returns diagram settings for a feature.
Definition at line 179 of file qgsdiagramrendererv2.h.
| QgsDiagramRendererV2::QgsDiagramRendererV2 | ( | ) |
Definition at line 297 of file qgsdiagramrendererv2.cpp.
|
virtual |
Definition at line 302 of file qgsdiagramrendererv2.cpp.
|
protected |
Definition at line 313 of file qgsdiagramrendererv2.cpp.
|
protected |
Definition at line 375 of file qgsdiagramrendererv2.cpp.
|
protected |
Definition at line 399 of file qgsdiagramrendererv2.cpp.
|
pure virtual |
Returns new instance that is equivalent to this one.
Implemented in QgsLinearlyInterpolatedDiagramRenderer, and QgsSingleCategoryDiagramRenderer.
|
protected |
Converts size from mm to map units.
Definition at line 350 of file qgsdiagramrendererv2.cpp.
|
inline |
Definition at line 201 of file qgsdiagramrendererv2.h.
Returns attribute indices needed for diagram rendering.
Implemented in QgsLinearlyInterpolatedDiagramRenderer, and QgsSingleCategoryDiagramRenderer.
|
pure virtual |
Returns list with all diagram settings in the renderer.
Implemented in QgsLinearlyInterpolatedDiagramRenderer, and QgsSingleCategoryDiagramRenderer.
|
protectedpure virtual |
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 |
Implemented in QgsLinearlyInterpolatedDiagramRenderer, and QgsSingleCategoryDiagramRenderer.
|
protectedpure virtual |
Returns size of the diagram (in painter units) or an invalid size in case of error.
Implemented in QgsLinearlyInterpolatedDiagramRenderer, and QgsSingleCategoryDiagramRenderer.
|
staticprotected |
Returns the paint device dpi (or -1 in case of error.
Definition at line 362 of file qgsdiagramrendererv2.cpp.
|
virtual |
Returns list of legend nodes for the diagram.
Reimplemented in QgsLinearlyInterpolatedDiagramRenderer, and QgsSingleCategoryDiagramRenderer.
Definition at line 561 of file qgsdiagramrendererv2.cpp.
|
pure virtual |
Implemented in QgsLinearlyInterpolatedDiagramRenderer, and QgsSingleCategoryDiagramRenderer.
| void QgsDiagramRendererV2::renderDiagram | ( | const QgsFeature & | feature, |
| QgsRenderContext & | c, | ||
| const QPointF & | pos | ||
| ) |
Definition at line 318 of file qgsdiagramrendererv2.cpp.
|
pure virtual |
Implemented in QgsLinearlyInterpolatedDiagramRenderer, and QgsSingleCategoryDiagramRenderer.
| void QgsDiagramRendererV2::setDiagram | ( | QgsDiagram * | d | ) |
Definition at line 307 of file qgsdiagramrendererv2.cpp.
|
virtual |
Returns size of the diagram for a feature in map units.
Returns an invalid QSizeF in case of error
Definition at line 334 of file qgsdiagramrendererv2.cpp.
|
pure virtual |
Implemented in QgsLinearlyInterpolatedDiagramRenderer, and QgsSingleCategoryDiagramRenderer.
|
protected |
Reference to the object that does the real diagram rendering.
Definition at line 239 of file qgsdiagramrendererv2.h.
1.8.9.1