QGIS API Documentation 3.41.0-Master (3291e9ff48b)
|
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 39 of file qgssinglegeometrycheck.h.
|
inline |
Creates a new single geometry check error.
Definition at line 46 of file qgssinglegeometrycheck.h.
|
virtualdefault |
const QgsSingleGeometryCheck * QgsSingleGeometryCheckError::check | ( | ) | const |
The check that created this error.
Definition at line 69 of file qgssinglegeometrycheck.cpp.
|
virtual |
A human readable description of this error.
Reimplemented in QgsGeometryIsValidCheckError, and QgsGeometryTypeCheckError.
Definition at line 64 of file qgssinglegeometrycheck.cpp.
QgsGeometry QgsSingleGeometryCheckError::errorLocation | ( | ) | const |
The exact location of the error.
Definition at line 74 of file qgssinglegeometrycheck.cpp.
|
virtual |
Apply a list of changes.
Reimplemented in QgsGeometrySelfIntersectionCheckError.
Definition at line 58 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 50 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 42 of file qgssinglegeometrycheck.cpp.
QgsVertexId QgsSingleGeometryCheckError::vertexId | ( | ) | const |
The vertex id of the error.
May be invalid depending on the check.
Definition at line 79 of file qgssinglegeometrycheck.cpp.
|
protected |
Definition at line 100 of file qgssinglegeometrycheck.h.
|
protected |
Definition at line 102 of file qgssinglegeometrycheck.h.
|
protected |
Definition at line 101 of file qgssinglegeometrycheck.h.
|
protected |
Definition at line 103 of file qgssinglegeometrycheck.h.