QGIS API Documentation
2.2.0-Valmiera
|
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.
Definition at line 29 of file qgsifeatureselectionmanager.h.
|
inline |
Definition at line 34 of file qgsifeatureselectionmanager.h.
|
pure virtual |
Deselect features.
ids | Feature ids to deselect |
Implemented in QgsVectorLayerSelectionManager, and QgsGenericFeatureSelectionManager.
Referenced by QgsFeatureSelectionModel::enableSync(), and QgsFeatureSelectionModel::selectFeatures().
|
pure virtual |
Select features.
ids | Feature ids to select |
Implemented in QgsVectorLayerSelectionManager, and QgsGenericFeatureSelectionManager.
Referenced by QgsFeatureSelectionModel::enableSync(), and QgsFeatureSelectionModel::selectFeatures().
|
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.
Referenced by QgsFeatureSelectionModel::isSelected().
|
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 |
Referenced by QgsGenericFeatureSelectionManager::deselect(), QgsVectorLayerSelectionManager::QgsVectorLayerSelectionManager(), QgsGenericFeatureSelectionManager::select(), and QgsGenericFeatureSelectionManager::setSelectedFeatures().
|
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.
Referenced by QgsFeatureSelectionModel::enableSync(), and QgsFeatureSelectionModel::selectFeatures().