QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
This is a container of advanced configuration (per layer) of the snapping of the project. More...
#include <qgssnappingconfig.h>
Public Member Functions | |
IndividualLayerSettings (bool enabled, QgsSnappingConfig::SnappingType type, double tolerance, QgsTolerance::UnitType units) | |
IndividualLayerSettings. More... | |
IndividualLayerSettings ()=default | |
Constructs an invalid setting. More... | |
bool | enabled () const |
Returns if snapping is enabled. More... | |
bool | operator!= (const QgsSnappingConfig::IndividualLayerSettings &other) const |
Compare this configuration to other. More... | |
bool | operator== (const QgsSnappingConfig::IndividualLayerSettings &other) const |
void | setEnabled (bool enabled) |
enables the snapping More... | |
void | setTolerance (double tolerance) |
Sets the tolerance. More... | |
void | setType (QgsSnappingConfig::SnappingType type) |
define the type of snapping More... | |
void | setUnits (QgsTolerance::UnitType units) |
Sets the type of units. More... | |
double | tolerance () const |
Returns the tolerance. More... | |
QgsSnappingConfig::SnappingType | type () const |
Returns the type (vertices and/or segments) More... | |
QgsTolerance::UnitType | units () const |
Returns the type of units. More... | |
bool | valid () const |
Returns if settings are valid. More... | |
This is a container of advanced configuration (per layer) of the snapping of the project.
Definition at line 69 of file qgssnappingconfig.h.
QgsSnappingConfig::IndividualLayerSettings::IndividualLayerSettings | ( | bool | enabled, |
QgsSnappingConfig::SnappingType | type, | ||
double | tolerance, | ||
QgsTolerance::UnitType | units | ||
) |
enabled | |
type | |
tolerance | |
units |
Definition at line 27 of file qgssnappingconfig.cpp.
|
default |
Constructs an invalid setting.
bool QgsSnappingConfig::IndividualLayerSettings::enabled | ( | ) | const |
Returns if snapping is enabled.
Definition at line 40 of file qgssnappingconfig.cpp.
bool QgsSnappingConfig::IndividualLayerSettings::operator!= | ( | const QgsSnappingConfig::IndividualLayerSettings & | other | ) | const |
Compare this configuration to other.
Definition at line 80 of file qgssnappingconfig.cpp.
bool QgsSnappingConfig::IndividualLayerSettings::operator== | ( | const QgsSnappingConfig::IndividualLayerSettings & | other | ) | const |
Definition at line 89 of file qgssnappingconfig.cpp.
void QgsSnappingConfig::IndividualLayerSettings::setEnabled | ( | bool | enabled | ) |
enables the snapping
Definition at line 45 of file qgssnappingconfig.cpp.
void QgsSnappingConfig::IndividualLayerSettings::setTolerance | ( | double | tolerance | ) |
Sets the tolerance.
Definition at line 65 of file qgssnappingconfig.cpp.
void QgsSnappingConfig::IndividualLayerSettings::setType | ( | QgsSnappingConfig::SnappingType | type | ) |
define the type of snapping
Definition at line 55 of file qgssnappingconfig.cpp.
void QgsSnappingConfig::IndividualLayerSettings::setUnits | ( | QgsTolerance::UnitType | units | ) |
Sets the type of units.
Definition at line 75 of file qgssnappingconfig.cpp.
double QgsSnappingConfig::IndividualLayerSettings::tolerance | ( | ) | const |
Returns the tolerance.
Definition at line 60 of file qgssnappingconfig.cpp.
QgsSnappingConfig::SnappingType QgsSnappingConfig::IndividualLayerSettings::type | ( | ) | const |
Returns the type (vertices and/or segments)
Definition at line 50 of file qgssnappingconfig.cpp.
QgsTolerance::UnitType QgsSnappingConfig::IndividualLayerSettings::units | ( | ) | const |
Returns the type of units.
Definition at line 70 of file qgssnappingconfig.cpp.
bool QgsSnappingConfig::IndividualLayerSettings::valid | ( | ) | const |
Returns if settings are valid.
Definition at line 35 of file qgssnappingconfig.cpp.