Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkMultiWidgetLayoutManager.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 QmitkMultiWidgetLayoutManager_h
14 #define QmitkMultiWidgetLayoutManager_h
15 
16 #include "MitkQtWidgetsExports.h"
17 
18 #include <QObject>
19 
22 
36 {
37  Q_OBJECT
38 
39 public:
40 
41  enum class LayoutDesign
42  {
43  DEFAULT = 0,
44  ALL_2D_TOP_3D_BOTTOM,
45  ALL_2D_LEFT_3D_RIGHT,
46  ONE_BIG,
47  ONLY_2D_HORIZONTAL,
48  ONLY_2D_VERTICAL,
49  ONE_TOP_3D_BOTTOM,
50  ONE_LEFT_3D_RIGHT,
51  ALL_HORIZONTAL,
52  ALL_VERTICAL,
53  REMOVE_ONE,
54  NONE
55  };
56 
58 
63  void SetLayoutDesign(LayoutDesign layoutDesign);
71  void SetCurrentRenderWindowWidget(QmitkRenderWindowWidget* renderWindowWidget);
72 
76  void SetDefaultLayout();
80  void SetAll2DTop3DBottomLayout();
84  void SetAll2DLeft3DRightLayout();
88  void SetOneBigLayout();
92  void SetOnly2DHorizontalLayout();
96  void SetOnly2DVerticalLayout();
101  void SetOneTop3DBottomLayout();
106  void SetOneLeft3DRightLayout();
110  void SetAllHorizontalLayout();
114  void SetAllVerticalLayout();
118  void RemoveOneLayout();
119 
120 private:
121 
122  QmitkAbstractMultiWidget* m_MultiWidget;
123  QmitkRenderWindowWidget* m_CurrentRenderWindowWidget;
124 
125 };
126 
127 #endif
QmitkMultiWidgetLayoutManager::LayoutDesign
LayoutDesign
Definition: QmitkMultiWidgetLayoutManager.h:41
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition: MitkQtWidgetsExports.h:15
MitkQtWidgetsExports.h
QmitkRenderWindowWidget
The 'QmitkRenderWindowWidget' is a QFrame that holds a render window and some associates properties,...
Definition: QmitkRenderWindowWidget.h:43
QmitkAbstractMultiWidget
The 'QmitkAbstractMultiWidget' is a 'QWidget' that can be subclassed to display multiple render windo...
Definition: QmitkAbstractMultiWidget.h:53
QmitkMultiWidgetLayoutManager
The layout manager provides different layout-functions that can modify the layout of an QmitkAbstract...
Definition: QmitkMultiWidgetLayoutManager.h:35