17#include "moc_qgsgenericfeatureselectionmanager.cpp"
26 , mSelectedFeatures( initialSelection )
32 return mSelectedFeatures.size();
37 mSelectedFeatures += ids;
43 mSelectedFeatures -= ids;
52 mSelectedFeatures = ids;
58 return mSelectedFeatures;
void select(const QgsFeatureIds &ids) override
Select features by feature ids.
int selectedFeatureCount() override
Returns the number of features that are selected in this layer.
QgsGenericFeatureSelectionManager(QObject *parent=nullptr)
void deselect(const QgsFeatureIds &ids) override
Deselect features by feature ids.
const QgsFeatureIds & selectedFeatureIds() const override
Returns reference to identifiers of selected features.
void setSelectedFeatures(const QgsFeatureIds &ids) override
Change selection to the new set of features.
Is an interface class to abstract feature selection handling.
void selectionChanged(const QgsFeatureIds &selected, const QgsFeatureIds &deselected, bool clearAndSelect)
Emitted when selection was changed.
QSet< QgsFeatureId > QgsFeatureIds