QGIS API Documentation
3.6.0-Noosa (5873452)
|
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 28 of file qgssnappingconfig.cpp.
|
default |
Constructs an invalid setting.
bool QgsSnappingConfig::IndividualLayerSettings::enabled | ( | ) | const |
Returns if snapping is enabled.
Definition at line 41 of file qgssnappingconfig.cpp.
bool QgsSnappingConfig::IndividualLayerSettings::operator!= | ( | const QgsSnappingConfig::IndividualLayerSettings & | other | ) | const |
Compare this configuration to other.
Definition at line 81 of file qgssnappingconfig.cpp.
bool QgsSnappingConfig::IndividualLayerSettings::operator== | ( | const QgsSnappingConfig::IndividualLayerSettings & | other | ) | const |
Definition at line 90 of file qgssnappingconfig.cpp.
void QgsSnappingConfig::IndividualLayerSettings::setEnabled | ( | bool | enabled | ) |
enables the snapping
Definition at line 46 of file qgssnappingconfig.cpp.
void QgsSnappingConfig::IndividualLayerSettings::setTolerance | ( | double | tolerance | ) |
Sets the tolerance.
Definition at line 66 of file qgssnappingconfig.cpp.
void QgsSnappingConfig::IndividualLayerSettings::setType | ( | QgsSnappingConfig::SnappingType | type | ) |
define the type of snapping
Definition at line 56 of file qgssnappingconfig.cpp.
void QgsSnappingConfig::IndividualLayerSettings::setUnits | ( | QgsTolerance::UnitType | units | ) |
Sets the type of units.
Definition at line 76 of file qgssnappingconfig.cpp.
double QgsSnappingConfig::IndividualLayerSettings::tolerance | ( | ) | const |
Returns the tolerance.
Definition at line 61 of file qgssnappingconfig.cpp.
QgsSnappingConfig::SnappingType QgsSnappingConfig::IndividualLayerSettings::type | ( | ) | const |
Returns the type (vertices and/or segments)
Definition at line 51 of file qgssnappingconfig.cpp.
QgsTolerance::UnitType QgsSnappingConfig::IndividualLayerSettings::units | ( | ) | const |
Returns the type of units.
Definition at line 71 of file qgssnappingconfig.cpp.
bool QgsSnappingConfig::IndividualLayerSettings::valid | ( | ) | const |
Returns if settings are valid.
Definition at line 36 of file qgssnappingconfig.cpp.