QGIS/python/core/auto_generated/qgsvectorlayerfeaturecounter.sip.in

75 lines
2.5 KiB
Plaintext
Raw Normal View History

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsvectorlayerfeaturecounter.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsVectorLayerFeatureCounter : QgsTask
{
%Docstring
2017-12-15 10:36:55 -04:00
Counts the features in a QgsVectorLayer in task.
You should most likely not use this directly and instead call
QgsVectorLayer.countSymbolFeatures() and connect to the signal
2017-12-19 11:43:52 -04:00
:py:func:`QgsVectorLayer.symbolFeatureCountMapChanged()`
.. versionadded:: 3.0
%End
%TypeHeaderCode
#include "qgsvectorlayerfeaturecounter.h"
%End
public:
2019-10-31 08:36:34 -04:00
QgsVectorLayerFeatureCounter( QgsVectorLayer *layer, const QgsExpressionContext &context = QgsExpressionContext(), bool storeSymbolFids = false );
%Docstring
2017-12-15 10:36:55 -04:00
Create a new feature counter for ``layer``.
2019-10-31 08:36:34 -04:00
:param layer: Target QgsVectorLayer to perform counting on.
:param context: Specific QgsExpressionContext to use during the rendering step.
:param storeSymbolFids: If ``True`` will store the feature ids (fids), otherwise will only count the number of features per symbol. Default ``False``.
%End
2019-07-15 01:12:24 -04:00
virtual bool run();
2019-07-15 01:12:24 -04:00
%Docstring
Calculates the feature count and Ids per symbol
%End
long featureCount( const QString &legendKey ) const;
%Docstring
2019-07-15 01:12:24 -04:00
Returns the feature count for a particular ``legendKey``.
2017-12-15 10:36:55 -04:00
If the key has not been found, -1 will be returned.
%End
2019-07-15 01:12:24 -04:00
QgsFeatureIds featureIds( const QString &symbolkey ) const;
%Docstring
Returns the feature Ids for a particular ``legendKey``.
If the key has not been found an empty QSet will be returned.
.. versionadded:: 3.10
%End
signals:
void symbolsCounted();
%Docstring
2017-12-15 10:36:55 -04:00
Emitted when the symbols have been counted.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsvectorlayerfeaturecounter.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/