QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
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, QgsTolerance::UnitType u) | |
Create a new configuration for a snapping layer. More... | |
bool | operator!= (const LayerConfig &other) const |
bool | operator== (const LayerConfig &other) const |
Public Attributes | |
QgsVectorLayer * | layer |
The layer to configure. More... | |
double | tolerance |
The range around snapping targets in which snapping should occur. More... | |
QgsPointLocator::Types | type |
To which geometry properties of this layers a snapping should happen. More... | |
QgsTolerance::UnitType | unit |
The units in which the tolerance is specified. More... | |
Configures how a certain layer should be handled in a snapping operation.
Definition at line 108 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 128 of file qgssnappingutils.h.
|
inline |
Definition at line 139 of file qgssnappingutils.h.
|
inline |
Definition at line 135 of file qgssnappingutils.h.
QgsVectorLayer* QgsSnappingUtils::LayerConfig::layer |
The layer to configure.
Definition at line 145 of file qgssnappingutils.h.
double QgsSnappingUtils::LayerConfig::tolerance |
The range around snapping targets in which snapping should occur.
Definition at line 149 of file qgssnappingutils.h.
QgsPointLocator::Types QgsSnappingUtils::LayerConfig::type |
To which geometry properties of this layers a snapping should happen.
Definition at line 147 of file qgssnappingutils.h.
QgsTolerance::UnitType QgsSnappingUtils::LayerConfig::unit |
The units in which the tolerance is specified.
Definition at line 151 of file qgssnappingutils.h.