23   qDeleteAll( mGeometryCheckFactories );
    37   QList<QgsGeometryCheckFactory *> factories;
    40     if ( factory->checkType() == type && ( factory->flags() & flags ) == flags && factory->isCompatible( layer ) )
    48   mGeometryCheckFactories.insert( checkFactory->
id(), checkFactory );
 QgsGeometryCheck * geometryCheck(const QString &checkId, QgsGeometryCheckContext *context, const QVariantMap &geometryCheckConfig)
Create a new geometryCheck of type checkId Pass the context and geometryCheckConfiguration to the new...
 
CheckType
The type of a check. 
 
Base configuration for geometry checks. 
 
QList< QgsGeometryCheckFactory * > 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...
 
virtual QString id() const =0
The unique id for this geometry check. 
 
This class implements a geometry check. 
 
~QgsGeometryCheckRegistry()
Destructor. 
 
void registerGeometryCheck(QgsGeometryCheckFactory *checkFactory)
Registers a new geometry check factory. 
 
virtual QgsGeometryCheck * createGeometryCheck(const QgsGeometryCheckContext *context, const QVariantMap &configuration) const =0
Creates a new geometry check with context and configuration. 
 
Represents a vector layer which manages a vector based data sets. 
 
A factory for geometry checks.