|
QGIS API Documentation 3.99.0-Master (2fe06baccd8)
|
An error from a QgsSingleGeometryCheck. More...
#include <qgssinglegeometrycheck.h>

Public Member Functions | |
| QgsSingleGeometryCheckError (const QgsSingleGeometryCheck *check, const QgsGeometry &geometry, const QgsGeometry &errorLocation, const QgsVertexId &vertexId=QgsVertexId()) | |
| Creates a new single geometry check error. | |
| virtual | ~QgsSingleGeometryCheckError ()=default |
| const QgsSingleGeometryCheck * | check () const |
| The check that created this error. | |
| virtual QString | description () const |
| A human readable description of this error. | |
| QgsGeometry | errorLocation () const |
| The exact location of the error. | |
| virtual bool | handleChanges (const QList< QgsGeometryCheck::Change > &changes) |
| Apply a list of changes. | |
| virtual bool | isEqual (const QgsSingleGeometryCheckError *other) const |
| Check if this error is equal to other. | |
| virtual void | update (const QgsSingleGeometryCheckError *other) |
| Update this error with the information from other. | |
| QgsVertexId | vertexId () const |
| The vertex id of the error. | |
Protected Attributes | |
| const QgsSingleGeometryCheck * | mCheck = nullptr |
| QgsGeometry | mErrorLocation |
| QgsGeometry | mGeometry |
| QgsVertexId | mVertexId |
An error from a QgsSingleGeometryCheck.
Definition at line 38 of file qgssinglegeometrycheck.h.
|
inline |
Creates a new single geometry check error.
Definition at line 44 of file qgssinglegeometrycheck.h.
|
virtualdefault |
| const QgsSingleGeometryCheck * QgsSingleGeometryCheckError::check | ( | ) | const |
The check that created this error.
Definition at line 83 of file qgssinglegeometrycheck.cpp.
|
virtual |
A human readable description of this error.
Reimplemented in QgsGeometryIsValidCheckError, and QgsGeometryTypeCheckError.
Definition at line 78 of file qgssinglegeometrycheck.cpp.
| QgsGeometry QgsSingleGeometryCheckError::errorLocation | ( | ) | const |
The exact location of the error.
Definition at line 88 of file qgssinglegeometrycheck.cpp.
|
virtual |
Apply a list of changes.
Reimplemented in QgsGeometrySelfIntersectionCheckError.
Definition at line 72 of file qgssinglegeometrycheck.cpp.
|
virtual |
Check if this error is equal to other.
Is reimplemented by subclasses with additional information, comparison of base information is done in parent class.
Reimplemented in QgsGeometrySelfIntersectionCheckError, and QgsGeometryTypeCheckError.
Definition at line 64 of file qgssinglegeometrycheck.cpp.
|
virtual |
Update this error with the information from other.
Will be used to update existing errors whenever they are re-checked.
Reimplemented in QgsGeometrySelfIntersectionCheckError.
Definition at line 56 of file qgssinglegeometrycheck.cpp.
| QgsVertexId QgsSingleGeometryCheckError::vertexId | ( | ) | const |
The vertex id of the error.
May be invalid depending on the check.
Definition at line 93 of file qgssinglegeometrycheck.cpp.
|
protected |
Definition at line 98 of file qgssinglegeometrycheck.h.
|
protected |
Definition at line 100 of file qgssinglegeometrycheck.h.
|
protected |
Definition at line 99 of file qgssinglegeometrycheck.h.
|
protected |
Definition at line 101 of file qgssinglegeometrycheck.h.