37 newPos += QPointF( size.width() + spacing, 0 );
41 newPos -= QPointF( 0, size.height() + spacing );
69 Q_UNUSED( attributes )
72 return QSizeF( 0, 0 );
Additional diagram settings for interpolated size rendering.
Stores the settings for rendering a single diagram.
StackedDiagramMode stackedDiagramMode
Qgis::RenderUnit stackedDiagramSpacingUnit() const
Returns the units for the spacing between subdiagrams in a stacked diagram.
const QgsMapUnitScale & stackedDiagramSpacingMapUnitScale() const
Returns the map unit scale for the spacing between subdiagrams in a stacked diagram.
double stackedDiagramSpacing() const
Returns the spacing between subdiagrams in a stacked diagram.
QSizeF sizePainterUnits(QSizeF size, const QgsDiagramSettings &s, const QgsRenderContext &c)
Calculates a size to match the current settings and rendering context.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Contains information about the context of a rendering operation.
A diagram composed of several subdiagrams, located side by side.
static const QString DIAGRAM_NAME_STACKED
QgsStackedDiagram * clone() const override
Returns an instance that is equivalent to this one.
void subDiagramPosition(QPointF &newPos, const QgsRenderContext &c, const QgsDiagramSettings &s, const QgsDiagramSettings &subSettings)
Calculates the position for the next subdiagram, updating the newPos object.
QSizeF diagramSize(const QgsAttributes &attributes, const QgsRenderContext &c, const QgsDiagramSettings &s) override
Returns the size in map units the diagram will use to render.
void renderDiagram(const QgsFeature &feature, QgsRenderContext &c, const QgsDiagramSettings &s, QPointF position) override
Draws the diagram at the given position (in pixel coordinates)
QString diagramName() const override
Gets a descriptive name for this diagram type.
double legendSize(double value, const QgsDiagramSettings &s, const QgsDiagramInterpolationSettings &is) const override
Returns the size of the legend item for the diagram corresponding to a specified value.
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