QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
Public Member Functions | List of all members
QgsGeometrySelfIntersectionCheckError Class Reference

A self intersection check error. More...

#include <qgsgeometryselfintersectioncheck.h>

Inheritance diagram for QgsGeometrySelfIntersectionCheckError:
Inheritance graph
[legend]

Public Member Functions

 QgsGeometrySelfIntersectionCheckError (const QgsSingleGeometryCheck *check, const QgsGeometry &geometry, const QgsGeometry &errorLocation, QgsVertexId vertexId, const QgsGeometryUtils::SelfIntersection &intersection)
 
bool handleChanges (const QList< QgsGeometryCheck::Change > &changes) override
 Apply a list of changes. More...
 
const QgsGeometryUtils::SelfIntersectionintersection () const
 
bool isEqual (const QgsSingleGeometryCheckError *other) const override
 Check if this error is equal to other. More...
 
void update (const QgsSingleGeometryCheckError *other) override
 Update this error with the information from other. More...
 
- Public Member Functions inherited from QgsSingleGeometryCheckError
 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 QgsSingleGeometryCheckcheck () 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...
 

Additional Inherited Members

- Protected Attributes inherited from QgsSingleGeometryCheckError
const QgsSingleGeometryCheckmCheck = nullptr
 
QgsGeometry mErrorLocation
 
QgsGeometry mGeometry
 
QgsVertexId mVertexId
 

Detailed Description

A self intersection check error.

Definition at line 28 of file qgsgeometryselfintersectioncheck.h.

Constructor & Destructor Documentation

◆ QgsGeometrySelfIntersectionCheckError()

QgsGeometrySelfIntersectionCheckError::QgsGeometrySelfIntersectionCheckError ( const QgsSingleGeometryCheck check,
const QgsGeometry geometry,
const QgsGeometry errorLocation,
QgsVertexId  vertexId,
const QgsGeometryUtils::SelfIntersection intersection 
)
inline

Definition at line 31 of file qgsgeometryselfintersectioncheck.h.

Member Function Documentation

◆ handleChanges()

bool QgsGeometrySelfIntersectionCheckError::handleChanges ( const QList< QgsGeometryCheck::Change > &  changes)
overridevirtual

Apply a list of changes.

Reimplemented from QgsSingleGeometryCheckError.

Definition at line 33 of file qgsgeometryselfintersectioncheck.cpp.

◆ intersection()

const QgsGeometryUtils::SelfIntersection & QgsGeometrySelfIntersectionCheckError::intersection ( ) const
inline

Definition at line 40 of file qgsgeometryselfintersectioncheck.h.

◆ isEqual()

bool QgsGeometrySelfIntersectionCheckError::isEqual ( const QgsSingleGeometryCheckError other) const
overridevirtual

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 from QgsSingleGeometryCheckError.

Definition at line 26 of file qgsgeometryselfintersectioncheck.cpp.

◆ update()

void QgsGeometrySelfIntersectionCheckError::update ( const QgsSingleGeometryCheckError other)
overridevirtual

Update this error with the information from other.

Will be used to update existing errors whenever they are re-checked.

Reimplemented from QgsSingleGeometryCheckError.

Definition at line 62 of file qgsgeometryselfintersectioncheck.cpp.


The documentation for this class was generated from the following files: