virtual void deselect(const QgsFeatureIds &ids)
Deselect features.
QSet< QgsFeatureId > QgsFeatureIds
void select(QgsRectangle &rect, bool addToSelection)
Select features found within the search rectangle (in layer's coordinates)
virtual int selectedFeatureCount()
The number of features that are selected in this layer.
void deselect(const QgsFeatureId featureId)
Deselect feature by its ID.
QgsVectorLayerSelectionManager(QgsVectorLayer *layer, QObject *parent=0)
const QgsFeatureIds & selectedFeaturesIds() const
Return reference to identifiers of selected features.
void setSelectedFeatures(const QgsFeatureIds &ids)
Change selection to the new set of features.
virtual void setSelectedFeatures(const QgsFeatureIds &ids)
Change selection to the new set of features.
virtual void select(const QgsFeatureIds &ids)
Select features.
virtual const QgsFeatureIds & selectedFeaturesIds() const
Return reference to identifiers of selected features.
void selectionChanged(const QgsFeatureIds selected, const QgsFeatureIds deselected, const bool clearAndSelect)
This signal is emitted when selection was changed.
Is an interface class to abstract feature selection handling.
Represents a vector layer which manages a vector based data sets.
int selectedFeatureCount()
The number of features that are selected in this layer.