QgsGeometryCheckRegistry class

This class manages all known geometry check factories.

QgsGeometryCheckRegistry is not usually directly created, but rather accessed through QgsAnalysis::geometryCheckRegistry().

Constructors, destructors, conversion operators

QgsGeometryCheckRegistry() defaulted
Constructor for QgsGeometryCheckRegistry.
~QgsGeometryCheckRegistry()
Destructor.

Public functions

auto geometryCheck(const QString& checkId, QgsGeometryCheckContext* context, const QVariantMap& geometryCheckConfig) -> QgsGeometryCheck*
Create a new geometryCheck of type checkId Pass the context and geometryCheckConfiguration to the newly created check.
auto geometryCheckFactories(QgsVectorLayer* layer, QgsGeometryCheck::CheckType type, QgsGeometryCheck::Flags flags = nullptr) const -> QList<QgsGeometryCheckFactory*>
Returns all geometry check factories that are compatible with layer and have all of the flags set.
void registerGeometryCheck(QgsGeometryCheckFactory* checkFactory)
Registers a new geometry check factory.

Function documentation

QgsGeometryCheckRegistry::QgsGeometryCheckRegistry() defaulted

Constructor for QgsGeometryCheckRegistry.

QgsGeometryCheckRegistry is not usually directly created, but rather accessed through QgsAnalysis::geometryCheckRegistry().

QgsGeometryCheckRegistry::~QgsGeometryCheckRegistry()

Destructor.

Deletes all the registered checks

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.

QList<QgsGeometryCheckFactory*> QgsGeometryCheckRegistry::geometryCheckFactories(QgsVectorLayer* layer, QgsGeometryCheck::CheckType type, QgsGeometryCheck::Flags flags = nullptr) const

Returns all geometry check factories that are compatible with layer and have all of the flags set.

void QgsGeometryCheckRegistry::registerGeometryCheck(QgsGeometryCheckFactory* checkFactory)

Registers a new geometry check factory.