QGIS API Documentation
3.0.2-Girona (307d082)
|
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 |
return 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) |
set the tolerance More... | |
void | setType (QgsSnappingConfig::SnappingType type) |
define the type of snapping More... | |
void | setUnits (QgsTolerance::UnitType units) |
set the type of units More... | |
double | tolerance () const |
return the tolerance More... | |
QgsSnappingConfig::SnappingType | type () const |
return the type (vertices and/or segments) More... | |
QgsTolerance::UnitType | units () const |
return the type of units More... | |
bool | valid () const |
return 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 |
return 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 | ) |
set 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 | ) |
set the type of units
Definition at line 75 of file qgssnappingconfig.cpp.
double QgsSnappingConfig::IndividualLayerSettings::tolerance | ( | ) | const |
return the tolerance
Definition at line 60 of file qgssnappingconfig.cpp.
QgsSnappingConfig::SnappingType QgsSnappingConfig::IndividualLayerSettings::type | ( | ) | const |
return the type (vertices and/or segments)
Definition at line 50 of file qgssnappingconfig.cpp.
QgsTolerance::UnitType QgsSnappingConfig::IndividualLayerSettings::units | ( | ) | const |
return the type of units
Definition at line 70 of file qgssnappingconfig.cpp.
bool QgsSnappingConfig::IndividualLayerSettings::valid | ( | ) | const |
return if settings are valid
Definition at line 35 of file qgssnappingconfig.cpp.