|
ParaView
|
pqSelectionAdaptor is the abstract base class for an adaptor that connects a QItemSelectionModel to pqActiveObjects making it possible to update the pqActiveObjects source selection when the QItemSelectionModel changes and vice-versa. More...
#include <pqSelectionAdaptor.h>

Public Member Functions | |
| virtual | ~pqSelectionAdaptor () |
| QItemSelectionModel * | getQSelectionModel () const |
| Returns a pointer to the QItemSelectionModel. | |
Protected Slots | |
| virtual void | selectionChanged () |
| called when the selection in the Qt-model changes. | |
| virtual void | currentProxyChanged () |
| called when the ServerManager level selection (or current) changes. | |
| virtual void | proxySelectionChanged () |
| virtual QItemSelectionModel::SelectionFlag | qtSelectionFlags () const |
| subclasses can override this method to provide model specific selection overrides such as QItemSelection::Rows or QItemSelection::Columns etc. | |
Protected Member Functions | |
| pqSelectionAdaptor (QItemSelectionModel *pipelineSelectionModel) | |
| virtual QModelIndex | mapFromItem (pqServerManagerModelItem *item) const =0 |
| Maps a pqServerManagerModelItem to an index in the QAbstractItemModel. | |
| virtual pqServerManagerModelItem * | mapToItem (const QModelIndex &index) const =0 |
| Maps a QModelIndex to a pqServerManagerModelItem. | |
| const QAbstractItemModel * | getQModel () const |
| Returns the QAbstractItemModel used by the QSelectionModel. | |
pqSelectionAdaptor is the abstract base class for an adaptor that connects a QItemSelectionModel to pqActiveObjects making it possible to update the pqActiveObjects source selection when the QItemSelectionModel changes and vice-versa.
Subclass typically only need to implement mapToItem() and mapFromItem().
Definition at line 48 of file pqSelectionAdaptor.h.
| virtual pqSelectionAdaptor::~pqSelectionAdaptor | ( | ) | [virtual] |
| pqSelectionAdaptor::pqSelectionAdaptor | ( | QItemSelectionModel * | pipelineSelectionModel | ) | [protected] |
| QItemSelectionModel* pqSelectionAdaptor::getQSelectionModel | ( | ) | const [inline] |
Returns a pointer to the QItemSelectionModel.
Definition at line 55 of file pqSelectionAdaptor.h.
| virtual QModelIndex pqSelectionAdaptor::mapFromItem | ( | pqServerManagerModelItem * | item | ) | const [protected, pure virtual] |
Maps a pqServerManagerModelItem to an index in the QAbstractItemModel.
Implemented in pqPipelineModelSelectionAdaptor.
| virtual pqServerManagerModelItem* pqSelectionAdaptor::mapToItem | ( | const QModelIndex & | index | ) | const [protected, pure virtual] |
Maps a QModelIndex to a pqServerManagerModelItem.
Implemented in pqPipelineModelSelectionAdaptor.
| const QAbstractItemModel* pqSelectionAdaptor::getQModel | ( | ) | const [protected] |
Returns the QAbstractItemModel used by the QSelectionModel.
If QSelectionModel uses a QAbstractProxyModel, this method skips over all such proxy models and returns the first non-proxy model encountered.
| virtual void pqSelectionAdaptor::selectionChanged | ( | ) | [protected, virtual, slot] |
called when the selection in the Qt-model changes.
| virtual void pqSelectionAdaptor::currentProxyChanged | ( | ) | [protected, virtual, slot] |
called when the ServerManager level selection (or current) changes.
| virtual void pqSelectionAdaptor::proxySelectionChanged | ( | ) | [protected, virtual, slot] |
| virtual QItemSelectionModel::SelectionFlag pqSelectionAdaptor::qtSelectionFlags | ( | ) | const [inline, protected, virtual, slot] |
subclasses can override this method to provide model specific selection overrides such as QItemSelection::Rows or QItemSelection::Columns etc.
Definition at line 83 of file pqSelectionAdaptor.h.
1.7.5.1