QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Configures how a certain layer should be handled in a snapping operation. More...
#include <qgssnappingutils.h>
Public Member Functions | |
LayerConfig (QgsVectorLayer *l, QgsPointLocator::Types t, double tol, Qgis::MapToolUnit u) | |
Create a new configuration for a snapping layer. | |
bool | operator!= (const QgsSnappingUtils::LayerConfig &other) const |
bool | operator== (const QgsSnappingUtils::LayerConfig &other) const |
Public Attributes | |
QgsVectorLayer * | layer = nullptr |
The layer to configure. | |
double | tolerance |
The range around snapping targets in which snapping should occur. | |
QgsPointLocator::Types | type |
To which geometry properties of this layers a snapping should happen. | |
Qgis::MapToolUnit | unit |
The units in which the tolerance is specified. | |
Configures how a certain layer should be handled in a snapping operation.
Definition at line 121 of file qgssnappingutils.h.
|
inline |
Create a new configuration for a snapping layer.
l | The vector layer for which this configuration is |
t | Which parts of the geometry should be snappable |
tol | The tolerance radius in which the snapping will trigger |
u | The unit in which the tolerance is specified |
Definition at line 141 of file qgssnappingutils.h.
|
inline |
Definition at line 153 of file qgssnappingutils.h.
|
inline |
Definition at line 149 of file qgssnappingutils.h.
QgsVectorLayer* QgsSnappingUtils::LayerConfig::layer = nullptr |
The layer to configure.
Definition at line 159 of file qgssnappingutils.h.
double QgsSnappingUtils::LayerConfig::tolerance |
The range around snapping targets in which snapping should occur.
Definition at line 163 of file qgssnappingutils.h.
QgsPointLocator::Types QgsSnappingUtils::LayerConfig::type |
To which geometry properties of this layers a snapping should happen.
Definition at line 161 of file qgssnappingutils.h.
Qgis::MapToolUnit QgsSnappingUtils::LayerConfig::unit |
The units in which the tolerance is specified.
Definition at line 165 of file qgssnappingutils.h.