17 #ifndef QmitkDataStorageListModel_h
18 #define QmitkDataStorageListModel_h
27 #include <QAbstractListModel>
53 QObject *parent =
nullptr);
70 std::vector<mitk::DataNode *> GetDataNodes()
const;
79 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
82 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const override;
85 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
88 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
102 virtual void OnDataStorageNodeRemoved(
const mitk::DataNode *node);
107 virtual void OnDataNodeModified(
const itk::Object *caller,
const itk::EventObject &event);
112 virtual void OnDataModified(
const itk::Object *caller,
const itk::EventObject &event);
117 virtual void OnDataStorageDeleted(
const itk::Object *caller,
const itk::EventObject &event);
130 void ClearInternalNodeList();
133 enum OBSERVER_TUPLE_NAMES
148 unsigned long m_DataStorageDeleteObserverTag;
154 std::vector<std::tuple<mitk::DataNode *, unsigned long, unsigned long>> m_NodesAndObserverTags;
Data management class that handles 'was created by' relations.
static mitk::DataStorage::Pointer GetDataStorage()
mitk::DataStorage::Pointer m_DataStorage
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Class for nodes of the DataTree.