50 if ( !mExpressions.
contains( expression ) )
54 mExpressions[expression] = expr;
56 return mExpressions[expression];
62 if ( !mExpressions.
contains( expression ) )
66 mExpressions[expression] = expr;
68 return mExpressions[expression];
QSizeF sizePainterUnits(QSizeF size, const QgsDiagramSettings &s, const QgsRenderContext &c)
Calculates a size to match the current settings and rendering context.
Class for parsing and evaluation of expressions (formerly called "search strings").
bool contains(const Key &key) const
Q_DECL_DEPRECATED bool prepare(const QgsFields &fields)
Get the expression ready for evaluation - find out column indexes.
Q_DECL_DEPRECATED QgsExpression * getExpression(const QString &expression, const QgsFields *fields)
#define Q_NOWARN_DEPRECATED_PUSH
Container of fields for a vector layer.
void setAttributes(const QgsAttributes &attrs)
Sets the feature's attributes.
double scaleFactor() const
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
void setPixelSize(int pixelSize)
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
void setWidthF(qreal width)
double mapUnitsPerPixel() const
Return current map units per pixel.
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.
Base class for all diagram types.
#define Q_NOWARN_DEPRECATED_POP
Contains information about the context of a rendering operation.
QFont scaledFont(const QgsDiagramSettings &s, const QgsRenderContext &c)
Calculates a size to match the current settings and rendering context.
virtual Q_DECL_DEPRECATED void renderDiagram(const QgsAttributes &att, QgsRenderContext &c, const QgsDiagramSettings &s, QPointF position)
const QgsMapToPixel & mapToPixel() const
void setPenWidth(QPen &pen, const QgsDiagramSettings &s, const QgsRenderContext &c)
Changes the pen width to match the current settings and rendering context.