| QGIS API Documentation
    3.16.0-Hannover (43b64b13f3)
    | 
 
 
 
Go to the documentation of this file.
   18 #include "qgis_core.h" 
   45     if ( sipCpp->diagramName() == QLatin1String( 
"Pie" ) )
 
   46       sipType = sipType_QgsPieDiagram;
 
   47     else if ( sipCpp->diagramName() == QLatin1String( 
"Histogram" ) )
 
   48       sipType = sipType_QgsHistogramDiagram;
 
   49     else if ( sipCpp->diagramName() == QLatin1String( 
"Text" ) )
 
   50       sipType = sipType_QgsTextDiagram;
 
   51     else if ( sipCpp->diagramName() == QLatin1String( 
"Stacked" ) )
 
   52       sipType = sipType_QgsStackedBarDiagram;
 
  152     QMap<QString, QgsExpression *> mExpressions;
 
  156 #endif // QGSDIAGRAM_H 
  
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
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.
Base class for all diagram types.
virtual QSizeF diagramSize(const QgsFeature &feature, const QgsRenderContext &c, const QgsDiagramSettings &s, const QgsDiagramInterpolationSettings &is)=0
Returns the size in map units the diagram will use to render. Interpolate size.
virtual QgsDiagram * clone() const =0
Returns an instance that is equivalent to this one.
Container of fields for a vector layer.
virtual QString diagramName() const =0
Gets a descriptive name for this diagram type.
Contains information about the context of a rendering operation.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Additional diagram settings for interpolated size rendering.
#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
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QgsDiagram()=default
Constructor for QgsDiagram.
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.
Class for parsing and evaluation of expressions (formerly called "search strings").
Stores the settings for rendering a single diagram.