QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
qgsgeometryoptions.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsgeometryoptions.h
3
-------------------
4
begin : Aug 23, 2018
5
copyright : (C) 2018 by Matthias Kuhn
6
email : matthias@opengis.ch
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSGEOMETRYOPTIONS_H
19
#define QGSGEOMETRYOPTIONS_H
20
21
#include "qgis_core.h"
22
#include "
qgsgeometry.h
"
23
24
#include <QObject>
25
26
class
QgsSettingsEntryString
;
27
36
class
CORE_EXPORT
QgsGeometryOptions
:
public
QObject
37
{
38
Q_OBJECT
39
40
public
:
44
QgsGeometryOptions
();
45
51
bool
removeDuplicateNodes
()
const
;
52
58
void
setRemoveDuplicateNodes
(
bool
value );
59
67
double
geometryPrecision
()
const
;
68
76
void
setGeometryPrecision
(
double
value );
77
83
bool
isActive
()
const
;
84
90
void
apply
(
QgsGeometry
&geometry )
const
;
91
97
QStringList
geometryChecks
()
const
;
98
104
void
setGeometryChecks
(
const
QStringList &
geometryChecks
);
105
111
QVariantMap
checkConfiguration
(
const
QString &checkId )
const
;
112
118
void
setCheckConfiguration
(
const
QString &checkId,
const
QVariantMap &
checkConfiguration
);
119
125
void
writeXml
( QDomNode &node )
const
;
126
132
void
readXml
(
const
QDomNode &node );
133
134
#ifndef SIP_RUN
136
static
const
QgsSettingsEntryString
*
settingsGeometryValidationDefaultChecks
;
137
#endif
138
139
signals:
140
146
void
checkConfigurationChanged
();
147
153
void
geometryChecksChanged
();
154
160
void
removeDuplicateNodesChanged
();
161
169
void
geometryPrecisionChanged
();
170
171
private
:
177
bool
mRemoveDuplicateNodes =
false
;
178
186
double
mGeometryPrecision = 0.0;
187
188
QStringList mGeometryChecks;
189
QVariantMap mCheckConfiguration;
190
};
191
192
#endif
// QGSGEOMETRYOPTIONS_H
QgsGeometryOptions::isActive
bool isActive() const
Determines if at least one fix is enabled.
Definition
qgsgeometryoptions.cpp:59
QgsGeometryOptions::removeDuplicateNodesChanged
void removeDuplicateNodesChanged()
Automatically remove duplicate nodes on all geometries which are edited on this layer.
QgsGeometryOptions::geometryChecksChanged
void geometryChecksChanged()
A list of activated geometry checks.
QgsGeometryOptions::geometryPrecision
double geometryPrecision() const
The precision in which geometries on this layer should be saved.
Definition
qgsgeometryoptions.cpp:48
QgsGeometryOptions::removeDuplicateNodes
bool removeDuplicateNodes() const
Automatically remove duplicate nodes on all geometries which are edited on this layer.
Definition
qgsgeometryoptions.cpp:37
QgsGeometryOptions::setGeometryPrecision
void setGeometryPrecision(double value)
The precision in which geometries on this layer should be saved.
Definition
qgsgeometryoptions.cpp:53
QgsGeometryOptions::setRemoveDuplicateNodes
void setRemoveDuplicateNodes(bool value)
Automatically remove duplicate nodes on all geometries which are edited on this layer.
Definition
qgsgeometryoptions.cpp:42
QgsGeometryOptions::readXml
void readXml(const QDomNode &node)
Read the geometry options from node.
Definition
qgsgeometryoptions.cpp:112
QgsGeometryOptions::QgsGeometryOptions
QgsGeometryOptions()
Create a new QgsGeometryOptions object.
Definition
qgsgeometryoptions.cpp:32
QgsGeometryOptions::setCheckConfiguration
void setCheckConfiguration(const QString &checkId, const QVariantMap &checkConfiguration)
Set the configuration for the check checkId.
Definition
qgsgeometryoptions.cpp:89
QgsGeometryOptions::settingsGeometryValidationDefaultChecks
static const QgsSettingsEntryString * settingsGeometryValidationDefaultChecks
Settings entry search path for templates.
Definition
qgsgeometryoptions.h:136
QgsGeometryOptions::geometryChecks
QStringList geometryChecks() const
A list of activated geometry checks.
Definition
qgsgeometryoptions.cpp:73
QgsGeometryOptions::checkConfigurationChanged
void checkConfigurationChanged()
Access the configuration for the check checkId.
QgsGeometryOptions::apply
void apply(QgsGeometry &geometry) const
Apply any fixes configured on this class to geometry.
Definition
qgsgeometryoptions.cpp:64
QgsGeometryOptions::geometryPrecisionChanged
void geometryPrecisionChanged()
The precision in which geometries on this layer should be saved.
QgsGeometryOptions::writeXml
void writeXml(QDomNode &node) const
Write the geometry options to the node.
Definition
qgsgeometryoptions.cpp:95
QgsGeometryOptions::setGeometryChecks
void setGeometryChecks(const QStringList &geometryChecks)
A list of activated geometry checks.
Definition
qgsgeometryoptions.cpp:78
QgsGeometryOptions::checkConfiguration
QVariantMap checkConfiguration(const QString &checkId) const
Access the configuration for the check checkId.
Definition
qgsgeometryoptions.cpp:84
QgsGeometry
A geometry is the spatial representation of a feature.
Definition
qgsgeometry.h:267
QgsSettingsEntryString
A string settings entry.
Definition
qgssettingsentryimpl.h:123
qgsgeometry.h
Generated on
for QGIS API Documentation by
1.17.0