QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
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();
127 #endif // QGSGEOMETRYCHECKFACTORY_H
Template to create a factory for a geometry check.
QgsGeometryCheck * createGeometryCheck(const QgsGeometryCheckContext *context, const QVariantMap &configuration) const override
Creates a new geometry check with context and configuration.
QgsGeometryCheck::CheckType checkType() const override
The type of this check.
Base class for geometry checks for a single geometry without any context of the layer or other layers...
This class implements a geometry check.
virtual bool isCompatible(QgsVectorLayer *layer) const =0
Checks if this check should be made available for layer.
QString description() const override
A human readable description for this check.
virtual QString id() const =0
The unique id for this geometry check.
virtual QString description() const =0
A human readable description for this check.
Base configuration for geometry checks.
virtual ~QgsGeometryCheckFactory()=default
Destructor.
A factory for geometry checks.
virtual QgsGeometryCheck::Flags flags() const =0
Flags for this check.
QgsGeometryCheck::Flags flags() const override
Flags for this check.
Represents a vector layer which manages a vector based data sets.
virtual QgsGeometryCheck * createGeometryCheck(const QgsGeometryCheckContext *context, const QVariantMap &configuration) const =0
Creates a new geometry check with context and configuration.
CheckType
The type of a check.
QString id() const override
The unique id for this geometry check.
virtual QgsGeometryCheck::CheckType checkType() const =0
The type of this check.
bool isCompatible(QgsVectorLayer *layer) const override
Checks if this check should be made available for layer.