The QmitkRenderWindowMenu is a popup Widget which shows up when the mouse cursor enter a QmitkRenderWindow. The Menu Widget is located in the right top corner of each RenderWindow. It includes different settings. For example the layout design can be changed with the setting button. Switching between full-screen mode and layout design can be done with the full-screen button. The popup Widget can be deactivated with ActivateMenuWidget(false) in QmitkRenderWindow.
More...
#include <QmitkRenderWindowMenu.h>
The QmitkRenderWindowMenu is a popup Widget which shows up when the mouse cursor enter a QmitkRenderWindow. The Menu Widget is located in the right top corner of each RenderWindow. It includes different settings. For example the layout design can be changed with the setting button. Switching between full-screen mode and layout design can be done with the full-screen button. The popup Widget can be deactivated with ActivateMenuWidget(false) in QmitkRenderWindow.
- See also
- QmitkRenderWindow
Definition at line 50 of file QmitkRenderWindowMenu.h.
◆ LayoutDesign
◆ LayoutIndex
◆ QmitkRenderWindowMenu()
| QmitkRenderWindowMenu::QmitkRenderWindowMenu |
( |
QWidget * |
parent = nullptr, |
|
|
Qt::WindowFlags |
f = {}, |
|
|
mitk::BaseRenderer * |
b = nullptr |
|
) |
| |
◆ ~QmitkRenderWindowMenu()
| QmitkRenderWindowMenu::~QmitkRenderWindowMenu |
( |
| ) |
|
|
override |
◆ AutoRotateNextStep
| void QmitkRenderWindowMenu::AutoRotateNextStep |
( |
| ) |
|
|
protectedslot |
this function is continuously called by a timer to do the auto rotation
◆ ChangeFullScreenIcon()
| void QmitkRenderWindowMenu::ChangeFullScreenIcon |
( |
| ) |
|
|
protected |
Change Icon of full-screen button depending on full-screen mode.
◆ CreateMenuWidget()
| void QmitkRenderWindowMenu::CreateMenuWidget |
( |
| ) |
|
|
protected |
◆ CreateSettingsWidget()
| void QmitkRenderWindowMenu::CreateSettingsWidget |
( |
| ) |
|
|
protected |
Create settings menu which contains layout direction and the different layout designs.
◆ CrosshairRotationModeChanged
| void QmitkRenderWindowMenu::CrosshairRotationModeChanged |
( |
int |
| ) |
|
|
signal |
◆ CrosshairVisibilityChanged
| void QmitkRenderWindowMenu::CrosshairVisibilityChanged |
( |
bool |
| ) |
|
|
signal |
◆ GetLayoutIndex()
Return layout direction of parent (axial, coronal, sagittal or threeD)
Definition at line 79 of file QmitkRenderWindowMenu.h.
◆ GetSettingsMenuVisibilty()
| bool QmitkRenderWindowMenu::GetSettingsMenuVisibilty |
( |
| ) |
|
|
inline |
Return visibility of settings menu. The menu is connected with m_SettingsButton and includes layout direction (axial, coronal .. ) and layout design (standard layout, 2D images top, 3D bottom ... ).
Definition at line 67 of file QmitkRenderWindowMenu.h.
◆ HideMenu()
| void QmitkRenderWindowMenu::HideMenu |
( |
| ) |
|
◆ LayoutDesignChanged
| void QmitkRenderWindowMenu::LayoutDesignChanged |
( |
LayoutDesign |
layoutDesign | ) |
|
|
signal |
emit signal, when layout design changed by the setting menu.
◆ MoveWidgetToCorrectPos()
| void QmitkRenderWindowMenu::MoveWidgetToCorrectPos |
( |
| ) |
|
Move menu widget to correct position (right upper corner). E.g. it is necessary when the full-screen mode is activated.
◆ OnAutoRotationActionTriggered
| void QmitkRenderWindowMenu::OnAutoRotationActionTriggered |
( |
| ) |
|
|
protectedslot |
this function is invoked when the auto-rotate action is clicked
◆ OnCrosshairMenuAboutToShow
| void QmitkRenderWindowMenu::OnCrosshairMenuAboutToShow |
( |
| ) |
|
|
protectedslot |
◆ OnCrosshairRotationModeSelected
| void QmitkRenderWindowMenu::OnCrosshairRotationModeSelected |
( |
QAction * |
| ) |
|
|
protectedslot |
◆ OnCrosshairVisibilityChanged
| void QmitkRenderWindowMenu::OnCrosshairVisibilityChanged |
( |
bool |
| ) |
|
|
protectedslot |
◆ OnFullScreenButton
| void QmitkRenderWindowMenu::OnFullScreenButton |
( |
bool |
checked | ) |
|
|
protectedslot |
slot for activating/deactivating the full-screen mode. The slot is connected to the clicked() event of m_FullScreenButton. Activating the full-screen maximize the current widget, deactivating restore If layout design changed by the settings menu, the full-Screen mode is automatically switched to false.
◆ OnLayoutDesignButton
| void QmitkRenderWindowMenu::OnLayoutDesignButton |
( |
bool |
checked | ) |
|
|
protectedslot |
Slot for opening setting menu. The slot is connected to the clicked() event of m_SettingsButton. The settings menu includes different layout directions (axial, coronal, sagittal and 3D) as well all layout design (standard layout, 2D images top, 3D bottom ..)
◆ OnSetLayout
| void QmitkRenderWindowMenu::OnSetLayout |
( |
LayoutDesign |
layoutDesign | ) |
|
|
protectedslot |
◆ OnTSNumChanged
| void QmitkRenderWindowMenu::OnTSNumChanged |
( |
int |
| ) |
|
|
protectedslot |
◆ paintEvent()
| void QmitkRenderWindowMenu::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotected |
Reimplemented from QWidget. The paint event is a request to repaint all or part of a widget.
◆ ResetView
| void QmitkRenderWindowMenu::ResetView |
( |
| ) |
|
|
signal |
◆ SetLayoutIndex()
| void QmitkRenderWindowMenu::SetLayoutIndex |
( |
LayoutIndex |
layoutIndex | ) |
|
Set layout index. Defines layout direction (axial, coronal, sagittal or threeD) of the parent.
◆ ShowMenu()
| void QmitkRenderWindowMenu::ShowMenu |
( |
| ) |
|
◆ UpdateCrosshairRotationMode()
| void QmitkRenderWindowMenu::UpdateCrosshairRotationMode |
( |
int |
mode | ) |
|
◆ UpdateCrosshairVisibility()
| void QmitkRenderWindowMenu::UpdateCrosshairVisibility |
( |
bool |
visible | ) |
|
◆ UpdateLayoutDesignList()
| void QmitkRenderWindowMenu::UpdateLayoutDesignList |
( |
LayoutDesign |
layoutDesign | ) |
|
Update list of layout design (standard layout, 2D images top, 3D bottom ..). Set action of current layout design to disable and all other to enable.
◆ m_All2DLeft3DRightLayoutAction
| QAction* QmitkRenderWindowMenu::m_All2DLeft3DRightLayoutAction |
|
protected |
◆ m_All2DTop3DBottomLayoutAction
| QAction* QmitkRenderWindowMenu::m_All2DTop3DBottomLayoutAction |
|
protected |
◆ m_AllHorizontalLayoutAction
| QAction* QmitkRenderWindowMenu::m_AllHorizontalLayoutAction |
|
protected |
◆ m_AllVerticalLayoutAction
| QAction* QmitkRenderWindowMenu::m_AllVerticalLayoutAction |
|
protected |
◆ m_CrosshairMenu
| QMenu* QmitkRenderWindowMenu::m_CrosshairMenu |
|
protected |
◆ m_CrosshairModeButton
| QToolButton* QmitkRenderWindowMenu::m_CrosshairModeButton |
|
protected |
◆ m_DefaultLayoutAction
| QAction* QmitkRenderWindowMenu::m_DefaultLayoutAction |
|
protected |
◆ m_FullScreenButton
| QToolButton* QmitkRenderWindowMenu::m_FullScreenButton |
|
protected |
◆ m_FullScreenMode
| bool QmitkRenderWindowMenu::m_FullScreenMode |
|
protected |
◆ m_LayoutActionsMenu
| QMenu* QmitkRenderWindowMenu::m_LayoutActionsMenu |
|
protected |
◆ m_LayoutDesignButton
| QToolButton* QmitkRenderWindowMenu::m_LayoutDesignButton |
|
protected |
◆ m_OneBigLayoutAction
| QAction* QmitkRenderWindowMenu::m_OneBigLayoutAction |
|
protected |
◆ m_OneLeft3DRightLayoutAction
| QAction* QmitkRenderWindowMenu::m_OneLeft3DRightLayoutAction |
|
protected |
◆ m_OneTop3DBottomLayoutAction
| QAction* QmitkRenderWindowMenu::m_OneTop3DBottomLayoutAction |
|
protected |
◆ m_Only2DHorizontalLayoutAction
| QAction* QmitkRenderWindowMenu::m_Only2DHorizontalLayoutAction |
|
protected |
◆ m_Only2DVerticalLayoutAction
| QAction* QmitkRenderWindowMenu::m_Only2DVerticalLayoutAction |
|
protected |
◆ m_RemoveOneLayoutAction
| QAction* QmitkRenderWindowMenu::m_RemoveOneLayoutAction |
|
protected |
◆ m_TSLabel
| QLabel* QmitkRenderWindowMenu::m_TSLabel |
|
protected |
The documentation for this class was generated from the following file: