Skip to content

Commit

Permalink
Save geometry configuration to layer
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 15, 2018
1 parent 71dbd5a commit 5e27163
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/core/qgsgeometryoptions.h
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.