This is the selection model used by spread sheet view.
More...
#include <pqSpreadSheetViewSelectionModel.h>
Inherits QItemSelectionModel.
|
void | select (const QModelIndex &index, QItemSelectionModel::SelectionFlags command) override |
|
void | select (const QItemSelection &selection, QItemSelectionModel::SelectionFlags command) override |
|
This is the selection model used by spread sheet view.
It manages two operations:
- When the QItemSelectionModel is updated by the QAbstractItemView due to user interaction, pqSpreadSheetViewModel::select() gets called. In that overload, this class creates a 'ParaView Selection' i.e. create a selection source proxy for an ID based selection and set it as the selection-input (vtkSMSourceProxy::SetSelectionInput) on the data-source being shown in the view.
- Whenever the pqSpreadSheetViewModel receives new selection data from the data-server, it updates its internal QItemSelection and fires pqSpreadSheetViewModel::selectionChanged signal. pqSpreadSheetViewSelectionModel handles that signal by updating itself to mark the corresponding elements as selected.
Definition at line 28 of file pqSpreadSheetViewSelectionModel.h.
◆ pqSpreadSheetViewSelectionModel()
pqSpreadSheetViewSelectionModel::pqSpreadSheetViewSelectionModel |
( |
pqSpreadSheetViewModel * |
model, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
◆ ~pqSpreadSheetViewSelectionModel()
pqSpreadSheetViewSelectionModel::~pqSpreadSheetViewSelectionModel |
( |
| ) |
|
|
override |
◆ select [1/2]
void pqSpreadSheetViewSelectionModel::select |
( |
const QModelIndex & |
index, |
|
|
QItemSelectionModel::SelectionFlags |
command |
|
) |
| |
|
inlineoverrideslot |
◆ select [2/2]
void pqSpreadSheetViewSelectionModel::select |
( |
const QItemSelection & |
selection, |
|
|
QItemSelectionModel::SelectionFlags |
command |
|
) |
| |
|
overrideslot |
◆ selection
◆ serverSelectionChanged
void pqSpreadSheetViewSelectionModel::serverSelectionChanged |
( |
const QItemSelection & |
| ) |
|
|
protectedslot |
◆ getSelectionSource()
Locate the selection source currently set on the representation being shown.
If no selection exists, or selection present is not "updatable" by this model, we create a new selection.
◆ UpdatingSelection
bool pqSpreadSheetViewSelectionModel::UpdatingSelection |
|
protected |
The documentation for this class was generated from the following file: