Skip to content

Commit 05933b1

Browse files
committed
Sipify core.QgsFeatureFilterProvider
1 parent 3be20f8 commit 05933b1

File tree

3 files changed

+48
-18
lines changed

3 files changed

+48
-18
lines changed

python/auto_sip.blacklist

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ core/qgseditorwidgetsetup.sip
99
core/qgserror.sip
1010
core/qgsexpressioncontext.sip
1111
core/qgsexpressioncontextgenerator.sip
12-
core/qgsfeaturefilterprovider.sip
1312
core/qgsfeatureiterator.sip
1413
core/qgsfeaturerequest.sip
1514
core/qgsgeometrysimplifier.sip
+44-17
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,54 @@
1-
/** \ingroup core
2-
* \class QgsFeatureFilterProvider
3-
* Abstract interface for use by classes that filter the features of a layer.
4-
* A QgsFeatureFilterProvider provides a method for modifying a QgsFeatureRequest in place to apply
5-
* additional filters to the request.
6-
* \note added in QGIS 2.14
7-
**/
1+
/************************************************************************
2+
* This file has been generated automatically from *
3+
* *
4+
* src/core/qgsfeaturefilterprovider.h *
5+
* *
6+
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
7+
************************************************************************/
8+
9+
10+
11+
12+
13+
14+
15+
816
class QgsFeatureFilterProvider
917
{
10-
%TypeHeaderCode
11-
#include <qgsfeaturefilterprovider.h>
18+
%Docstring
19+
Abstract interface for use by classes that filter the features of a layer.
20+
A QgsFeatureFilterProvider provides a method for modifying a QgsFeatureRequest in place to apply
21+
additional filters to the request.
22+
.. versionadded:: 2.14
23+
*
1224
%End
1325

26+
%TypeHeaderCode
27+
#include "qgsfeaturefilterprovider.h"
28+
%End
1429
public:
1530

16-
/** Add additional filters to the feature request to further restrict the features returned by the request.
17-
* Derived classes must implement this method.
18-
* @param layer the layer to filter
19-
* @param featureRequest the feature request to update
20-
*/
31+
2132
virtual void filterFeatures( const QgsVectorLayer *layer, QgsFeatureRequest &featureRequest ) const = 0;
33+
%Docstring
34+
Add additional filters to the feature request to further restrict the features returned by the request.
35+
Derived classes must implement this method.
36+
\param layer the layer to filter
37+
\param featureRequest the feature request to update
38+
%End
2239

23-
/** Create a clone of the feature filter provider
24-
* @return a new clone
25-
*/
2640
virtual QgsFeatureFilterProvider *clone() const = 0 /Factory/;
41+
%Docstring
42+
Create a clone of the feature filter provider
43+
:return: a new clone
44+
:rtype: QgsFeatureFilterProvider
45+
%End
2746
};
47+
48+
/************************************************************************
49+
* This file has been generated automatically from *
50+
* *
51+
* src/core/qgsfeaturefilterprovider.h *
52+
* *
53+
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
54+
************************************************************************/

src/core/qgsfeaturefilterprovider.h

+4
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,15 @@ class CORE_EXPORT QgsFeatureFilterProvider
4040
{
4141
public:
4242

43+
#ifndef SIP_RUN
44+
4345
//! Constructor
4446
QgsFeatureFilterProvider() {}
4547

4648
virtual ~QgsFeatureFilterProvider() = default;
4749

50+
#endif
51+
4852
/** Add additional filters to the feature request to further restrict the features returned by the request.
4953
* Derived classes must implement this method.
5054
* \param layer the layer to filter

0 commit comments

Comments
 (0)