|
QGIS API Documentation
2.0.1-Dufour
|
#include <qgsdiagramrendererv2.h>


Public Member Functions | |
| QgsLinearlyInterpolatedDiagramRenderer () | |
| ~QgsLinearlyInterpolatedDiagramRenderer () | |
| QList< QgsDiagramSettings > | diagramSettings () const |
| Returns list with all diagram settings in the renderer. | |
| void | setDiagramSettings (const QgsDiagramSettings &s) |
| QList< int > | diagramAttributes () const |
| Returns attribute indices needed for diagram rendering. | |
| QString | rendererName () const |
| void | setLowerValue (double val) |
| double | lowerValue () const |
| void | setUpperValue (double val) |
| double | upperValue () const |
| void | setLowerSize (QSizeF s) |
| QSizeF | lowerSize () const |
| void | setUpperSize (QSizeF s) |
| QSizeF | upperSize () const |
| int | classificationAttribute () const |
| void | setClassificationAttribute (int index) |
| 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 QgsAttributes &attributes, const QgsRenderContext &c) |
| Returns size of the diagram for feature f in map units. | |
| void | renderDiagram (const QgsAttributes &att, QgsRenderContext &c, const QPointF &pos) |
| void | setDiagram (QgsDiagram *d) |
| const QgsDiagram * | diagram () const |
Protected Member Functions | |
| bool | diagramSettings (const QgsAttributes &, 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 QgsAttributes &attributes, const QgsRenderContext &c) |
| Returns size of the diagram (in painter units) or an invalid size in case of error. | |
Protected Member Functions inherited from QgsDiagramRendererV2 | |
| void | convertSizeToMapUnits (QSizeF &size, const QgsRenderContext &context) const |
| Converts size from mm to map units. | |
| void | _readXML (const QDomElement &elem, const QgsVectorLayer *layer) |
| void | _writeXML (QDomElement &rendererElem, QDomDocument &doc, const QgsVectorLayer *layer) const |
Private Attributes | |
| QgsDiagramSettings | mSettings |
| QgsDiagramInterpolationSettings | mInterpolationSettings |
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. | |
Protected Attributes inherited from QgsDiagramRendererV2 | |
| QgsDiagram * | mDiagram |
| Reference to the object that does the real diagram rendering. | |
Definition at line 242 of file qgsdiagramrendererv2.h.
| QgsLinearlyInterpolatedDiagramRenderer::QgsLinearlyInterpolatedDiagramRenderer | ( | ) |
Definition at line 403 of file qgsdiagramrendererv2.cpp.
| QgsLinearlyInterpolatedDiagramRenderer::~QgsLinearlyInterpolatedDiagramRenderer | ( | ) |
Definition at line 407 of file qgsdiagramrendererv2.cpp.
|
inline |
Definition at line 269 of file qgsdiagramrendererv2.h.
|
virtual |
Returns attribute indices needed for diagram rendering.
Implements QgsDiagramRendererV2.
Definition at line 425 of file qgsdiagramrendererv2.cpp.
References QgsDiagramSettings::categoryIndices, QgsDiagramInterpolationSettings::classificationAttribute, mInterpolationSettings, and mSettings.
|
virtual |
Returns list with all diagram settings in the renderer.
Implements QgsDiagramRendererV2.
Definition at line 411 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()
| att | attribute map |
| c | render context |
| s | out: diagram settings for the feature |
Implements QgsDiagramRendererV2.
Definition at line 418 of file qgsdiagramrendererv2.cpp.
References diagramSize(), mSettings, and QgsDiagramSettings::size.
|
protectedvirtual |
Returns size of the diagram (in painter units) or an invalid size in case of error.
Implements QgsDiagramRendererV2.
Definition at line 435 of file qgsdiagramrendererv2.cpp.
References QgsDiagramRendererV2::mDiagram, mInterpolationSettings, and mSettings.
Referenced by diagramSettings().
|
inline |
Definition at line 264 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 258 of file qgsdiagramrendererv2.h.
|
virtual |
Implements QgsDiagramRendererV2.
Definition at line 440 of file qgsdiagramrendererv2.cpp.
References QgsDiagramRendererV2::_readXML(), QgsDiagramInterpolationSettings::classificationAttribute, QgsDiagramInterpolationSettings::lowerSize, QgsDiagramInterpolationSettings::lowerValue, mInterpolationSettings, mSettings, QgsDiagramSettings::readXML(), QgsDiagramInterpolationSettings::upperSize, and QgsDiagramInterpolationSettings::upperValue.
|
inlinevirtual |
Implements QgsDiagramRendererV2.
Definition at line 255 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 270 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 251 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 263 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 257 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 266 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 260 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 267 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 261 of file qgsdiagramrendererv2.h.
|
virtual |
Implements QgsDiagramRendererV2.
Definition at line 457 of file qgsdiagramrendererv2.cpp.
References QgsDiagramRendererV2::_writeXML(), QgsDiagramInterpolationSettings::classificationAttribute, QgsDiagramInterpolationSettings::lowerSize, QgsDiagramInterpolationSettings::lowerValue, mInterpolationSettings, mSettings, QgsDiagramInterpolationSettings::upperSize, QgsDiagramInterpolationSettings::upperValue, and QgsDiagramSettings::writeXML().
|
private |
Definition at line 282 of file qgsdiagramrendererv2.h.
Referenced by diagramAttributes(), diagramSize(), readXML(), and writeXML().
|
private |
Definition at line 281 of file qgsdiagramrendererv2.h.
Referenced by diagramAttributes(), diagramSettings(), diagramSize(), readXML(), and writeXML().
1.8.1.2