13 #ifndef QmitkAbstractDataStorageInspector_h
14 #define QmitkAbstractDataStorageInspector_h
56 using NodeList = QList<mitk::DataNode::Pointer>;
63 virtual const QAbstractItemView*
GetView()
const = 0;
This abstract class is a convenient base class for easy implementation of widgets that offer a specif...
const mitk::NodePredicateBase * GetNodePredicate() const
virtual void SetNodePredicate(const mitk::NodePredicateBase *nodePredicate)
Sets the node predicate and updates the widget, according to the node predicate.
virtual QAbstractItemView * GetView()=0
virtual const QAbstractItemView * GetView() const =0
virtual void Initialize()=0
void CurrentSelectionChanged(NodeList nodes)
A signal that will be emitted if the selected node has changed.
void SetDataStorage(mitk::DataStorage *dataStorage)
Sets the data storage that will be used /monitored by the widget.
virtual void SetSelectionMode(SelectionMode mode)=0
QAbstractItemView::SelectionMode SelectionMode
std::unique_ptr< QmitkModelViewSelectionConnector > m_Connector
mitk::NodePredicateBase::ConstPointer m_NodePredicate
mitk::WeakPointer< mitk::DataStorage > m_DataStorage
bool GetSelectOnlyVisibleNodes() const
virtual SelectionMode GetSelectionMode() const =0
void SetSelectOnlyVisibleNodes(bool selectOnlyVisibleNodes)
Change the selection modus of the item view's selection model.
NodeList GetSelectedNodes() const
QList< mitk::DataNode::Pointer > NodeList
~QmitkAbstractDataStorageInspector() override
void OnSelectionChanged(NodeList selectedNodes)
QmitkAbstractDataStorageInspector(QWidget *parent=nullptr)
void SetCurrentSelection(NodeList selectedNodes)
Transform a list of data nodes into a model selection and set this as a new selection of the selectio...
Data management class that handles 'was created by' relations.
Interface for evaluation conditions used in the DataStorage class GetSubset() method.