QGIS API Documentation 3.41.0-Master (3291e9ff48b)
Loading...
Searching...
No Matches
Signals | Public Member Functions | Static Public Attributes | List of all members
QgsGeometryOptions Class Reference

The QgsGeometryOptions class contains options to automatically adjust geometries to constraints on a layer. More...

#include <qgsgeometryoptions.h>

Inheritance diagram for QgsGeometryOptions:
Inheritance graph
[legend]

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 QgsSettingsEntryStringsettingsGeometryValidationDefaultChecks = new QgsSettingsEntryString( QStringLiteral( "default_checks" ), QgsSettingsTree::sTreeGeometryValidation, QString() )
 Settings entry search path for templates.
 

Detailed Description

The QgsGeometryOptions class contains options to automatically adjust geometries to constraints on a layer.

Since
QGIS 3.4

Definition at line 36 of file qgsgeometryoptions.h.

Constructor & Destructor Documentation

◆ QgsGeometryOptions()

QgsGeometryOptions::QgsGeometryOptions ( )

Create a new QgsGeometryOptions object.

Definition at line 26 of file qgsgeometryoptions.cpp.

Member Function Documentation

◆ apply()

void QgsGeometryOptions::apply ( QgsGeometry geometry) const

Apply any fixes configured on this class to geometry.

Since
QGIS 3.4

Definition at line 58 of file qgsgeometryoptions.cpp.

◆ checkConfiguration()

QVariantMap QgsGeometryOptions::checkConfiguration ( const QString &  checkId) const

Access the configuration for the check checkId.

Since
QGIS 3.4

Definition at line 78 of file qgsgeometryoptions.cpp.

◆ checkConfigurationChanged

void QgsGeometryOptions::checkConfigurationChanged ( )
signal

Access the configuration for the check checkId.

Since
QGIS 3.4

◆ geometryChecks()

QStringList QgsGeometryOptions::geometryChecks ( ) const

A list of activated geometry checks.

Since
QGIS 3.4

Definition at line 67 of file qgsgeometryoptions.cpp.

◆ geometryChecksChanged

void QgsGeometryOptions::geometryChecksChanged ( )
signal

A list of activated geometry checks.

Since
QGIS 3.4

◆ geometryPrecision()

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.

Since
QGIS 3.4

Definition at line 42 of file qgsgeometryoptions.cpp.

◆ geometryPrecisionChanged

void QgsGeometryOptions::geometryPrecisionChanged ( )
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.

Since
QGIS 3.4

◆ isActive()

bool QgsGeometryOptions::isActive ( ) const

Determines if at least one fix is enabled.

Since
QGIS 3.4

Definition at line 53 of file qgsgeometryoptions.cpp.

◆ readXml()

void QgsGeometryOptions::readXml ( const QDomNode &  node)

Read the geometry options from node.

Since
QGIS 3.4

Definition at line 106 of file qgsgeometryoptions.cpp.

◆ removeDuplicateNodes()

bool QgsGeometryOptions::removeDuplicateNodes ( ) const

Automatically remove duplicate nodes on all geometries which are edited on this layer.

Since
QGIS 3.4

Definition at line 31 of file qgsgeometryoptions.cpp.

◆ removeDuplicateNodesChanged

void QgsGeometryOptions::removeDuplicateNodesChanged ( )
signal

Automatically remove duplicate nodes on all geometries which are edited on this layer.

Since
QGIS 3.4

◆ setCheckConfiguration()

void QgsGeometryOptions::setCheckConfiguration ( const QString &  checkId,
const QVariantMap &  checkConfiguration 
)

Set the configuration for the check checkId.

Since
QGIS 3.4

Definition at line 83 of file qgsgeometryoptions.cpp.

◆ setGeometryChecks()

void QgsGeometryOptions::setGeometryChecks ( const QStringList &  geometryChecks)

A list of activated geometry checks.

Since
QGIS 3.4

Definition at line 72 of file qgsgeometryoptions.cpp.

◆ setGeometryPrecision()

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.

Since
QGIS 3.4

Definition at line 47 of file qgsgeometryoptions.cpp.

◆ setRemoveDuplicateNodes()

void QgsGeometryOptions::setRemoveDuplicateNodes ( bool  value)

Automatically remove duplicate nodes on all geometries which are edited on this layer.

Since
QGIS 3.4

Definition at line 36 of file qgsgeometryoptions.cpp.

◆ writeXml()

void QgsGeometryOptions::writeXml ( QDomNode &  node) const

Write the geometry options to the node.

Since
QGIS 3.4

Definition at line 89 of file qgsgeometryoptions.cpp.

Member Data Documentation

◆ settingsGeometryValidationDefaultChecks

const QgsSettingsEntryString * QgsGeometryOptions::settingsGeometryValidationDefaultChecks = new QgsSettingsEntryString( QStringLiteral( "default_checks" ), QgsSettingsTree::sTreeGeometryValidation, QString() )
static

Settings entry search path for templates.

Definition at line 137 of file qgsgeometryoptions.h.


The documentation for this class was generated from the following files: