|
| QgsSnappingConfig (QgsProject *project=nullptr) |
| Constructor with default parameters defined in global settings. More...
|
|
bool | addLayers (const QList< QgsMapLayer * > &layers) |
| Adds the specified layers as individual layers to the configuration with standard configuration. More...
|
|
void | clearIndividualLayerSettings () |
| Removes all individual layer snapping settings. More...
|
|
bool | enabled () const |
| Returns if snapping is enabled. More...
|
|
QHash< QgsVectorLayer *, QgsSnappingConfig::IndividualLayerSettings > | individualLayerSettings () const |
| Returns individual snapping settings for all layers. More...
|
|
QgsSnappingConfig::IndividualLayerSettings | individualLayerSettings (QgsVectorLayer *vl) const |
| Returns individual layer snappings settings (applied if mode is AdvancedConfiguration) More...
|
|
bool | intersectionSnapping () const |
| Returns if the snapping on intersection is enabled. More...
|
|
double | maximumScale () const |
| Returns the max scale (i.e. More...
|
|
double | minimumScale () const |
| Returns the min scale (i.e. More...
|
|
Qgis::SnappingMode | mode () const |
| Returns the mode (all layers, active layer, per layer settings) More...
|
|
bool | operator!= (const QgsSnappingConfig &other) const |
| Compare this configuration to other. More...
|
|
bool | operator== (const QgsSnappingConfig &other) const |
|
QgsProject * | project () const |
| The project from which the snapped layers should be retrieved. More...
|
|
void | readProject (const QDomDocument &doc) |
| Reads the configuration from the specified QGIS project document. More...
|
|
bool | removeLayers (const QList< QgsMapLayer * > &layers) |
| Removes the specified layers from the individual layer configuration. More...
|
|
void | reset () |
| reset to default values More...
|
|
ScaleDependencyMode | scaleDependencyMode () const |
| Returns the scale dependency mode. More...
|
|
bool | selfSnapping () const |
| Returns if self snapping (snapping to the currently digitized feature) is enabled. More...
|
|
void | setEnabled (bool enabled) |
| enables the snapping More...
|
|
void | setIndividualLayerSettings (QgsVectorLayer *vl, const QgsSnappingConfig::IndividualLayerSettings &individualLayerSettings) |
| Sets individual layer snappings settings (applied if mode is AdvancedConfiguration) More...
|
|
void | setIntersectionSnapping (bool enabled) |
| Sets if the snapping on intersection is enabled. More...
|
|
void | setMaximumScale (double maxScale) |
| Set the max scale on which snapping is enabled, 0.0 disable scale limit. More...
|
|
void | setMinimumScale (double minScale) |
| Sets the min scale on which snapping is enabled, 0.0 disable scale limit. More...
|
|
void | setMode (Qgis::SnappingMode mode) |
| define the mode of snapping More...
|
|
void | setProject (QgsProject *project) |
| The project from which the snapped layers should be retrieved. More...
|
|
void | setScaleDependencyMode (ScaleDependencyMode mode) |
| Set the scale dependency mode. More...
|
|
void | setSelfSnapping (bool enabled) |
| Sets if self snapping (snapping to the currently digitized feature) is enabled. More...
|
|
void | setTolerance (double tolerance) |
| Sets the tolerance. More...
|
|
Q_DECL_DEPRECATED void | setType (QgsSnappingConfig::SnappingType type) |
| define the type of snapping More...
|
|
void | setTypeFlag (Qgis::SnappingTypes 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...
|
|
Q_DECL_DEPRECATED QgsSnappingConfig::SnappingType | type () const |
| Returns the flags type (vertices | segments | area | centroid | middle) More...
|
|
Qgis::SnappingTypes | typeFlag () const |
| Returns the flags type (vertices | segments | area | centroid | middle) More...
|
|
QgsTolerance::UnitType | units () const |
| Returns the type of units. More...
|
|
void | writeProject (QDomDocument &doc) |
| Writes the configuration to the specified QGIS project document. More...
|
|