|
QGIS API Documentation 4.3.0-Master (16eddb2670e)
|
#include <qgspointlocator.h>
Public Member Functions | |
| Match ()=default | |
| construct invalid match | |
| Match (QgsPointLocator::Type t, QgsVectorLayer *vl, QgsFeatureId fid, double dist, const QgsPointXY &pt, int vertexIndex=0, QgsPointXY *edgePoints=nullptr) | |
| double | distance () const |
| for vertex / edge match units depending on what class returns it (geom.cache: layer units, map canvas snapper: dest crs units) | |
| void | edgePoints (QgsPointXY &pt1, QgsPointXY &pt2) const |
| Only for a valid edge match - obtain endpoints of the edge. | |
| QgsFeatureId | featureId () const |
| The id of the feature to which the snapped geometry belongs. | |
| bool | hasArea () const |
Returns true if the Match is an area. | |
| bool | hasCentroid () const |
Returns true if the Match is a centroid. | |
| bool | hasEdge () const |
Returns true if the Match is an edge. | |
| bool | hasLineEndpoint () const |
Returns true if the Match is a line endpoint (start or end vertex). | |
| bool | hasMiddleSegment () const |
Returns true if the Match is the middle of a segment. | |
| bool | hasVertex () const |
Returns true if the Match is a vertex. | |
| QgsPoint | interpolatedPoint (const QgsCoordinateReferenceSystem &destinationCrs=QgsCoordinateReferenceSystem()) const |
| Convenient method to return a point on an edge with linear interpolation of the Z value. | |
| bool | isValid () const |
| QgsVectorLayer * | layer () const |
| The vector layer where the snap occurred. | |
| bool | operator== (const QgsPointLocator::Match &other) const |
| QgsPointXY | point () const |
| for vertex / edge match coords depending on what class returns it (geom.cache: layer coords, map canvas snapper: dest coords) | |
| QgsPointLocator::Type | type () const |
| int | vertexIndex () const |
| for vertex / edge match (first vertex of the edge) | |
Protected Attributes | |
| QgsPointXY | mCentroid |
| double | mDist = 0 |
| QgsPointXY | mEdgePoints [2] |
| QgsFeatureId | mFid = 0 |
| QgsVectorLayer * | mLayer = nullptr |
| QgsPointXY | mMiddleOfSegment |
| QgsPointXY | mPoint |
| Type | mType = Invalid |
| int | mVertexIndex = 0 |
Definition at line 190 of file qgspointlocator.h.
|
default |
construct invalid match
|
inline |
Definition at line 195 of file qgspointlocator.h.
|
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 235 of file qgspointlocator.h.
|
inline |
Only for a valid edge match - obtain endpoints of the edge.
Definition at line 258 of file qgspointlocator.h.
|
inline |
The id of the feature to which the snapped geometry belongs.
Definition at line 255 of file qgspointlocator.h.
|
inline |
Returns true if the Match is an area.
Definition at line 220 of file qgspointlocator.h.
|
inline |
Returns true if the Match is a centroid.
Definition at line 218 of file qgspointlocator.h.
|
inline |
Returns true if the Match is an edge.
Definition at line 216 of file qgspointlocator.h.
|
inline |
Returns true if the Match is a line endpoint (start or end vertex).
Definition at line 229 of file qgspointlocator.h.
|
inline |
Returns true if the Match is the middle of a segment.
Definition at line 222 of file qgspointlocator.h.
|
inline |
Returns true if the Match is a vertex.
Definition at line 214 of file qgspointlocator.h.
|
inline |
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)
Definition at line 270 of file qgspointlocator.h.
|
inline |
Definition at line 212 of file qgspointlocator.h.
|
inline |
The vector layer where the snap occurred.
Will be nullptr if the snap happened on an intersection.
Definition at line 250 of file qgspointlocator.h.
|
inline |
Definition at line 324 of file qgspointlocator.h.
|
inline |
for vertex / edge match coords depending on what class returns it (geom.cache: layer coords, map canvas snapper: dest coords)
Definition at line 241 of file qgspointlocator.h.
|
inline |
Definition at line 210 of file qgspointlocator.h.
|
inline |
for vertex / edge match (first vertex of the edge)
Definition at line 244 of file qgspointlocator.h.
|
protected |
Definition at line 346 of file qgspointlocator.h.
|
protected |
Definition at line 340 of file qgspointlocator.h.
|
protected |
Definition at line 345 of file qgspointlocator.h.
|
protected |
Definition at line 343 of file qgspointlocator.h.
|
protected |
Definition at line 342 of file qgspointlocator.h.
|
protected |
Definition at line 347 of file qgspointlocator.h.
|
protected |
Definition at line 341 of file qgspointlocator.h.
Definition at line 339 of file qgspointlocator.h.
|
protected |
Definition at line 344 of file qgspointlocator.h.