18#ifndef QGSPROCESSINGPROVIDER_H
19#define QGSPROCESSINGPROVIDER_H
147 virtual QStringList supportedOutputRasterLayerExtensions()
const;
158 virtual QStringList supportedOutputVectorLayerExtensions()
const;
171 virtual QStringList supportedOutputPointCloudLayerExtensions()
const;
186 virtual QStringList supportedOutputVectorTileLayerExtensions()
const;
202 virtual QStringList supportedOutputTableExtensions()
const;
229 virtual QString defaultVectorFileExtension(
bool hasGeometry =
true )
const;
244 virtual QString defaultRasterFileExtension()
const;
261 virtual QString defaultPointCloudFileExtension()
const;
277 virtual QString defaultVectorTileFileExtension()
const;
292 virtual bool supportsNonFileBasedOutput()
const;
314 void refreshAlgorithms();
320 QList< const QgsProcessingAlgorithm * > algorithms()
const;
353 QMap< QString, const QgsProcessingAlgorithm * > mAlgorithms;
Provides global constants and enumerations for use throughout the application.
Abstract base class for processing algorithms.
Contains information about the context in which a processing algorithm is executed.
Base class for all parameter definitions which represent file or layer destinations,...
virtual QIcon icon() const
Returns an icon for the provider.
QgsProcessingProvider(const QgsProcessingProvider &other)=delete
virtual QString helpId() const
Returns the provider help id string, used for creating QgsHelp urls for algorithms belong to this pro...
const QgsProcessingAlgorithm * algorithm(const QString &name) const
Returns the matching algorithm by name, or nullptr if no matching algorithm is contained by this prov...
virtual Qgis::ProcessingProviderFlags flags() const
Returns the flags indicating how and when the provider operates and should be exposed to users.
virtual QString versionInfo() const
Returns a version information string for the provider, or an empty string if this is not applicable (...
virtual QString name() const =0
Returns the provider name, which is used to describe the provider within the GUI.
QgsProcessingProvider(QObject *parent=nullptr)
Constructor for QgsProcessingProvider.
virtual bool isActive() const
Returns true if the provider is active and able to run algorithms.
void algorithmsLoaded()
Emitted when the provider has loaded (or refreshed) its list of available algorithms.
virtual QString svgIconPath() const
Returns a path to an SVG version of the provider's icon.
virtual void unload()
Unloads the provider.
virtual bool load()
Loads the provider.
virtual void loadAlgorithms()=0
Loads all algorithms belonging to this provider.
virtual bool canBeActivated() const
Returns true if the provider can be activated, or false if it cannot be activated (e....
void refreshAlgorithms()
Refreshes the algorithms available from the provider, causing it to re-populate with all associated a...
virtual QString longName() const
Returns the longer version of the provider name, which can include extra details such as version numb...
virtual QString warningMessage() const
Returns an optional warning message to show users when running algorithms from this provider.
QgsProcessingProvider & operator=(const QgsProcessingProvider &other)=delete
bool addAlgorithm(QgsProcessingAlgorithm *algorithm)
Adds an algorithm to the provider.
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 allowing algorithms to be written in pure substantial changes are required in order to port existing x Processing algorithms for QGIS x The most significant changes are outlined not GeoAlgorithm For algorithms which operate on features one by consider subclassing the QgsProcessingFeatureBasedAlgorithm class This class allows much of the boilerplate code for looping over features from a vector layer to be bypassed and instead requires implementation of a processFeature method Ensure that your algorithm(or algorithm 's parent class) implements the new pure virtual createInstance(self) call