16 #ifndef QGSGEOMETRYCHECKFACTORY_H
17 #define QGSGEOMETRYCHECKFACTORY_H
21 #include <QVariantMap>
25 #include "qgis_analysis.h"
62 virtual QString
id()
const = 0;
77 virtual QgsGeometryCheck::Flags
flags()
const = 0;
97 return new T( context, configuration );
102 return T::factoryDescription();
105 QString
id()
const override
107 return T::factoryId();
112 return T::factoryIsCompatible( layer );
115 QgsGeometryCheck::Flags
flags()
const override
117 return T::factoryFlags();
122 return T::factoryCheckType();
Base configuration for geometry checks.
Template to create a factory for a geometry check.
QString id() const override
The unique id for this geometry check.
QString description() const override
A human readable description for this check.
QgsGeometryCheck::CheckType checkType() const override
The type of this check.
QgsGeometryCheck * createGeometryCheck(const QgsGeometryCheckContext *context, const QVariantMap &configuration) const override
Creates a new geometry check with context and configuration.
QgsGeometryCheck::Flags flags() const override
Flags for this check.
bool isCompatible(QgsVectorLayer *layer) const override
Checks if this check should be made available for layer.
A factory for geometry checks.
virtual bool isCompatible(QgsVectorLayer *layer) const =0
Checks if this check should be made available for layer.
virtual QgsGeometryCheck * createGeometryCheck(const QgsGeometryCheckContext *context, const QVariantMap &configuration) const =0
Creates a new geometry check with context and configuration.
virtual QgsGeometryCheck::CheckType checkType() const =0
The type of this check.
virtual QString id() const =0
The unique id for this geometry check.
virtual QgsGeometryCheck::Flags flags() const =0
Flags for this check.
virtual ~QgsGeometryCheckFactory()=default
Destructor.
virtual QString description() const =0
A human readable description for this check.
This class implements a geometry check.
CheckType
The type of a check.
Base class for geometry checks for a single geometry without any context of the layer or other layers...
Represents a vector layer which manages a vector based data sets.