qgsgeometryselfcontactcheck.h (QGIS-final-3_10_11) | : | qgsgeometryselfcontactcheck.h (QGIS-final-3_10_12) | ||
---|---|---|---|---|
skipping to change at line 28 | skipping to change at line 28 | |||
#ifndef QGS_GEOMETRY_SELFCONTACT_CHECK_H | #ifndef QGS_GEOMETRY_SELFCONTACT_CHECK_H | |||
#define QGS_GEOMETRY_SELFCONTACT_CHECK_H | #define QGS_GEOMETRY_SELFCONTACT_CHECK_H | |||
#include "qgssinglegeometrycheck.h" | #include "qgssinglegeometrycheck.h" | |||
/** | /** | |||
* \ingroup analysis | * \ingroup analysis | |||
*/ | */ | |||
class ANALYSIS_EXPORT QgsGeometrySelfContactCheck : public QgsSingleGeometryChec k | class ANALYSIS_EXPORT QgsGeometrySelfContactCheck : public QgsSingleGeometryChec k | |||
{ | { | |||
Q_DECLARE_TR_FUNCTIONS( QgsGeometrySelfContactCheck ) | ||||
public: | public: | |||
QgsGeometrySelfContactCheck( QgsGeometryCheckContext *context, const QVarian tMap &configuration ) | QgsGeometrySelfContactCheck( QgsGeometryCheckContext *context, const QVarian tMap &configuration ) | |||
: QgsSingleGeometryCheck( context, configuration ) {} | : QgsSingleGeometryCheck( context, configuration ) {} | |||
static QList<QgsWkbTypes::GeometryType> factoryCompatibleGeometryTypes() {re turn {QgsWkbTypes::LineGeometry, QgsWkbTypes::PolygonGeometry}; } | static QList<QgsWkbTypes::GeometryType> factoryCompatibleGeometryTypes() {re turn {QgsWkbTypes::LineGeometry, QgsWkbTypes::PolygonGeometry}; } | |||
static bool factoryIsCompatible( QgsVectorLayer *layer ) SIP_SKIP { return f actoryCompatibleGeometryTypes().contains( layer->geometryType() ); } | static bool factoryIsCompatible( QgsVectorLayer *layer ) SIP_SKIP { return f actoryCompatibleGeometryTypes().contains( layer->geometryType() ); } | |||
QList<QgsWkbTypes::GeometryType> compatibleGeometryTypes() const override { return factoryCompatibleGeometryTypes(); } | QList<QgsWkbTypes::GeometryType> compatibleGeometryTypes() const override { return factoryCompatibleGeometryTypes(); } | |||
QList<QgsSingleGeometryCheckError *> processGeometry( const QgsGeometry &geo metry ) const override; | QList<QgsSingleGeometryCheckError *> processGeometry( const QgsGeometry &geo metry ) const override; | |||
void fixError( const QMap<QString, QgsFeaturePool *> &featurePools, QgsGeome tryCheckError *error, int method, const QMap<QString, int> &mergeAttributeIndice s, Changes & ) const override; | void fixError( const QMap<QString, QgsFeaturePool *> &featurePools, QgsGeome tryCheckError *error, int method, const QMap<QString, int> &mergeAttributeIndice s, Changes & ) const override; | |||
QStringList resolutionMethods() const override; | QStringList resolutionMethods() const override; | |||
static QString factoryDescription() { return tr( "Self contact" ); } | static QString factoryDescription() { return tr( "Self contact" ); } | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added |