QGIS/python/core/auto_generated/qgsgeometryvalidator.sip.in
Nyall Dawson 3f6b490218 Sipify
2025-04-02 11:11:10 +10:00

72 lines
2.4 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsgeometryvalidator.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsGeometryValidator : QThread
{
%Docstring(signature="appended")
Validates geometries using the QGIS geometry validation model.
%End
%TypeHeaderCode
#include "qgsgeometryvalidator.h"
%End
public:
QgsGeometryValidator( const QgsGeometry &geometry, QVector<QgsGeometry::Error> *errors = 0, Qgis::GeometryValidationEngine method = Qgis::GeometryValidationEngine::QgisInternal );
%Docstring
Constructor for QgsGeometryValidator.
%End
~QgsGeometryValidator();
virtual void run();
void stop();
static void validateGeometry( const QgsGeometry &geometry, QVector<QgsGeometry::Error> &errors /Out/, Qgis::GeometryValidationEngine method = Qgis::GeometryValidationEngine::QgisInternal );
%Docstring
Validate geometry and produce a list of geometry errors. This method
blocks the thread until the validation is finished.
%End
signals:
void errorFound( const QgsGeometry::Error &error );
%Docstring
Sent when an error has been found during the validation process.
The ``error`` contains details about the error.
%End
void validationFinished( const QString &summary );
%Docstring
Sent when the validation is finished.
The result is in a human readable ``summary``, mentioning if the
validation has been aborted, successfully been validated or how many
errors have been found.
.. versionadded:: 3.6
%End
public slots:
void addError( const QgsGeometry::Error & );
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsgeometryvalidator.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/