Skip to content
Permalink
Browse files

Save geometry configuration to layer

  • Loading branch information
m-kuhn committed Sep 12, 2018
1 parent 71dbd5a commit 5e27163705cd9fd3ce4ffcd3adb729b002e043dd
Showing with 31 additions and 0 deletions.
  1. +31 −0 src/core/qgsgeometryoptions.h
@@ -85,6 +85,34 @@ class CORE_EXPORT QgsGeometryOptions
*/
void apply( QgsGeometry &geometry ) const;

/**
* A list of activated geometry checks.
*
* \since QGIS 3.4
*/
QStringList geometryChecks() const;

/**
* A list of activated geometry checks.
*
* \since QGIS 3.4
*/
void setGeometryChecks( const QStringList &geometryChecks );

/**
* Access the configuration for the check \a checkId.
*
* \since QGIS 3.4
*/
QVariantMap checkConfiguration( const QString &checkId ) const;

/**
* Set the configuration for the check \a checkId.
*
* \since QGIS 3.4
*/
void setCheckConfiguration( const QString &checkId, const QVariantMap &checkConfiguration );

/**
* Write the geometry options to the \a node.
*
@@ -116,6 +144,9 @@ class CORE_EXPORT QgsGeometryOptions
* \since QGIS 3.4
*/
double mGeometryPrecision = 0.0;

QStringList mGeometryChecks;
QVariantMap mCheckConfiguration;
};

#endif // QGSGEOMETRYOPTIONS_H

0 comments on commit 5e27163

Please sign in to comment.
You can’t perform that action at this time.