Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkRenderWindowMenu Class Reference

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>

Inheritance diagram for QmitkRenderWindowMenu:
Collaboration diagram for QmitkRenderWindowMenu:

Public Types

using LayoutIndex = mitk::AnatomicalPlane
 
using LayoutDesign = QmitkMultiWidgetLayoutManager::LayoutDesign
 

Signals

void ResetView ()
 
void CrosshairVisibilityChanged (bool)
 
void CrosshairRotationModeChanged (int)
 
void LayoutDesignChanged (LayoutDesign layoutDesign)
 

Public Member Functions

 QmitkRenderWindowMenu (QWidget *parent=nullptr, Qt::WindowFlags f={}, mitk::BaseRenderer *b=nullptr)
 
 ~QmitkRenderWindowMenu () override
 
bool GetSettingsMenuVisibilty ()
 
void SetLayoutIndex (LayoutIndex layoutIndex)
 
LayoutIndex GetLayoutIndex ()
 
void UpdateLayoutDesignList (LayoutDesign layoutDesign)
 
void UpdateCrosshairVisibility (bool visible)
 
void UpdateCrosshairRotationMode (int mode)
 
void MoveWidgetToCorrectPos ()
 
void ShowMenu ()
 
void HideMenu ()
 

Protected Slots

void AutoRotateNextStep ()
 
void OnAutoRotationActionTriggered ()
 
void OnTSNumChanged (int)
 
void OnCrosshairMenuAboutToShow ()
 
void OnCrosshairVisibilityChanged (bool)
 
void OnCrosshairRotationModeSelected (QAction *)
 
void OnFullScreenButton (bool checked)
 
void OnLayoutDesignButton (bool checked)
 
void OnSetLayout (LayoutDesign layoutDesign)
 

Protected Member Functions

void paintEvent (QPaintEvent *event) override
 
void CreateMenuWidget ()
 
void CreateSettingsWidget ()
 
void ChangeFullScreenIcon ()
 

Protected Attributes

QToolButton * m_CrosshairModeButton
 
QToolButton * m_FullScreenButton
 
QToolButton * m_LayoutDesignButton
 
QMenu * m_LayoutActionsMenu
 
QAction * m_DefaultLayoutAction
 
QAction * m_All2DTop3DBottomLayoutAction
 
QAction * m_All2DLeft3DRightLayoutAction
 
QAction * m_OneBigLayoutAction
 
QAction * m_Only2DHorizontalLayoutAction
 
QAction * m_Only2DVerticalLayoutAction
 
QAction * m_OneTop3DBottomLayoutAction
 
QAction * m_OneLeft3DRightLayoutAction
 
QAction * m_AllHorizontalLayoutAction
 
QAction * m_AllVerticalLayoutAction
 
QAction * m_RemoveOneLayoutAction
 
QLabel * m_TSLabel
 
QMenu * m_CrosshairMenu
 
bool m_FullScreenMode
 

Detailed Description

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 48 of file QmitkRenderWindowMenu.h.

Member Typedef Documentation

◆ LayoutDesign

◆ LayoutIndex

Constructor & Destructor Documentation

◆ QmitkRenderWindowMenu()

QmitkRenderWindowMenu::QmitkRenderWindowMenu ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = {},
mitk::BaseRenderer b = nullptr 
)

◆ ~QmitkRenderWindowMenu()

QmitkRenderWindowMenu::~QmitkRenderWindowMenu ( )
override

Member Function Documentation

◆ 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()

LayoutIndex QmitkRenderWindowMenu::GetLayoutIndex ( )
inline

Return layout direction of parent (axial, coronal, sagittal or threeD)

Definition at line 77 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 65 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.

Member Data Documentation

◆ m_All2DLeft3DRightLayoutAction

QAction* QmitkRenderWindowMenu::m_All2DLeft3DRightLayoutAction
protected

Definition at line 157 of file QmitkRenderWindowMenu.h.

◆ m_All2DTop3DBottomLayoutAction

QAction* QmitkRenderWindowMenu::m_All2DTop3DBottomLayoutAction
protected

Definition at line 156 of file QmitkRenderWindowMenu.h.

◆ m_AllHorizontalLayoutAction

QAction* QmitkRenderWindowMenu::m_AllHorizontalLayoutAction
protected

Definition at line 163 of file QmitkRenderWindowMenu.h.

◆ m_AllVerticalLayoutAction

QAction* QmitkRenderWindowMenu::m_AllVerticalLayoutAction
protected

Definition at line 164 of file QmitkRenderWindowMenu.h.

◆ m_CrosshairMenu

QMenu* QmitkRenderWindowMenu::m_CrosshairMenu
protected

Definition at line 169 of file QmitkRenderWindowMenu.h.

◆ m_CrosshairModeButton

QToolButton* QmitkRenderWindowMenu::m_CrosshairModeButton
protected

Definition at line 149 of file QmitkRenderWindowMenu.h.

◆ m_DefaultLayoutAction

QAction* QmitkRenderWindowMenu::m_DefaultLayoutAction
protected

Definition at line 155 of file QmitkRenderWindowMenu.h.

◆ m_FullScreenButton

QToolButton* QmitkRenderWindowMenu::m_FullScreenButton
protected

Definition at line 151 of file QmitkRenderWindowMenu.h.

◆ m_FullScreenMode

bool QmitkRenderWindowMenu::m_FullScreenMode
protected

Flag if full-screen mode is activated or deactivated.

Definition at line 172 of file QmitkRenderWindowMenu.h.

◆ m_LayoutActionsMenu

QMenu* QmitkRenderWindowMenu::m_LayoutActionsMenu
protected

Definition at line 154 of file QmitkRenderWindowMenu.h.

◆ m_LayoutDesignButton

QToolButton* QmitkRenderWindowMenu::m_LayoutDesignButton
protected

Definition at line 153 of file QmitkRenderWindowMenu.h.

◆ m_OneBigLayoutAction

QAction* QmitkRenderWindowMenu::m_OneBigLayoutAction
protected

Definition at line 158 of file QmitkRenderWindowMenu.h.

◆ m_OneLeft3DRightLayoutAction

QAction* QmitkRenderWindowMenu::m_OneLeft3DRightLayoutAction
protected

Definition at line 162 of file QmitkRenderWindowMenu.h.

◆ m_OneTop3DBottomLayoutAction

QAction* QmitkRenderWindowMenu::m_OneTop3DBottomLayoutAction
protected

Definition at line 161 of file QmitkRenderWindowMenu.h.

◆ m_Only2DHorizontalLayoutAction

QAction* QmitkRenderWindowMenu::m_Only2DHorizontalLayoutAction
protected

Definition at line 159 of file QmitkRenderWindowMenu.h.

◆ m_Only2DVerticalLayoutAction

QAction* QmitkRenderWindowMenu::m_Only2DVerticalLayoutAction
protected

Definition at line 160 of file QmitkRenderWindowMenu.h.

◆ m_RemoveOneLayoutAction

QAction* QmitkRenderWindowMenu::m_RemoveOneLayoutAction
protected

Definition at line 165 of file QmitkRenderWindowMenu.h.

◆ m_TSLabel

QLabel* QmitkRenderWindowMenu::m_TSLabel
protected

Definition at line 167 of file QmitkRenderWindowMenu.h.


The documentation for this class was generated from the following file: