Registry for various processing components, including providers, algorithms and various parameters and outputs.
More...
#include <qgsprocessingregistry.h>
Registry for various processing components, including providers, algorithms and various parameters and outputs.
QgsProcessingRegistry is not usually directly created, but rather accessed through QgsApplication::processingRegistry().
- Since
- QGIS 3.0
Definition at line 39 of file qgsprocessingregistry.h.
◆ QgsProcessingRegistry() [1/2]
QgsProcessingRegistry::QgsProcessingRegistry |
( |
QObject * |
parent = nullptr | ) |
|
◆ ~QgsProcessingRegistry()
QgsProcessingRegistry::~QgsProcessingRegistry |
( |
| ) |
|
|
override |
◆ QgsProcessingRegistry() [2/2]
Registry cannot be copied.
◆ addAlgorithmAlias()
void QgsProcessingRegistry::addAlgorithmAlias |
( |
const QString & |
aliasId, |
|
|
const QString & |
actualId |
|
) |
| |
Adds a new alias to an existing algorithm.
This allows algorithms to be referred to by a different provider ID and algorithm name to their actual underlying provider and algorithm name. It provides a mechanism to allow algorithms to be moved between providers without breaking existing scripts or plugins.
The aliasId argument specifies the "fake" algorithm id (eg "fake_provider:fake_alg") by which the algorithm can be referred to, and the actualId argument specifies the real algorithm ID for the algorithm.
- Since
- QGIS 3.10
Definition at line 196 of file qgsprocessingregistry.cpp.
◆ addParameterType()
◆ addProvider()
Add a processing provider to the registry.
Ownership of the provider is transferred to the registry, and the provider's parent will be set to the registry. Returns false
if the provider could not be added (eg if a provider with a duplicate ID already exists in the registry). Adding a provider to the registry automatically triggers the providers QgsProcessingProvider::load() method to populate the provider with algorithms.
- See also
- removeProvider()
Definition at line 97 of file qgsprocessingregistry.cpp.
◆ algorithmById()
◆ algorithms()
◆ createAlgorithmById()
QgsProcessingAlgorithm * QgsProcessingRegistry::createAlgorithmById |
( |
const QString & |
id, |
|
|
const QVariantMap & |
configuration = QVariantMap() |
|
) |
| const |
Creates a new instance of an algorithm by its ID.
If no matching algorithm is found, nullptr
is returned. Callers take responsibility for deleting the returned object.
The configuration argument allows passing of a map of configuration settings to the algorithm, allowing it to dynamically adjust its initialized parameters and outputs according to this configuration. This is generally used only for algorithms in a model, allowing them to adjust their behavior at run time according to some user configuration.
- See also
- algorithms()
-
algorithmById()
Definition at line 186 of file qgsprocessingregistry.cpp.
◆ operator=()
Registry cannot be copied.
◆ parameterType()
◆ parameterTypeAdded
Emitted when a new parameter type has been added to the registry.
- Since
- QGIS 3.2
◆ parameterTypeRemoved
Emitted when a parameter type has been removed from the registry and is about to be deleted.
- Since
- QGIS 3.2
◆ parameterTypes()
◆ providerAdded
void QgsProcessingRegistry::providerAdded |
( |
const QString & |
id | ) |
|
|
signal |
Emitted when a provider has been added to the registry.
◆ providerById()
◆ providerRemoved
void QgsProcessingRegistry::providerRemoved |
( |
const QString & |
id | ) |
|
|
signal |
Emitted when a provider is removed from the registry.
◆ providers()
◆ removeParameterType()
◆ removeProvider() [1/2]
bool QgsProcessingRegistry::removeProvider |
( |
const QString & |
providerId | ) |
|
Removes a provider implementation from the registry (the provider object is deleted).
Returns false
if the provider could not be removed (eg provider does not exist in the registry).
- See also
- addProvider()
Definition at line 139 of file qgsprocessingregistry.cpp.
◆ removeProvider() [2/2]
Removes a provider implementation from the registry (the provider object is deleted).
Returns false
if the provider could not be removed (eg provider does not exist in the registry).
- See also
- addProvider()
Definition at line 122 of file qgsprocessingregistry.cpp.
The documentation for this class was generated from the following files: