Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
The layout manager provides different layout-functions that can modify the layout of an QmitkAbstractMultiWidget. More...
#include <QmitkMultiWidgetLayoutManager.h>
Public Member Functions | |
QmitkMultiWidgetLayoutManager (QmitkAbstractMultiWidget *multiwidget) | |
void | SetLayoutDesign (LayoutDesign layoutDesign) |
This function is called by render window widgets. Given a specific layout design the layout of the multi widget data member is set with this method. More... | |
void | SetCurrentRenderWindowWidget (QmitkRenderWindowWidget *renderWindowWidget) |
Allow setting the current render window widget without relying on the sending object. More... | |
void | SetDefaultLayout () |
The default layout shows all render windows in a rectangle. More... | |
void | SetAll2DTop3DBottomLayout () |
All 2D render windows are spread horizontally above all 3D render windows. More... | |
void | SetAll2DLeft3DRightLayout () |
All 2D render windows are spread vertically beneath all 3D render windows. More... | |
void | SetOneBigLayout () |
The current render window is displayed as a single 'full screen' render window. More... | |
void | SetOnly2DHorizontalLayout () |
All 2D render windows are spread horizontally, no 3D render windows. More... | |
void | SetOnly2DVerticalLayout () |
All 2D render windows are spread vertically, no 3D render windows. More... | |
void | SetOneTop3DBottomLayout () |
The current render window is put above all 3D render windows, which are spread horizontally below the current render window. More... | |
void | SetOneLeft3DRightLayout () |
The current render window is put beneath all 3D render windows, which are spread vertically beneath the current render window. More... | |
void | SetAllHorizontalLayout () |
All 2D and 3D render windows are spread horizontally. More... | |
void | SetAllVerticalLayout () |
All 2D and 3D render windows are spread vertically. More... | |
void | RemoveOneLayout () |
Hide the current render window. More... | |
The layout manager provides different layout-functions that can modify the layout of an QmitkAbstractMultiWidget.
The constructor is used with the specific multi widget that should be modified. The function 'SetLayoutDesign' can then be used to modify the layout of the multi widget. The function needs to be called with the signal-slot syntax from a 'QmitkRenderWindow' since it retrieves the specific render window and sets it as the current render window. Some layouts work with a specific render window (e.g. ONE_BIG / SetOneBigLayout()), so the current render window is then used by these layout functions. The publicly accessible layout functions can also be called directly but in order to work the current render window needs to be set before by using 'SetCurrentRenderWindowWidget'.
Definition at line 35 of file QmitkMultiWidgetLayoutManager.h.
|
strong |
Enumerator | |
---|---|
DEFAULT | |
ALL_2D_TOP_3D_BOTTOM | |
ALL_2D_LEFT_3D_RIGHT | |
ONE_BIG | |
ONLY_2D_HORIZONTAL | |
ONLY_2D_VERTICAL | |
ONE_TOP_3D_BOTTOM | |
ONE_LEFT_3D_RIGHT | |
ALL_HORIZONTAL | |
ALL_VERTICAL | |
REMOVE_ONE | |
NONE |
Definition at line 41 of file QmitkMultiWidgetLayoutManager.h.
QmitkMultiWidgetLayoutManager::QmitkMultiWidgetLayoutManager | ( | QmitkAbstractMultiWidget * | multiwidget | ) |
Definition at line 24 of file QmitkMultiWidgetLayoutManager.cpp.
void QmitkMultiWidgetLayoutManager::RemoveOneLayout | ( | ) |
Hide the current render window.
Definition at line 526 of file QmitkMultiWidgetLayoutManager.cpp.
References QmitkAbstractMultiWidget::ActivateMenuWidget(), QmitkAbstractMultiWidget::GetRenderWindows(), MITK_INFO, and NONE.
Referenced by SetLayoutDesign().
void QmitkMultiWidgetLayoutManager::SetAll2DLeft3DRightLayout | ( | ) |
All 2D render windows are spread vertically beneath all 3D render windows.
Definition at line 209 of file QmitkMultiWidgetLayoutManager.cpp.
References QmitkAbstractMultiWidget::ActivateMenuWidget(), ALL_2D_LEFT_3D_RIGHT, QmitkAbstractMultiWidget::Get2DRenderWindowWidgets(), QmitkAbstractMultiWidget::Get3DRenderWindowWidgets(), QmitkAbstractMultiWidget::GetRenderWindows(), and MITK_INFO.
Referenced by SetLayoutDesign().
void QmitkMultiWidgetLayoutManager::SetAll2DTop3DBottomLayout | ( | ) |
All 2D render windows are spread horizontally above all 3D render windows.
Definition at line 156 of file QmitkMultiWidgetLayoutManager.cpp.
References QmitkAbstractMultiWidget::ActivateMenuWidget(), ALL_2D_TOP_3D_BOTTOM, QmitkAbstractMultiWidget::Get2DRenderWindowWidgets(), QmitkAbstractMultiWidget::Get3DRenderWindowWidgets(), QmitkAbstractMultiWidget::GetRenderWindows(), and MITK_INFO.
Referenced by SetLayoutDesign().
void QmitkMultiWidgetLayoutManager::SetAllHorizontalLayout | ( | ) |
All 2D and 3D render windows are spread horizontally.
Definition at line 449 of file QmitkMultiWidgetLayoutManager.cpp.
References QmitkAbstractMultiWidget::ActivateMenuWidget(), ALL_HORIZONTAL, QmitkAbstractMultiWidget::GetRenderWindows(), QmitkAbstractMultiWidget::GetRenderWindowWidgets(), and MITK_INFO.
Referenced by SetLayoutDesign().
void QmitkMultiWidgetLayoutManager::SetAllVerticalLayout | ( | ) |
All 2D and 3D render windows are spread vertically.
Definition at line 489 of file QmitkMultiWidgetLayoutManager.cpp.
References QmitkAbstractMultiWidget::ActivateMenuWidget(), ALL_VERTICAL, QmitkAbstractMultiWidget::GetRenderWindows(), QmitkAbstractMultiWidget::GetRenderWindowWidgets(), and MITK_INFO.
Referenced by SetLayoutDesign().
void QmitkMultiWidgetLayoutManager::SetCurrentRenderWindowWidget | ( | QmitkRenderWindowWidget * | renderWindowWidget | ) |
Allow setting the current render window widget without relying on the sending object.
Calling 'SetLayoutDesign' will overwrite the current render window widget but using the public layout setter the current render window widget can be defined using the function. This is necessary for layouts that work with a specific selected render window widget.
Definition at line 107 of file QmitkMultiWidgetLayoutManager.cpp.
void QmitkMultiWidgetLayoutManager::SetDefaultLayout | ( | ) |
The default layout shows all render windows in a rectangle.
Definition at line 112 of file QmitkMultiWidgetLayoutManager.cpp.
References QmitkAbstractMultiWidget::ActivateMenuWidget(), DEFAULT, QmitkAbstractMultiWidget::GetColumnCount(), QmitkAbstractMultiWidget::GetRenderWindows(), QmitkAbstractMultiWidget::GetRenderWindowWidget(), QmitkAbstractMultiWidget::GetRowCount(), and MITK_INFO.
Referenced by SetLayoutDesign().
void QmitkMultiWidgetLayoutManager::SetLayoutDesign | ( | LayoutDesign | layoutDesign | ) |
This function is called by render window widgets. Given a specific layout design the layout of the multi widget data member is set with this method.
Definition at line 32 of file QmitkMultiWidgetLayoutManager.cpp.
References ALL_2D_LEFT_3D_RIGHT, ALL_2D_TOP_3D_BOTTOM, ALL_HORIZONTAL, ALL_VERTICAL, DEFAULT, QmitkAbstractMultiWidget::GetRenderWindowWidget(), NONE, ONE_BIG, ONE_LEFT_3D_RIGHT, ONE_TOP_3D_BOTTOM, ONLY_2D_HORIZONTAL, ONLY_2D_VERTICAL, REMOVE_ONE, RemoveOneLayout(), SetAll2DLeft3DRightLayout(), SetAll2DTop3DBottomLayout(), SetAllHorizontalLayout(), SetAllVerticalLayout(), SetDefaultLayout(), SetOneBigLayout(), SetOneLeft3DRightLayout(), SetOneTop3DBottomLayout(), SetOnly2DHorizontalLayout(), and SetOnly2DVerticalLayout().
Referenced by QmitkMxNMultiWidget::moveEvent(), and QmitkStdMultiWidget::SetWidgetPlanesVisibility().
void QmitkMultiWidgetLayoutManager::SetOneBigLayout | ( | ) |
The current render window is displayed as a single 'full screen' render window.
Definition at line 262 of file QmitkMultiWidgetLayoutManager.cpp.
References QmitkAbstractMultiWidget::ActivateMenuWidget(), QmitkAbstractMultiWidget::GetRenderWindows(), MITK_INFO, and ONE_BIG.
Referenced by SetLayoutDesign().
void QmitkMultiWidgetLayoutManager::SetOneLeft3DRightLayout | ( | ) |
The current render window is put beneath all 3D render windows, which are spread vertically beneath the current render window.
Definition at line 404 of file QmitkMultiWidgetLayoutManager.cpp.
References QmitkAbstractMultiWidget::ActivateMenuWidget(), QmitkAbstractMultiWidget::Get3DRenderWindowWidgets(), QmitkAbstractMultiWidget::GetRenderWindows(), MITK_INFO, and ONE_LEFT_3D_RIGHT.
Referenced by SetLayoutDesign().
void QmitkMultiWidgetLayoutManager::SetOneTop3DBottomLayout | ( | ) |
The current render window is put above all 3D render windows, which are spread horizontally below the current render window.
Definition at line 359 of file QmitkMultiWidgetLayoutManager.cpp.
References QmitkAbstractMultiWidget::ActivateMenuWidget(), QmitkAbstractMultiWidget::Get3DRenderWindowWidgets(), QmitkAbstractMultiWidget::GetRenderWindows(), MITK_INFO, and ONE_TOP_3D_BOTTOM.
Referenced by SetLayoutDesign().
void QmitkMultiWidgetLayoutManager::SetOnly2DHorizontalLayout | ( | ) |
All 2D render windows are spread horizontally, no 3D render windows.
Definition at line 289 of file QmitkMultiWidgetLayoutManager.cpp.
References QmitkAbstractMultiWidget::ActivateMenuWidget(), QmitkAbstractMultiWidget::Get2DRenderWindowWidgets(), QmitkAbstractMultiWidget::GetRenderWindows(), MITK_INFO, and ONLY_2D_HORIZONTAL.
Referenced by SetLayoutDesign().
void QmitkMultiWidgetLayoutManager::SetOnly2DVerticalLayout | ( | ) |
All 2D render windows are spread vertically, no 3D render windows.
Definition at line 324 of file QmitkMultiWidgetLayoutManager.cpp.
References QmitkAbstractMultiWidget::ActivateMenuWidget(), QmitkAbstractMultiWidget::Get2DRenderWindowWidgets(), QmitkAbstractMultiWidget::GetRenderWindows(), MITK_INFO, and ONLY_2D_VERTICAL.
Referenced by SetLayoutDesign().