QGIS API Documentation 3.41.0-Master (3c143d501a8)
|
Is an interface class to abstract feature selection handling. More...
#include <qgsifeatureselectionmanager.h>
Signals | |
void | selectionChanged (const QgsFeatureIds &selected, const QgsFeatureIds &deselected, bool clearAndSelect) |
Emitted when selection was changed. | |
Public Member Functions | |
QgsIFeatureSelectionManager (QObject *parent) | |
virtual void | deselect (const QgsFeatureIds &ids)=0 |
Deselect features by feature ids. | |
virtual void | select (const QgsFeatureIds &ids)=0 |
Select features by feature ids. | |
virtual int | selectedFeatureCount ()=0 |
Returns the number of features that are selected in this layer. | |
virtual const QgsFeatureIds & | selectedFeatureIds () const =0 |
Returns reference to identifiers of selected features. | |
virtual void | setSelectedFeatures (const QgsFeatureIds &ids)=0 |
Change selection to the new set of features. | |
Is an interface class to abstract feature selection handling.
e.g. QgsVectorLayer implements this interface to manage its selections.
Definition at line 31 of file qgsifeatureselectionmanager.h.
|
inline |
Definition at line 36 of file qgsifeatureselectionmanager.h.
|
pure virtual |
Deselect features by feature ids.
Implemented in QgsGenericFeatureSelectionManager, and QgsVectorLayerSelectionManager.
|
pure virtual |
Select features by feature ids.
Implemented in QgsGenericFeatureSelectionManager, and QgsVectorLayerSelectionManager.
|
pure virtual |
Returns the number of features that are selected in this layer.
Implemented in QgsGenericFeatureSelectionManager, and QgsVectorLayerSelectionManager.
|
pure virtual |
Returns reference to identifiers of selected features.
Implemented in QgsGenericFeatureSelectionManager, and QgsVectorLayerSelectionManager.
|
signal |
Emitted when selection was changed.
selected | Newly selected feature ids |
deselected | Ids of all features which have previously been selected but are not any more |
clearAndSelect | In case this is set to true , the old selection was dismissed and the new selection corresponds to selected |
|
pure virtual |
Change selection to the new set of features.
Dismisses the current selection. Will emit the selectionChanged() signal with the clearAndSelect flag set.
ids | The ids which will be the new selection |
Implemented in QgsGenericFeatureSelectionManager, and QgsVectorLayerSelectionManager.