2018-08-23 18:32:46 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2018-09-19 12:12:53 +02:00
|
|
|
* src/core/qgsgeometryoptions.h *
|
2018-08-23 18:32:46 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-10-01 13:10:40 +02:00
|
|
|
|
|
|
|
class QgsGeometryOptions : QObject
|
2018-08-23 18:32:46 +02:00
|
|
|
{
|
2021-03-22 21:13:52 +01:00
|
|
|
%Docstring(signature="appended")
|
2018-08-24 11:33:59 +02:00
|
|
|
|
2021-01-30 09:16:35 +10:00
|
|
|
The :py:class:`QgsGeometryOptions` class contains options to automatically adjust geometries to
|
2018-08-24 07:56:58 +02:00
|
|
|
constraints on a layer.
|
2018-08-24 11:33:59 +02:00
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
2018-08-23 18:32:46 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
2018-09-19 12:12:53 +02:00
|
|
|
#include "qgsgeometryoptions.h"
|
2018-08-23 18:32:46 +02:00
|
|
|
%End
|
|
|
|
public:
|
2018-08-24 07:56:58 +02:00
|
|
|
|
2018-09-19 12:12:53 +02:00
|
|
|
QgsGeometryOptions();
|
2018-08-24 07:56:58 +02:00
|
|
|
%Docstring
|
2018-09-19 12:12:53 +02:00
|
|
|
Create a new QgsGeometryOptions object.
|
2018-08-24 07:56:58 +02:00
|
|
|
%End
|
2018-08-23 18:32:46 +02:00
|
|
|
|
|
|
|
bool removeDuplicateNodes() const;
|
|
|
|
%Docstring
|
|
|
|
Automatically remove duplicate nodes on all geometries which are edited on this layer.
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setRemoveDuplicateNodes( bool value );
|
|
|
|
%Docstring
|
|
|
|
Automatically remove duplicate nodes on all geometries which are edited on this layer.
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
double geometryPrecision() const;
|
|
|
|
%Docstring
|
|
|
|
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.
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setGeometryPrecision( double value );
|
|
|
|
%Docstring
|
|
|
|
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.
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
bool isActive() const;
|
|
|
|
%Docstring
|
|
|
|
Determines if at least one fix is enabled.
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
void apply( QgsGeometry &geometry ) const;
|
|
|
|
%Docstring
|
|
|
|
Apply any fixes configured on this class to ``geometry``.
|
|
|
|
|
2018-09-14 10:46:42 +02:00
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
QStringList geometryChecks() const;
|
|
|
|
%Docstring
|
|
|
|
A list of activated geometry checks.
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setGeometryChecks( const QStringList &geometryChecks );
|
|
|
|
%Docstring
|
|
|
|
A list of activated geometry checks.
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
QVariantMap checkConfiguration( const QString &checkId ) const;
|
|
|
|
%Docstring
|
|
|
|
Access the configuration for the check ``checkId``.
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setCheckConfiguration( const QString &checkId, const QVariantMap &checkConfiguration );
|
|
|
|
%Docstring
|
|
|
|
Set the configuration for the check ``checkId``.
|
|
|
|
|
2018-09-19 12:12:53 +02:00
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
void writeXml( QDomNode &node ) const;
|
|
|
|
%Docstring
|
|
|
|
Write the geometry options to the ``node``.
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
void readXml( const QDomNode &node );
|
|
|
|
%Docstring
|
|
|
|
Read the geometry options from ``node``.
|
|
|
|
|
2018-10-01 13:10:40 +02:00
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
2021-04-08 22:01:41 +02:00
|
|
|
|
2018-10-01 13:10:40 +02:00
|
|
|
signals:
|
|
|
|
|
|
|
|
void checkConfigurationChanged();
|
|
|
|
%Docstring
|
|
|
|
Access the configuration for the check ``checkId``.
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
void geometryChecksChanged();
|
|
|
|
%Docstring
|
|
|
|
A list of activated geometry checks.
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
void removeDuplicateNodesChanged();
|
|
|
|
%Docstring
|
|
|
|
Automatically remove duplicate nodes on all geometries which are edited on this layer.
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
void geometryPrecisionChanged();
|
|
|
|
%Docstring
|
|
|
|
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.
|
|
|
|
|
2018-08-23 18:32:46 +02:00
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2018-09-19 12:12:53 +02:00
|
|
|
* src/core/qgsgeometryoptions.h *
|
2018-08-23 18:32:46 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|