13 #ifndef QMITKMODELVIEWSELECTIONCONNECTOR_H 14 #define QMITKMODELVIEWSELECTIONCONNECTOR_H 22 #include <QAbstractItemView> 63 void SetView(QAbstractItemView* view);
70 bool GetSelectOnlyVisibleNodes()
const;
79 void CurrentSelectionChanged(QList<mitk::DataNode::Pointer> nodes);
94 void SetSelectOnlyVisibleNodes(
bool selectOnlyVisibleNodes);
108 void SetCurrentSelection(QList<mitk::DataNode::Pointer> selectedNodes);
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;
152 #endif // QMITKMODELVIEWSELECTIONCONNECTOR_H The 'QmitkModelViewSelectionConnector' is used to handle the selections of a model-view-pair and to s...
MITK_QT_APP QList< mitk::DataNode::Pointer > GetSelectedNodes(berry::IWorkbenchPartSite::Pointer workbenchPartSite)
bool MITKQTWIDGETS_EXPORT EqualNodeSelections(const QList< mitk::DataNode::Pointer > &selection1, const QList< mitk::DataNode::Pointer > &selection2)