46 if ( sipCpp->diagramName() == QLatin1String(
"Pie" ) )
47 sipType = sipType_QgsPieDiagram;
48 else if ( sipCpp->diagramName() == QLatin1String(
"Histogram" ) )
49 sipType = sipType_QgsHistogramDiagram;
50 else if ( sipCpp->diagramName() == QLatin1String(
"Text" ) )
51 sipType = sipType_QgsTextDiagram;
52 else if ( sipCpp->diagramName() == QLatin1String(
"Stacked" ) )
53 sipType = sipType_QgsStackedBarDiagram;
54 else if ( sipCpp->diagramName() == QLatin1String(
"StackedDiagram" ) )
55 sipType = sipType_QgsStackedDiagram;
148 QMap<QString, QgsExpression *> mExpressions;
Additional diagram settings for interpolated size rendering.
Stores the settings for rendering a single diagram.
virtual QString diagramName() const =0
Gets a descriptive name for this diagram type.
void setPenWidth(QPen &pen, const QgsDiagramSettings &s, const QgsRenderContext &c)
Changes the pen width to match the current settings and rendering context.
QSizeF sizePainterUnits(QSizeF size, const QgsDiagramSettings &s, const QgsRenderContext &c)
Calculates a size to match the current settings and rendering context.
QgsExpression * getExpression(const QString &expression, const QgsExpressionContext &context)
Returns a prepared expression for the specified context.
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 QSizeF diagramSize(const QgsFeature &feature, const QgsRenderContext &c, const QgsDiagramSettings &s, const QgsDiagramInterpolationSettings &interpolationSettings)=0
Returns the size in map units the diagram will use to render. Interpolate size.
QSizeF sizeForValue(double value, const QgsDiagramSettings &s, const QgsDiagramInterpolationSettings &interpolationSettings) const
Returns the scaled size of a diagram for a value, respecting the specified diagram interpolation sett...
QFont scaledFont(const QgsDiagramSettings &s, const QgsRenderContext &c)
Calculates a size to match the current settings and rendering context.
virtual double legendSize(double value, const QgsDiagramSettings &s, const QgsDiagramInterpolationSettings &interpolationSettings) const =0
Returns the size of the legend item for the diagram corresponding to a specified value.
virtual QgsDiagram * clone() const =0
Returns an instance that is equivalent to this one.
virtual void renderDiagram(const QgsFeature &feature, QgsRenderContext &c, const QgsDiagramSettings &s, QPointF position)=0
Draws the diagram at the given position (in pixel coordinates).
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Handles parsing and evaluation of expressions (formerly called "search strings").
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Container of fields for a vector layer.
Contains information about the context of a rendering operation.
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
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
#define SIP_NODEFAULTCTORS