QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
The QgsGeometryOptions class contains options to automatically adjust geometries to constraints on a layer. More...
#include <qgsgeometryoptions.h>
Signals | |
void | checkConfigurationChanged () |
Access the configuration for the check checkId. | |
void | geometryChecksChanged () |
A list of activated geometry checks. | |
void | geometryPrecisionChanged () |
The precision in which geometries on this layer should be saved. | |
void | removeDuplicateNodesChanged () |
Automatically remove duplicate nodes on all geometries which are edited on this layer. | |
Public Member Functions | |
QgsGeometryOptions () | |
Create a new QgsGeometryOptions object. | |
void | apply (QgsGeometry &geometry) const |
Apply any fixes configured on this class to geometry. | |
QVariantMap | checkConfiguration (const QString &checkId) const |
Access the configuration for the check checkId. | |
QStringList | geometryChecks () const |
A list of activated geometry checks. | |
double | geometryPrecision () const |
The precision in which geometries on this layer should be saved. | |
bool | isActive () const |
Determines if at least one fix is enabled. | |
void | readXml (const QDomNode &node) |
Read the geometry options from node. | |
bool | removeDuplicateNodes () const |
Automatically remove duplicate nodes on all geometries which are edited on this layer. | |
void | setCheckConfiguration (const QString &checkId, const QVariantMap &checkConfiguration) |
Set the configuration for the check checkId. | |
void | setGeometryChecks (const QStringList &geometryChecks) |
A list of activated geometry checks. | |
void | setGeometryPrecision (double value) |
The precision in which geometries on this layer should be saved. | |
void | setRemoveDuplicateNodes (bool value) |
Automatically remove duplicate nodes on all geometries which are edited on this layer. | |
void | writeXml (QDomNode &node) const |
Write the geometry options to the node. | |
Static Public Attributes | |
static const QgsSettingsEntryString * | settingsGeometryValidationDefaultChecks = new QgsSettingsEntryString( QStringLiteral( "default_checks" ), QgsSettingsTree::sTreeGeometryValidation, QString() ) |
Settings entry search path for templates. | |
The QgsGeometryOptions class contains options to automatically adjust geometries to constraints on a layer.
Definition at line 36 of file qgsgeometryoptions.h.
QgsGeometryOptions::QgsGeometryOptions | ( | ) |
Create a new QgsGeometryOptions object.
Definition at line 25 of file qgsgeometryoptions.cpp.
void QgsGeometryOptions::apply | ( | QgsGeometry & | geometry | ) | const |
Apply any fixes configured on this class to geometry.
Definition at line 57 of file qgsgeometryoptions.cpp.
QVariantMap QgsGeometryOptions::checkConfiguration | ( | const QString & | checkId | ) | const |
Access the configuration for the check checkId.
Definition at line 77 of file qgsgeometryoptions.cpp.
|
signal |
Access the configuration for the check checkId.
QStringList QgsGeometryOptions::geometryChecks | ( | ) | const |
A list of activated geometry checks.
Definition at line 66 of file qgsgeometryoptions.cpp.
|
signal |
A list of activated geometry checks.
double QgsGeometryOptions::geometryPrecision | ( | ) | const |
The precision in which geometries on this layer should be saved.
Geometries which are edited on this layer will be rounded to multiples of this value (snap to grid). Set to 0.0 to disable.
Definition at line 41 of file qgsgeometryoptions.cpp.
|
signal |
The precision in which geometries on this layer should be saved.
Geometries which are edited on this layer will be rounded to multiples of this value (snap to grid). Set to 0.0 to disable.
bool QgsGeometryOptions::isActive | ( | ) | const |
Determines if at least one fix is enabled.
Definition at line 52 of file qgsgeometryoptions.cpp.
void QgsGeometryOptions::readXml | ( | const QDomNode & | node | ) |
Read the geometry options from node.
Definition at line 105 of file qgsgeometryoptions.cpp.
bool QgsGeometryOptions::removeDuplicateNodes | ( | ) | const |
Automatically remove duplicate nodes on all geometries which are edited on this layer.
Definition at line 30 of file qgsgeometryoptions.cpp.
|
signal |
Automatically remove duplicate nodes on all geometries which are edited on this layer.
void QgsGeometryOptions::setCheckConfiguration | ( | const QString & | checkId, |
const QVariantMap & | checkConfiguration | ||
) |
Set the configuration for the check checkId.
Definition at line 82 of file qgsgeometryoptions.cpp.
void QgsGeometryOptions::setGeometryChecks | ( | const QStringList & | geometryChecks | ) |
A list of activated geometry checks.
Definition at line 71 of file qgsgeometryoptions.cpp.
void QgsGeometryOptions::setGeometryPrecision | ( | double | value | ) |
The precision in which geometries on this layer should be saved.
Geometries which are edited on this layer will be rounded to multiples of this value (snap to grid). Set to 0.0 to disable.
Definition at line 46 of file qgsgeometryoptions.cpp.
void QgsGeometryOptions::setRemoveDuplicateNodes | ( | bool | value | ) |
Automatically remove duplicate nodes on all geometries which are edited on this layer.
Definition at line 35 of file qgsgeometryoptions.cpp.
void QgsGeometryOptions::writeXml | ( | QDomNode & | node | ) | const |
Write the geometry options to the node.
Definition at line 88 of file qgsgeometryoptions.cpp.
|
static |
Settings entry search path for templates.
Definition at line 137 of file qgsgeometryoptions.h.