13 #ifndef QmitkModelViewSelectionConnector_h
14 #define QmitkModelViewSelectionConnector_h
22 #include <QAbstractItemView>
119 void ChangeModelSelection(
const QItemSelection& selected,
const QItemSelection& deselected);
124 QAbstractItemView* m_View;
126 bool m_SelectOnlyVisibleNodes;
127 QList<mitk::DataNode::Pointer> m_NonVisibleSelection;
136 QList<mitk::DataNode::Pointer> GetInternalSelectedNodes()
const;
143 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)
Compares two node selections for equality regardless of order.
Abstract base class extending QAbstractItemModel for DataStorage-backed models.
Bridges the selection between a Qt model-view pair and external MITK node selections.
void SetSelectOnlyVisibleNodes(bool selectOnlyVisibleNodes)
Controls whether selections are restricted to visible nodes.
bool GetSelectOnlyVisibleNodes() const
Returns whether only visible nodes can be selected.
void CurrentSelectionChanged(QList< mitk::DataNode::Pointer > nodes)
Emitted when the view's selection changes.
QmitkModelViewSelectionConnector()
void SetCurrentSelection(QList< mitk::DataNode::Pointer > selectedNodes)
Applies the given node list as the view's selection.
void SetView(QAbstractItemView *view)
Sets the view whose selection model is used for selection synchronization.
QList< mitk::DataNode::Pointer > GetSelectedNodes() const
Returns the currently selected data nodes.