IndividualLayerSettings class
This is a container of advanced configuration (per layer) of the snapping of the project.
Contents
Constructors, destructors, conversion operators
-
IndividualLayerSettings(bool enabled,
QgsSnappingConfig::
SnappingType type, double tolerance, QgsTolerance:: UnitType units) - IndividualLayerSettings.
- IndividualLayerSettings() defaulted
- Constructs an invalid setting.
Public functions
- auto enabled() const -> bool
- Returns if snapping is enabled.
-
auto operator!=(const QgsSnappingConfig::
IndividualLayerSettings& other) const -> bool - Compare this configuration to other.
- void setEnabled(bool enabled)
- enables the snapping
- void setTolerance(double tolerance)
- Sets the tolerance.
-
void setType(QgsSnappingConfig::
SnappingType type) - define the type of snapping
-
void setUnits(QgsTolerance::
UnitType units) - Sets the type of units.
- auto tolerance() const -> double
- Returns the tolerance.
-
auto type() const -> QgsSnappingConfig::
SnappingType - Returns the type (vertices and/or segments)
-
auto units() const -> QgsTolerance::
UnitType - Returns the type of units.
- auto valid() const -> bool
- Returns if settings are valid.
Function documentation
QgsSnappingConfig:: IndividualLayerSettings:: IndividualLayerSettings(bool enabled,
QgsSnappingConfig:: SnappingType type,
double tolerance,
QgsTolerance:: UnitType units)
| Parameters | |
|---|---|
| enabled | |
| type | |
| tolerance | |
| units | |