QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
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. More... | |
virtual | ~QgsSingleGeometryCheckError ()=default |
const QgsSingleGeometryCheck * | check () const |
The check that created this error. More... | |
virtual QString | description () const |
A human readable description of this error. More... | |
QgsGeometry | errorLocation () const |
The exact location of the error. More... | |
virtual bool | handleChanges (const QList< QgsGeometryCheck::Change > &changes) |
Apply a list of changes. More... | |
virtual bool | isEqual (const QgsSingleGeometryCheckError *other) const |
Check if this error is equal to other. More... | |
virtual void | update (const QgsSingleGeometryCheckError *other) |
Update this error with the information from other. More... | |
QgsVertexId | vertexId () const |
The vertex id of the error. More... | |
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.