25 , mSelectedFeatures( initialSelection )
51 mSelectedFeatures = ids;
QSet< QgsFeatureId > QgsFeatureIds
virtual void setSelectedFeatures(const QgsFeatureIds &ids)
Change selection to the new set of features.
virtual int selectedFeatureCount()
The number of features that are selected in this layer.
virtual void select(const QgsFeatureIds &ids)
Select features.
QgsGenericFeatureSelectionManager(QObject *parent=NULL)
virtual const QgsFeatureIds & selectedFeaturesIds() const
Return reference to identifiers of selected features.
virtual void deselect(const QgsFeatureIds &ids)
Deselect features.
void selectionChanged(const QgsFeatureIds selected, const QgsFeatureIds deselected, const bool clearAndSelect)
This signal is emitted when selection was changed.
QgsFeatureIds mSelectedFeatures
Is an interface class to abstract feature selection handling.