Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sipify core.QgsFeatureFilterProvider
- Loading branch information
1 parent
3be20f8
commit 05933b1
Showing
3 changed files
with
48 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters