Medical Imaging Interaction Toolkit  2021.10.99-9c07a326
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_H
#define MITKQTWIDGETS_EXPORT
The &#39;QmitkRenderWindowWidget&#39; is a QFrame that holds a render window and some associates properties...
The &#39;QmitkAbstractMultiWidget&#39; is a &#39;QWidget&#39; that can be subclassed to display multiple render windo...
The layout manager provides different layout-functions that can modify the layout of an QmitkAbstract...