Skip to content

Commit

Permalink
Sipify core.QgsFeatureFilterProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-morvan committed May 3, 2017
1 parent 3be20f8 commit 05933b1
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 18 deletions.
1 change: 0 additions & 1 deletion python/auto_sip.blacklist
Expand Up @@ -9,7 +9,6 @@ core/qgseditorwidgetsetup.sip
core/qgserror.sip
core/qgsexpressioncontext.sip
core/qgsexpressioncontextgenerator.sip
core/qgsfeaturefilterprovider.sip
core/qgsfeatureiterator.sip
core/qgsfeaturerequest.sip
core/qgsgeometrysimplifier.sip
Expand Down
61 changes: 44 additions & 17 deletions python/core/qgsfeaturefilterprovider.sip
@@ -1,27 +1,54 @@
/** \ingroup core
* \class QgsFeatureFilterProvider
* Abstract interface for use by classes that filter the features of a layer.
* A QgsFeatureFilterProvider provides a method for modifying a QgsFeatureRequest in place to apply
* additional filters to the request.
* \note added in QGIS 2.14
**/
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsfeaturefilterprovider.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/








class QgsFeatureFilterProvider
{
%TypeHeaderCode
#include <qgsfeaturefilterprovider.h>
%Docstring
Abstract interface for use by classes that filter the features of a layer.
A QgsFeatureFilterProvider provides a method for modifying a QgsFeatureRequest in place to apply
additional filters to the request.
.. versionadded:: 2.14
*
%End

%TypeHeaderCode
#include "qgsfeaturefilterprovider.h"
%End
public:

/** Add additional filters to the feature request to further restrict the features returned by the request.
* Derived classes must implement this method.
* @param layer the layer to filter
* @param featureRequest the feature request to update
*/

virtual void filterFeatures( const QgsVectorLayer *layer, QgsFeatureRequest &featureRequest ) const = 0;
%Docstring
Add additional filters to the feature request to further restrict the features returned by the request.
Derived classes must implement this method.
\param layer the layer to filter
\param featureRequest the feature request to update
%End

/** Create a clone of the feature filter provider
* @return a new clone
*/
virtual QgsFeatureFilterProvider *clone() const = 0 /Factory/;
%Docstring
Create a clone of the feature filter provider
:return: a new clone
:rtype: QgsFeatureFilterProvider
%End
};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsfeaturefilterprovider.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
4 changes: 4 additions & 0 deletions src/core/qgsfeaturefilterprovider.h
Expand Up @@ -40,11 +40,15 @@ class CORE_EXPORT QgsFeatureFilterProvider
{
public:

#ifndef SIP_RUN

//! Constructor
QgsFeatureFilterProvider() {}

virtual ~QgsFeatureFilterProvider() = default;

#endif

/** Add additional filters to the feature request to further restrict the features returned by the request.
* Derived classes must implement this method.
* \param layer the layer to filter
Expand Down

0 comments on commit 05933b1

Please sign in to comment.