13 #ifndef QmitkAbstractDataStorageInspector_h
14 #define QmitkAbstractDataStorageInspector_h
78 using NodeList = QList<mitk::DataNode::Pointer>;
93 virtual const QAbstractItemView*
GetView()
const = 0;
Abstract base class for widgets that inspect the contents of a DataStorage.
const mitk::NodePredicateBase * GetNodePredicate() const
Returns the currently set node predicate.
virtual void SetNodePredicate(const mitk::NodePredicateBase *nodePredicate)
Sets the node predicate and re-initializes the widget accordingly.
virtual QAbstractItemView * GetView()=0
Returns a pointer to the view used to display the data storage content.
virtual const QAbstractItemView * GetView() const =0
Returns a pointer to the view used to display the data storage content.
virtual void Initialize()=0
void CurrentSelectionChanged(NodeList nodes)
Emitted when the set of selected nodes has changed.
void SetDataStorage(mitk::DataStorage *dataStorage)
Sets the data storage that will be used and monitored by this widget.
virtual void SetSelectionMode(SelectionMode mode)=0
Sets the selection mode of the inspector's item view.
QAbstractItemView::SelectionMode SelectionMode
Convenience type alias for the Qt selection mode.
std::unique_ptr< QmitkModelViewSelectionConnector > m_Connector
mitk::NodePredicateBase::ConstPointer m_NodePredicate
mitk::WeakPointer< mitk::DataStorage > m_DataStorage
bool GetSelectOnlyVisibleNodes() const
Returns whether only visible nodes can be selected.
virtual SelectionMode GetSelectionMode() const =0
Returns the current selection mode of the inspector's item view.
void SetSelectOnlyVisibleNodes(bool selectOnlyVisibleNodes)
Controls whether selections are restricted to visible nodes only.
NodeList GetSelectedNodes() const
Returns the list of currently selected data nodes.
QList< mitk::DataNode::Pointer > NodeList
Convenience type alias for a list of data node pointers.
~QmitkAbstractDataStorageInspector() override
void OnSelectionChanged(NodeList selectedNodes)
QmitkAbstractDataStorageInspector(QWidget *parent=nullptr)
void SetCurrentSelection(NodeList selectedNodes)
Sets the given list of data nodes as the new selection.
Abstract data management class that organizes DataNode objects in a directed acyclic graph.
Abstract base class for predicates used to filter DataNode objects in DataStorage queries.