Class: QgsVectorLayerAbstractPlotDataGatherer

An abstract vector layer plot data gatherer base class.

Added in version 4.0.

Note

This is an abstract class, with methods which must be implemented by a subclass.

The following methods must be implemented: data(), QgsTask.run()

Class Hierarchy

Inheritance diagram of qgis.core.QgsVectorLayerAbstractPlotDataGatherer

Base classes

QgsTask

Abstract base class for long running background tasks.

QObject

Subclasses

QgsVectorLayerXyPlotDataGatherer

An vector layer plot data gatherer class for XY series.

Abstract Methods

data

Returns the plot data.

Methods

setExpressionContext

Sets the expression context used when evaluating values being gathered.

setFeatureIterator

Sets the feature iterator used to gather data from.

class qgis.core.QgsVectorLayerAbstractPlotDataGatherer[source]

Bases: QgsTask

abstract data(self) QgsPlotData[source]

Returns the plot data.

Return type:

QgsPlotData

setExpressionContext(self, context: QgsExpressionContext)[source]

Sets the expression context used when evaluating values being gathered.

Parameters:

context (QgsExpressionContext)

setFeatureIterator(self, iterator: QgsFeatureIterator)[source]

Sets the feature iterator used to gather data from.

Parameters:

iterator (QgsFeatureIterator)