QGIS API Documentation
2.8.2-Wien
|
#include <qgsdiagramrendererv2.h>
Public Member Functions | |
QgsLinearlyInterpolatedDiagramRenderer () | |
~QgsLinearlyInterpolatedDiagramRenderer () | |
int | classificationAttribute () const |
QString | classificationAttributeExpression () const |
bool | classificationAttributeIsExpression () const |
QgsDiagramRendererV2 * | clone () const override |
Returns new instance that is equivalent to this one. | |
QList< QString > | diagramAttributes () const override |
Returns attribute indices needed for diagram rendering. | |
QList< QgsDiagramSettings > | diagramSettings () const override |
Returns list with all diagram settings in the renderer. | |
QSizeF | lowerSize () const |
double | lowerValue () const |
void | readXML (const QDomElement &elem, const QgsVectorLayer *layer) override |
QString | rendererName () const override |
void | setClassificationAttribute (int index) |
void | setClassificationAttributeExpression (QString expression) |
void | setClassificationAttributeIsExpression (bool isExpression) |
void | setDiagramSettings (const QgsDiagramSettings &s) |
void | setLowerSize (QSizeF s) |
void | setLowerValue (double val) |
void | setUpperSize (QSizeF s) |
void | setUpperValue (double val) |
QSizeF | upperSize () const |
double | upperValue () const |
void | writeXML (QDomElement &layerElem, QDomDocument &doc, const QgsVectorLayer *layer) const override |
Public Member Functions inherited from QgsDiagramRendererV2 | |
QgsDiagramRendererV2 () | |
virtual | ~QgsDiagramRendererV2 () |
QgsDiagram * | diagram () const |
void | renderDiagram (const QgsFeature &feature, QgsRenderContext &c, const QPointF &pos) |
void | setDiagram (QgsDiagram *d) |
virtual QSizeF | sizeMapUnits (const QgsFeature &feature, const QgsRenderContext &c) |
Returns size of the diagram for a feature in map units. |
Protected Member Functions | |
bool | diagramSettings (const QgsFeature &feature, const QgsRenderContext &c, QgsDiagramSettings &s) override |
Returns diagram settings for a feature (or false if the diagram for the feature is not to be rendered). | |
QSizeF | diagramSize (const QgsFeature &, const QgsRenderContext &c) override |
Returns size of the diagram (in painter units) or an invalid size in case of error. | |
Protected Member Functions inherited from QgsDiagramRendererV2 | |
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. |
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 252 of file qgsdiagramrendererv2.h.
QgsLinearlyInterpolatedDiagramRenderer::QgsLinearlyInterpolatedDiagramRenderer | ( | ) |
Definition at line 438 of file qgsdiagramrendererv2.cpp.
QgsLinearlyInterpolatedDiagramRenderer::~QgsLinearlyInterpolatedDiagramRenderer | ( | ) |
Definition at line 443 of file qgsdiagramrendererv2.cpp.
|
inline |
Definition at line 281 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 284 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 287 of file qgsdiagramrendererv2.h.
|
overridevirtual |
Returns new instance that is equivalent to this one.
Implements QgsDiagramRendererV2.
Definition at line 447 of file qgsdiagramrendererv2.cpp.
|
overridevirtual |
Returns attribute indices needed for diagram rendering.
Implements QgsDiagramRendererV2.
Definition at line 466 of file qgsdiagramrendererv2.cpp.
|
overridevirtual |
Returns list with all diagram settings in the renderer.
Implements QgsDiagramRendererV2.
Definition at line 452 of file qgsdiagramrendererv2.cpp.
|
overrideprotectedvirtual |
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 459 of file qgsdiagramrendererv2.cpp.
|
overrideprotectedvirtual |
Returns size of the diagram (in painter units) or an invalid size in case of error.
Implements QgsDiagramRendererV2.
Definition at line 471 of file qgsdiagramrendererv2.cpp.
|
inline |
Definition at line 276 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 270 of file qgsdiagramrendererv2.h.
|
overridevirtual |
Implements QgsDiagramRendererV2.
Definition at line 476 of file qgsdiagramrendererv2.cpp.
|
inlineoverridevirtual |
Implements QgsDiagramRendererV2.
Definition at line 267 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 282 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 285 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 288 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 263 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 275 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 269 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 278 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 272 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 279 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 273 of file qgsdiagramrendererv2.h.
|
overridevirtual |
Implements QgsDiagramRendererV2.
Definition at line 501 of file qgsdiagramrendererv2.cpp.