#include <qgspointlocator.h>
Definition at line 187 of file qgspointlocator.h.
◆ Match() [1/2]
QgsPointLocator::Match::Match |
( |
| ) |
|
|
default |
◆ Match() [2/2]
◆ distance()
double QgsPointLocator::Match::distance |
( |
| ) |
const |
|
inline |
for vertex / edge match units depending on what class returns it (geom.cache: layer units, map canvas snapper: dest crs units)
Definition at line 232 of file qgspointlocator.h.
◆ edgePoints()
Only for a valid edge match - obtain endpoints of the edge.
Definition at line 255 of file qgspointlocator.h.
◆ featureId()
The id of the feature to which the snapped geometry belongs.
Definition at line 252 of file qgspointlocator.h.
◆ hasArea()
bool QgsPointLocator::Match::hasArea |
( |
| ) |
const |
|
inline |
◆ hasCentroid()
bool QgsPointLocator::Match::hasCentroid |
( |
| ) |
const |
|
inline |
◆ hasEdge()
bool QgsPointLocator::Match::hasEdge |
( |
| ) |
const |
|
inline |
◆ hasLineEndpoint()
bool QgsPointLocator::Match::hasLineEndpoint |
( |
| ) |
const |
|
inline |
Returns true
if the Match is a line endpoint (start or end vertex).
- Since
- QGIS 3.20
Definition at line 226 of file qgspointlocator.h.
◆ hasMiddleSegment()
bool QgsPointLocator::Match::hasMiddleSegment |
( |
| ) |
const |
|
inline |
◆ hasVertex()
bool QgsPointLocator::Match::hasVertex |
( |
| ) |
const |
|
inline |
◆ interpolatedPoint()
Convenient method to return a point on an edge with linear interpolation of the Z value.
The parameter destinationCrs depends of where the instance of this Match is created (geom.cache: layer CRS, map canvas snapper: dest CRS)
- Since
- 3.10
Definition at line 267 of file qgspointlocator.h.
◆ isValid()
bool QgsPointLocator::Match::isValid |
( |
| ) |
const |
|
inline |
◆ layer()
The vector layer where the snap occurred.
Will be nullptr
if the snap happened on an intersection.
Definition at line 247 of file qgspointlocator.h.
◆ operator==()
◆ point()
QgsPointXY QgsPointLocator::Match::point |
( |
| ) |
const |
|
inline |
for vertex / edge match coords depending on what class returns it (geom.cache: layer coords, map canvas snapper: dest coords)
Definition at line 238 of file qgspointlocator.h.
◆ type()
◆ vertexIndex()
int QgsPointLocator::Match::vertexIndex |
( |
| ) |
const |
|
inline |
for vertex / edge match (first vertex of the edge)
Definition at line 241 of file qgspointlocator.h.
◆ mCentroid
◆ mDist
double QgsPointLocator::Match::mDist = 0 |
|
protected |
◆ mEdgePoints
◆ mFid
◆ mLayer
◆ mMiddleOfSegment
QgsPointXY QgsPointLocator::Match::mMiddleOfSegment |
|
protected |
◆ mPoint
◆ mType
◆ mVertexIndex
int QgsPointLocator::Match::mVertexIndex = 0 |
|
protected |
The documentation for this struct was generated from the following file: