|
QGIS API Documentation
2.6.0-Brighton
|
Is an interface class to abstract feature selection handling. More...
#include <qgsifeatureselectionmanager.h>

Signals | |
| void | selectionChanged (const QgsFeatureIds selected, const QgsFeatureIds deselected, const bool clearAndSelect) |
| This signal is emitted when selection was changed. | |
Public Member Functions | |
| QgsIFeatureSelectionManager (QObject *parent) | |
| virtual int | selectedFeatureCount ()=0 |
| The number of features that are selected in this layer. | |
| virtual void | select (const QgsFeatureIds &ids)=0 |
| Select features. | |
| virtual void | deselect (const QgsFeatureIds &ids)=0 |
| Deselect features. | |
| virtual void | setSelectedFeatures (const QgsFeatureIds &ids)=0 |
| Change selection to the new set of features. | |
| virtual const QgsFeatureIds & | selectedFeaturesIds () const =0 |
| Return reference to identifiers of selected features. | |
Is an interface class to abstract feature selection handling.
e.g. QgsVectorLayer implements this interface to manage its selections.
|
inline |
|
pure virtual |
Deselect features.
| ids | Feature ids to deselect |
Implemented in QgsVectorLayerSelectionManager, and QgsGenericFeatureSelectionManager.
|
pure virtual |
Select features.
| ids | Feature ids to select |
Implemented in QgsVectorLayerSelectionManager, and QgsGenericFeatureSelectionManager.
|
pure virtual |
The number of features that are selected in this layer.
Implemented in QgsGenericFeatureSelectionManager, and QgsVectorLayerSelectionManager.
|
pure virtual |
Return reference to identifiers of selected features.
Implemented in QgsVectorLayerSelectionManager, and QgsGenericFeatureSelectionManager.
|
signal |
This signal is 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( QgsFeatureIds, QgsFeatureIds, bool ) signal with the clearAndSelect flag set.
| ids | The ids which will be the new selection |
Implemented in QgsVectorLayerSelectionManager, and QgsGenericFeatureSelectionManager.
1.8.1.2