Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkRenderWindowDataStorageInspector.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 QmitkRenderWindowDataStorageInspector_h
14 #define QmitkRenderWindowDataStorageInspector_h
15 
16 // render window manager UI module
18 #include "ui_QmitkRenderWindowDataStorageInspector.h"
19 
20 // render window manager module
24 
25 // qt widgets module
27 
35 {
36  Q_OBJECT
37 
38 public:
39 
40  QmitkRenderWindowDataStorageInspector(QWidget* parent = nullptr);
41 
42  // override from 'QmitkAbstractDataStorageInspector'
46  QAbstractItemView* GetView() override;
50  const QAbstractItemView* GetView() const override;
54  void SetSelectionMode(SelectionMode mode) override;
58  SelectionMode GetSelectionMode() const override;
62  void SetControlledRenderer(mitk::RenderWindowLayerUtilities::RendererVector controlledRenderer);
68  void SetActiveRenderWindow(const QString& renderWindowId);
69 
70 private Q_SLOTS:
71 
72  void ModelRowsInserted(const QModelIndex& parent, int start, int end);
73 
74  void ChangeViewDirection(const QString& viewDirection);
75 
76 private:
77 
78  void Initialize() override;
79  void SetUpConnections();
80 
81  Ui::QmitkRenderWindowDataStorageInspector m_Controls;
82 
83  std::unique_ptr<QmitkRenderWindowDataStorageTreeModel> m_StorageModel;
84  std::unique_ptr<mitk::RenderWindowLayerController> m_RenderWindowLayerController;
85  std::unique_ptr<mitk::RenderWindowViewDirectionController> m_RenderWindowViewDirectionController;
86 };
87 
88 #endif
MitkRenderWindowManagerUIExports.h
mitkRenderWindowViewDirectionController.h
QmitkAbstractDataStorageInspector::SelectionMode
QAbstractItemView::SelectionMode SelectionMode
Definition: QmitkAbstractDataStorageInspector.h:68
mitk::RenderWindowLayerUtilities::RendererVector
std::vector< BaseRenderer * > RendererVector
Definition: mitkRenderWindowLayerUtilities.h:32
MITKRENDERWINDOWMANAGERUI_EXPORT
#define MITKRENDERWINDOWMANAGERUI_EXPORT
Definition: MitkRenderWindowManagerUIExports.h:15
QmitkAbstractDataStorageInspector::Initialize
virtual void Initialize()=0
QmitkRenderWindowDataStorageInspector
Definition: QmitkRenderWindowDataStorageInspector.h:34
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
mitkRenderWindowLayerController.h
QmitkAbstractDataStorageInspector::SetSelectionMode
virtual void SetSelectionMode(SelectionMode mode)=0
QmitkRenderWindowDataStorageTreeModel.h