Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkDataStorageHistoryModel.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkDataStorageHistoryModel_h
14 #define QmitkDataStorageHistoryModel_h
15 
16 #include <MitkQtWidgetsExports.h>
17 
19 
36 {
37  Q_OBJECT
38 
39 public:
40 
45  QmitkDataStorageHistoryModel(QObject *parent);
46 
55  static void AddNodeToHistory(mitk::DataNode* node);
56 
60  static void ResetHistory();
61 
62 protected:
63  void UpdateModelData() override;
64 };
65 
66 #endif
#define MITKQTWIDGETS_EXPORT
A flat list model that exposes DataStorage nodes matching an optional predicate.
DataStorage model that maintains a history of node selections.
static void AddNodeToHistory(mitk::DataNode *node)
Adds a node to the global selection history.
QmitkDataStorageHistoryModel(QObject *parent)
Constructs the history model.
static void ResetHistory()
Clears the entire selection history.
void UpdateModelData() override
Central node class of the MITK data tree, associating a data object with properties and mappers.
Definition: mitkDataNode.h:72