1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
class QgsGeometryValidator : QThread
{
%TypeHeaderCode
#include <qgsgeometryvalidator.h>
%End
public:
//! Constructor
QgsGeometryValidator( const QgsGeometry *g, QList<QgsGeometry::Error> *errors = 0 );
~QgsGeometryValidator();
void run();
void stop();
/** Validate geometry and produce a list of geometry errors */
static void validateGeometry( const QgsGeometry *g, QList<QgsGeometry::Error> &errors /Out/ );
signals:
void errorFound( const QgsGeometry::Error& );
public slots:
void addError( const QgsGeometry::Error& );
};
|