QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
This is a container of advanced configuration (per layer) of the snapping of the project. More...
#include <qgssnappingconfig.h>
Public Member Functions | |
IndividualLayerSettings ()=default | |
Constructs an invalid setting. | |
IndividualLayerSettings (bool enabled, Qgis::SnappingTypes type, double tolerance, Qgis::MapToolUnit units, double minScale=0.0, double maxScale=0.0) | |
IndividualLayerSettings. | |
Q_DECL_DEPRECATED | IndividualLayerSettings (bool enabled, SnappingType type, double tolerance, Qgis::MapToolUnit units) |
IndividualLayerSettings. | |
bool | enabled () const |
Returns if snapping is enabled. | |
double | maximumScale () const |
Returns max scale on which snapping is limited. | |
double | minimumScale () const |
Returns minimum scale on which snapping is limited. | |
bool | operator!= (const QgsSnappingConfig::IndividualLayerSettings &other) const |
bool | operator== (const QgsSnappingConfig::IndividualLayerSettings &other) const |
void | setEnabled (bool enabled) |
enables the snapping | |
void | setMaximumScale (double maxScale) |
Sets the max scale value on which snapping is used, 0.0 disable scale limit. | |
void | setMinimumScale (double minScale) |
Sets the min scale value on which snapping is used, 0.0 disable scale limit. | |
void | setTolerance (double tolerance) |
Sets the tolerance. | |
Q_DECL_DEPRECATED void | setType (SnappingType type) |
define the type of snapping | |
void | setTypeFlag (Qgis::SnappingTypes type) |
define the type of snapping | |
void | setUnits (Qgis::MapToolUnit units) |
Sets the type of units. | |
double | tolerance () const |
Returns the tolerance. | |
Q_DECL_DEPRECATED QgsSnappingConfig::SnappingType | type () const |
Returns the flags type (vertices | segments | area | centroid | middle) | |
Qgis::SnappingTypes | typeFlag () const |
Returns the flags type (vertices | segments | area | centroid | middle) | |
Qgis::MapToolUnit | units () const |
Returns the type of units. | |
bool | valid () const |
Returns if settings are valid. | |
This is a container of advanced configuration (per layer) of the snapping of the project.
Definition at line 107 of file qgssnappingconfig.h.
QgsSnappingConfig::IndividualLayerSettings::IndividualLayerSettings | ( | bool | enabled, |
SnappingType | type, | ||
double | tolerance, | ||
Qgis::MapToolUnit | units | ||
) |
enabled | |
type | |
tolerance | |
units |
Definition at line 40 of file qgssnappingconfig.cpp.
QgsSnappingConfig::IndividualLayerSettings::IndividualLayerSettings | ( | bool | enabled, |
Qgis::SnappingTypes | type, | ||
double | tolerance, | ||
Qgis::MapToolUnit | units, | ||
double | minScale = 0.0 , |
||
double | maxScale = 0.0 |
||
) |
enabled | |
type | |
tolerance | |
units | |
minScale | 0.0 disable scale limit |
maxScale | 0.0 disable scale limit |
Definition at line 30 of file qgssnappingconfig.cpp.
|
default |
Constructs an invalid setting.
bool QgsSnappingConfig::IndividualLayerSettings::enabled | ( | ) | const |
Returns if snapping is enabled.
Definition at line 56 of file qgssnappingconfig.cpp.
double QgsSnappingConfig::IndividualLayerSettings::maximumScale | ( | ) | const |
Returns max scale on which snapping is limited.
Definition at line 136 of file qgssnappingconfig.cpp.
double QgsSnappingConfig::IndividualLayerSettings::minimumScale | ( | ) | const |
Returns minimum scale on which snapping is limited.
Definition at line 126 of file qgssnappingconfig.cpp.
bool QgsSnappingConfig::IndividualLayerSettings::operator!= | ( | const QgsSnappingConfig::IndividualLayerSettings & | other | ) | const |
Definition at line 146 of file qgssnappingconfig.cpp.
bool QgsSnappingConfig::IndividualLayerSettings::operator== | ( | const QgsSnappingConfig::IndividualLayerSettings & | other | ) | const |
Definition at line 157 of file qgssnappingconfig.cpp.
void QgsSnappingConfig::IndividualLayerSettings::setEnabled | ( | bool | enabled | ) |
enables the snapping
Definition at line 61 of file qgssnappingconfig.cpp.
void QgsSnappingConfig::IndividualLayerSettings::setMaximumScale | ( | double | maxScale | ) |
Sets the max scale value on which snapping is used, 0.0 disable scale limit.
Definition at line 141 of file qgssnappingconfig.cpp.
void QgsSnappingConfig::IndividualLayerSettings::setMinimumScale | ( | double | minScale | ) |
Sets the min scale value on which snapping is used, 0.0 disable scale limit.
Definition at line 131 of file qgssnappingconfig.cpp.
void QgsSnappingConfig::IndividualLayerSettings::setTolerance | ( | double | tolerance | ) |
Sets the tolerance.
Definition at line 111 of file qgssnappingconfig.cpp.
void QgsSnappingConfig::IndividualLayerSettings::setType | ( | QgsSnappingConfig::SnappingType | type | ) |
define the type of snapping
Definition at line 83 of file qgssnappingconfig.cpp.
void QgsSnappingConfig::IndividualLayerSettings::setTypeFlag | ( | Qgis::SnappingTypes | type | ) |
void QgsSnappingConfig::IndividualLayerSettings::setUnits | ( | Qgis::MapToolUnit | units | ) |
Sets the type of units.
Definition at line 121 of file qgssnappingconfig.cpp.
double QgsSnappingConfig::IndividualLayerSettings::tolerance | ( | ) | const |
Returns the tolerance.
Definition at line 106 of file qgssnappingconfig.cpp.
QgsSnappingConfig::SnappingType QgsSnappingConfig::IndividualLayerSettings::type | ( | ) | const |
Returns the flags type (vertices | segments | area | centroid | middle)
Definition at line 71 of file qgssnappingconfig.cpp.
Qgis::SnappingTypes QgsSnappingConfig::IndividualLayerSettings::typeFlag | ( | ) | const |
Returns the flags type (vertices | segments | area | centroid | middle)
Definition at line 66 of file qgssnappingconfig.cpp.
Qgis::MapToolUnit QgsSnappingConfig::IndividualLayerSettings::units | ( | ) | const |
Returns the type of units.
Definition at line 116 of file qgssnappingconfig.cpp.
bool QgsSnappingConfig::IndividualLayerSettings::valid | ( | ) | const |
Returns if settings are valid.
Definition at line 51 of file qgssnappingconfig.cpp.