QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
16 #ifndef QGSHISTOGRAMDIAGRAM_H
17 #define QGSHISTOGRAMDIAGRAM_H
19 #define DIAGRAM_NAME_HISTOGRAM "Histogram"
21 #include "qgis_core.h"
54 QBrush mCategoryBrush;
60 #endif // QGSHISTOGRAMDIAGRAM_H
virtual void renderDiagram(const QgsFeature &feature, QgsRenderContext &c, const QgsDiagramSettings &s, QPointF position)=0
Draws the diagram at the given position (in pixel coordinates)
virtual QSizeF diagramSize(const QgsAttributes &attributes, const QgsRenderContext &c, const QgsDiagramSettings &s)=0
Returns the size in map units the diagram will use to render.
virtual QgsDiagram * clone() const =0
Returns an instance that is equivalent to this one.
virtual QString diagramName() const =0
Gets a descriptive name for this diagram type.
#define SIP_NODEFAULTCTORS
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into c
virtual double legendSize(double value, const QgsDiagramSettings &s, const QgsDiagramInterpolationSettings &is) const =0
Returns the size of the legend item for the diagram corresponding to a specified value.
Stores the settings for rendering a single diagram.