13 #ifndef QmitkModelViewSelectionConnector_h
14 #define QmitkModelViewSelectionConnector_h
22 #include <QAbstractItemView>
121 void ChangeModelSelection(
const QItemSelection& selected,
const QItemSelection& deselected);
126 QAbstractItemView* m_View;
128 bool m_SelectOnlyVisibleNodes;
129 QList<mitk::DataNode::Pointer> m_NonVisibleSelection;
138 QList<mitk::DataNode::Pointer> GetInternalSelectedNodes()
const;
145 QList<mitk::DataNode::Pointer> FilterNodeList(
const QList<mitk::DataNode::Pointer>& nodes)
const;
bool MITKQTWIDGETS_EXPORT EqualNodeSelections(const QList< mitk::DataNode::Pointer > &selection1, const QList< mitk::DataNode::Pointer > &selection2)
The 'QmitkModelViewSelectionConnector' is used to handle the selections of a model-view-pair and to s...
void SetSelectOnlyVisibleNodes(bool selectOnlyVisibleNodes)
Change the selection mode of the item view's selection model.
bool GetSelectOnlyVisibleNodes() const
void CurrentSelectionChanged(QList< mitk::DataNode::Pointer > nodes)
A signal that will be emitted by the 'ChangeModelSelection'-function. This happens if the selection m...
QmitkModelViewSelectionConnector()
void SetCurrentSelection(QList< mitk::DataNode::Pointer > selectedNodes)
Transform a list of data nodes into a model selection and set this as a new selection of the selectio...
void SetView(QAbstractItemView *view)
Set the view whose selection model is used to propagate or receive selection changes....
QList< mitk::DataNode::Pointer > GetSelectedNodes() const
Retrieve the currently selected nodes (equals the last CurrentSelectionChanged values).