Skip to content

Commit 9a19ba3

Browse files
committedSep 30, 2018
Dox and bindings
1 parent 3563f15 commit 9a19ba3

File tree

3 files changed

+31
-17
lines changed

3 files changed

+31
-17
lines changed
 

‎python/analysis/auto_generated/vector/geometry_checker/qgsgeometrycheckregistry.sip.in

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ This class manages all known geometry check factories.
1818

1919
QgsGeometryCheckRegistry is not usually directly created, but rather accessed through
2020
:py:func:`QgsAnalysis.geometryCheckRegistry()`
21+
22+
.. versionadded:: 3.4
2123
%End
2224

2325
%TypeHeaderCode
@@ -31,11 +33,16 @@ Constructor for QgsGeometryCheckRegistry. QgsGeometryCheckRegistry is not usuall
3133
:py:func:`QgsAnalysis.geometryCheckRegistry()`
3234
%End
3335

34-
void initialize();
35-
3636
~QgsGeometryCheckRegistry();
3737

38-
QgsGeometryCheck *geometryCheck( const QString &checkId, QgsGeometryCheckContext *context, const QVariantMap &geometryCheckConfig ) /Transfer/;
38+
QgsGeometryCheck *geometryCheck( const QString &checkId, QgsGeometryCheckContext *context, const QVariantMap &geometryCheckConfig ) /Factory/;
39+
%Docstring
40+
Create a new geometryCheck of type ``checkId``
41+
Pass the ``context`` and ``geometryCheckConfiguration`` to the newly created check.
42+
Ownership is transferred to the caller.
43+
44+
.. versionadded:: 3.4
45+
%End
3946

4047
QList<QgsGeometryCheckFactory *> geometryCheckFactories( QgsVectorLayer *layer, QgsGeometryCheck::Flags flags = 0 ) const;
4148
%Docstring
@@ -45,6 +52,11 @@ Get all geometry check factories that are compatible with ``layer`` and have all
4552
%End
4653

4754
void registerGeometryCheck( QgsGeometryCheckFactory *checkFactory /Transfer/ );
55+
%Docstring
56+
Register a new geometry check factory.
57+
58+
.. versionadded:: 3.4
59+
%End
4860

4961
};
5062

‎src/analysis/vector/geometry_checker/qgsgeometrycheckregistry.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@
1818
#include "qgis.h"
1919

2020

21-
QgsGeometryCheckRegistry::QgsGeometryCheckRegistry()
22-
{
23-
24-
}
25-
26-
void QgsGeometryCheckRegistry::initialize()
27-
{
28-
29-
}
30-
3121
QgsGeometryCheckRegistry::~QgsGeometryCheckRegistry()
3222
{
3323
qDeleteAll( mGeometryCheckFactories.values() );

‎src/analysis/vector/geometry_checker/qgsgeometrycheckregistry.h

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ struct QgsGeometryCheckContext;
3434
*
3535
* QgsGeometryCheckRegistry is not usually directly created, but rather accessed through
3636
* QgsAnalysis::geometryCheckRegistry().
37+
*
38+
* \since QGIS 3.4
3739
*/
3840
class ANALYSIS_EXPORT QgsGeometryCheckRegistry
3941
{
@@ -43,9 +45,7 @@ class ANALYSIS_EXPORT QgsGeometryCheckRegistry
4345
* Constructor for QgsGeometryCheckRegistry. QgsGeometryCheckRegistry is not usually directly created, but rather accessed through
4446
* QgsAnalysis::geometryCheckRegistry().
4547
*/
46-
QgsGeometryCheckRegistry();
47-
48-
void initialize();
48+
QgsGeometryCheckRegistry() = default;
4949

5050
/**
5151
* Destructor
@@ -54,7 +54,14 @@ class ANALYSIS_EXPORT QgsGeometryCheckRegistry
5454
*/
5555
~QgsGeometryCheckRegistry();
5656

57-
QgsGeometryCheck *geometryCheck( const QString &checkId, QgsGeometryCheckContext *context, const QVariantMap &geometryCheckConfig ) SIP_TRANSFER;
57+
/**
58+
* Create a new geometryCheck of type \a checkId
59+
* Pass the \a context and \a geometryCheckConfiguration to the newly created check.
60+
* Ownership is transferred to the caller.
61+
*
62+
* \since QGIS 3.4
63+
*/
64+
QgsGeometryCheck *geometryCheck( const QString &checkId, QgsGeometryCheckContext *context, const QVariantMap &geometryCheckConfig ) SIP_FACTORY;
5865

5966
/**
6067
* Get all geometry check factories that are compatible with \a layer and have all of the \a flags set.
@@ -63,6 +70,11 @@ class ANALYSIS_EXPORT QgsGeometryCheckRegistry
6370
*/
6471
QList<QgsGeometryCheckFactory *> geometryCheckFactories( QgsVectorLayer *layer, QgsGeometryCheck::Flags flags = nullptr ) const;
6572

73+
/**
74+
* Register a new geometry check factory.
75+
*
76+
* \since QGIS 3.4
77+
*/
6678
void registerGeometryCheck( QgsGeometryCheckFactory *checkFactory SIP_TRANSFER );
6779

6880
private:

0 commit comments

Comments
 (0)