QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
This class manages all known geometry check factories. More...
#include <qgsgeometrycheckregistry.h>
Public Member Functions | |
QgsGeometryCheckRegistry ()=default | |
Constructor for QgsGeometryCheckRegistry. More... | |
~QgsGeometryCheckRegistry () | |
Destructor. More... | |
QgsGeometryCheck * | geometryCheck (const QString &checkId, QgsGeometryCheckContext *context, const QVariantMap &geometryCheckConfig) |
Create a new geometryCheck of type checkId Pass the context and geometryCheckConfiguration to the newly created check. More... | |
QList< QgsGeometryCheckFactory * > | geometryCheckFactories (QgsVectorLayer *layer, QgsGeometryCheck::CheckType type, QgsGeometryCheck::Flags flags=QgsGeometryCheck::Flags()) const |
Returns all geometry check factories that are compatible with layer and have all of the flags set. More... | |
void | registerGeometryCheck (QgsGeometryCheckFactory *checkFactory) |
Registers a new geometry check factory. More... | |
This class manages all known geometry check factories.
QgsGeometryCheckRegistry is not usually directly created, but rather accessed through QgsAnalysis::geometryCheckRegistry().
Definition at line 41 of file qgsgeometrycheckregistry.h.
|
default |
Constructor for QgsGeometryCheckRegistry.
QgsGeometryCheckRegistry is not usually directly created, but rather accessed through QgsAnalysis::geometryCheckRegistry().
QgsGeometryCheckRegistry::~QgsGeometryCheckRegistry | ( | ) |
Destructor.
Deletes all the registered checks
Definition at line 21 of file qgsgeometrycheckregistry.cpp.
QgsGeometryCheck * QgsGeometryCheckRegistry::geometryCheck | ( | const QString & | checkId, |
QgsGeometryCheckContext * | context, | ||
const QVariantMap & | geometryCheckConfig | ||
) |
Create a new geometryCheck of type checkId Pass the context and geometryCheckConfiguration to the newly created check.
Ownership is transferred to the caller.
Definition at line 26 of file qgsgeometrycheckregistry.cpp.
QList< QgsGeometryCheckFactory * > QgsGeometryCheckRegistry::geometryCheckFactories | ( | QgsVectorLayer * | layer, |
QgsGeometryCheck::CheckType | type, | ||
QgsGeometryCheck::Flags | flags = QgsGeometryCheck::Flags() |
||
) | const |
Returns all geometry check factories that are compatible with layer and have all of the flags set.
Definition at line 35 of file qgsgeometrycheckregistry.cpp.
void QgsGeometryCheckRegistry::registerGeometryCheck | ( | QgsGeometryCheckFactory * | checkFactory | ) |
Registers a new geometry check factory.
Definition at line 46 of file qgsgeometrycheckregistry.cpp.