Medical Imaging Interaction Toolkit  2024.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkRenderWindowContextDataStorageInspector.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 QmitkRenderWindowContextDataStorageInspector_h
14 #define QmitkRenderWindowContextDataStorageInspector_h
15 
16 // qt widgets module
17 #include "MitkQtWidgetsExports.h"
18 #include "ui_QmitkRenderWindowContextDataStorageInspector.h"
19 
20 // render window manager module
23 
24 // qt widgets module
26 
27 // mitk core
28 #include <mitkBaseRenderer.h>
29 
37 {
38  Q_OBJECT
39 
40 public:
41 
42  QmitkRenderWindowContextDataStorageInspector(QWidget* parent = nullptr, mitk::BaseRenderer* renderer = nullptr);
43 
44  // override from 'QmitkAbstractDataStorageInspector'
48  QAbstractItemView* GetView() override;
52  const QAbstractItemView* GetView() const override;
56  void SetSelectionMode(SelectionMode mode) override;
60  SelectionMode GetSelectionMode() const override;
61 
62  QItemSelectionModel* GetDataNodeSelectionModel() const;
63 
64 Q_SIGNALS:
65 
66  void ReinitAction(QList<mitk::DataNode::Pointer> selectedNodes);
67  void ResetAction(QList<mitk::DataNode::Pointer> selectedNodes);
68 
69 private Q_SLOTS:
70 
71  void ModelRowsInserted(const QModelIndex& parent, int start, int end);
72 
73  void OnContextMenuRequested(const QPoint& pos);
74  void OnReinit();
75  void OnReset();
76 
77 private:
78 
79  void Initialize() override;
80  void SetUpConnections();
81 
82  Ui::QmitkRenderWindowContextDataStorageInspector m_Controls;
83 
84  std::unique_ptr<QmitkRenderWindowDataStorageTreeModel> m_StorageModel;
85  std::unique_ptr<mitk::RenderWindowLayerController> m_RenderWindowLayerController;
86 };
87 
88 #endif
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition: MitkQtWidgetsExports.h:15
QmitkAbstractDataStorageInspector::SelectionMode
QAbstractItemView::SelectionMode SelectionMode
Definition: QmitkAbstractDataStorageInspector.h:68
QmitkRenderWindowContextDataStorageInspector
Definition: QmitkRenderWindowContextDataStorageInspector.h:36
ReinitAction
Definition: QmitkDataNodeReinitAction.h:23
QmitkAbstractDataStorageInspector::Initialize
virtual void Initialize()=0
MitkQtWidgetsExports.h
QmitkAbstractDataStorageInspector
This abstract class is a convenient base class for easy implementation of widgets that offer a specif...
Definition: QmitkAbstractDataStorageInspector.h:32
QmitkAbstractDataStorageInspector.h
QmitkAbstractDataStorageInspector::GetView
virtual QAbstractItemView * GetView()=0
QmitkAbstractDataStorageInspector::GetSelectionMode
virtual SelectionMode GetSelectionMode() const =0
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitkRenderWindowLayerController.h
mitkBaseRenderer.h
QmitkAbstractDataStorageInspector::SetSelectionMode
virtual void SetSelectionMode(SelectionMode mode)=0
QmitkRenderWindowDataStorageTreeModel.h