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];
   105   double scaledValue = value;
   116     scaledValue = sqrt( scaledValue );
   117     scaledLowerValue = sqrt( scaledLowerValue );
   118     scaledUpperValue = sqrt( scaledUpperValue );
   119     scaledLowerSizeWidth = sqrt( scaledLowerSizeWidth );
   120     scaledLowerSizeHeight = sqrt( scaledLowerSizeHeight );
   121     scaledUpperSizeWidth = sqrt( scaledUpperSizeWidth );
   122     scaledUpperSizeHeight = sqrt( scaledUpperSizeHeight );
   126   double scaledRatio = ( scaledValue - scaledLowerValue ) / ( scaledUpperValue - scaledLowerValue );
 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"). 
 
double minimumSize
Scale diagrams smaller than mMinimumSize to mMinimumSize. 
 
void scale(qreal width, qreal height, Qt::AspectRatioMode mode)
 
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. 
 
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
 
bool qgsDoubleNear(double a, double b, double epsilon=4 *DBL_EPSILON)
Compare two doubles (but allow some difference) 
 
void setPixelSize(int pixelSize)
 
QgsSymbolV2::OutputUnit sizeType
Diagram size unit. 
 
static double convertToPainterUnits(const QgsRenderContext &c, double size, QgsSymbolV2::OutputUnit unit, const QgsMapUnitScale &scale=QgsMapUnitScale())
Converts a size from the specied units to painter units. 
 
void setWidth(qreal width)
 
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
 
The output shall be in map unitx. 
 
void setWidthF(qreal width)
 
QgsMapUnitScale sizeScale
Diagram size unit scale. 
 
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. 
 
QSizeF sizeForValue(double value, const QgsDiagramSettings &s, const QgsDiagramInterpolationSettings &is) const
Returns the scaled size of a diagram for a value, respecting the specified diagram interpolation sett...
 
#define Q_NOWARN_DEPRECATED_POP
 
Additional diagram settings for interpolated size rendering. 
 
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. 
 
const QgsMapToPixel & mapToPixel() const
 
virtual Q_DECL_DEPRECATED void renderDiagram(const QgsAttributes &att, QgsRenderContext &c, const QgsDiagramSettings &s, QPointF position)
 
QgsMapUnitScale lineSizeScale
Line unit scale. 
 
void setPenWidth(QPen &pen, const QgsDiagramSettings &s, const QgsRenderContext &c)
Changes the pen width to match the current settings and rendering context. 
 
double scaleFactor() const
 
Stores the settings for rendering a single diagram. 
 
QgsSymbolV2::OutputUnit lineSizeUnit
Line unit index.