| 
    QGIS API Documentation
    3.4.15-Madeira (e83d02e274)
    
   | 
 
Is an interface class to abstract feature selection handling. More...
#include <qgsifeatureselectionmanager.h>

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