17#ifndef QGSVECTORLAYERPLOTDATAGATHERER_H
18#define QGSVECTORLAYERPLOTDATAGATHERER_H
45 sipType = sipType_QgsVectorLayerXyPlotDataGatherer;
49 sipType = sipType_QgsVectorLayerAbstractPlotDataGatherer;
118 void setSeriesDetails(
const QList<QgsVectorLayerXyPlotDataGatherer::XySeriesDetails> &details );
142 QList<QgsVectorLayerXyPlotDataGatherer::XySeriesDetails> mSeriesDetails;
143 QStringList mPredefinedCategories;
PlotAxisType
Plots axis types.
@ Interval
The axis represents a range of values.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Wrapper for iterator of features from vector data provider or vector layer.
Encapsulates one or more plot series.
virtual bool run()=0
Performs the task's operation.
QgsTask(const QString &description=QString(), QgsTask::Flags flags=AllFlags)
Constructor for QgsTask.
QgsExpressionContext mExpressionContext
void setFeatureIterator(QgsFeatureIterator &iterator)
Sets the feature iterator used to gather data from.
~QgsVectorLayerAbstractPlotDataGatherer() override=default
void setExpressionContext(const QgsExpressionContext &context)
Sets the expression context used when evaluating values being gathered.
QgsVectorLayerAbstractPlotDataGatherer()=default
QgsFeatureIterator mIterator
virtual QgsPlotData data() const =0
Returns the plot data.
An vector layer plot data gatherer class for XY series.
QgsPlotData data() const override
Returns the plot data.
void setPredefinedCategories(const QStringList &categories)
Sets the predefined categories list that will be used to restrict the categories used when gathering ...
void setXAxisType(Qgis::PlotAxisType xAxisType)
Sets the X-axis type that will defined what type of X values to gather.
void setSeriesDetails(const QList< QgsVectorLayerXyPlotDataGatherer::XySeriesDetails > &details)
Sets the series details list that will be used to prepare the data being gathered.
QgsVectorLayerXyPlotDataGatherer(Qgis::PlotAxisType xAxisType=Qgis::PlotAxisType::Interval)
The vector layer XY plot data gatherer constructor.
~QgsVectorLayerXyPlotDataGatherer() override=default
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
XySeriesDetails(const QString &name, const QString &xExpression, const QString &yExpression, const QString &filterExpression=QString())