mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Geometries are passed as const reference and returned by value. This make using the API easier and reduces the risk of ownership problems. The overhead is minimal due to implicit sharing. Fix https://github.com/qgis/qgis3.0_api/issues/68
49 lines
1.8 KiB
Plaintext
49 lines
1.8 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsgeometryvalidator.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
class QgsGeometryValidator : QThread
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsgeometryvalidator.h"
|
|
%End
|
|
public:
|
|
|
|
QgsGeometryValidator( const QgsGeometry &geoemtry, QList<QgsGeometry::Error> *errors = 0, QgsGeometry::ValidationMethod method = QgsGeometry::ValidatorQgisInternal );
|
|
%Docstring
|
|
Constructor for QgsGeometryValidator.
|
|
%End
|
|
~QgsGeometryValidator();
|
|
|
|
virtual void run();
|
|
|
|
void stop();
|
|
|
|
static void validateGeometry( const QgsGeometry &geometry, QList<QgsGeometry::Error> &errors /Out/, QgsGeometry::ValidationMethod method = QgsGeometry::ValidatorQgisInternal );
|
|
%Docstring
|
|
Validate geometry and produce a list of geometry errors
|
|
%End
|
|
|
|
signals:
|
|
void errorFound( const QgsGeometry::Error & );
|
|
|
|
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.pl again *
|
|
************************************************************************/
|