Skip to content
Permalink
Browse files
Sipify core.QgsFeatureFilterProvider
  • Loading branch information
arnaud-morvan committed May 3, 2017
1 parent 3be20f8 commit 05933b171af9439bac03b52eadb8f807a754b0d3
Showing with 48 additions and 18 deletions.
  1. +0 −1 python/auto_sip.blacklist
  2. +44 −17 python/core/qgsfeaturefilterprovider.sip
  3. +4 −0 src/core/qgsfeaturefilterprovider.h
@@ -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
@@ -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 *
************************************************************************/
@@ -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

0 comments on commit 05933b1

Please sign in to comment.