Provides a contextmenu for Level/Window functionality.
More...
#include <QmitkLevelWindowWidgetContextMenu.h>
Provides a contextmenu for Level/Window functionality.
Either creates a new contextmenu with standard functions or adds Level/Window standard functions to an predefined contextmenu.
Definition at line 30 of file QmitkLevelWindowWidgetContextMenu.h.
◆ QmitkLevelWindowWidgetContextMenu()
| QmitkLevelWindowWidgetContextMenu::QmitkLevelWindowWidgetContextMenu |
( |
QWidget * |
parent, |
|
|
Qt::WindowFlags |
f = {} |
|
) |
| |
◆ ~QmitkLevelWindowWidgetContextMenu()
| QmitkLevelWindowWidgetContextMenu::~QmitkLevelWindowWidgetContextMenu |
( |
| ) |
|
|
override |
◆ GetContextMenu() [1/2]
| void QmitkLevelWindowWidgetContextMenu::GetContextMenu |
( |
| ) |
|
returns the contextmenu with standard functions for Level/Window
◆ GetContextMenu() [2/2]
| void QmitkLevelWindowWidgetContextMenu::GetContextMenu |
( |
QMenu * |
contextMenu | ) |
|
returns the contextmenu with standard functions for Level/Window
input is a prefilled contextmenu to which standard functions will be added
◆ OnAddPreset
| void QmitkLevelWindowWidgetContextMenu::OnAddPreset |
( |
| ) |
|
|
protectedslot |
adds a new Preset for presets-contextmenu
◆ OnChangeScaleRange
| void QmitkLevelWindowWidgetContextMenu::OnChangeScaleRange |
( |
| ) |
|
|
protectedslot |
changes the current images scalerange
◆ OnSetDefaultLevelWindow
| void QmitkLevelWindowWidgetContextMenu::OnSetDefaultLevelWindow |
( |
| ) |
|
|
protectedslot |
resets the current images Level/Window to its default values
◆ OnSetDefaultScaleRange
| void QmitkLevelWindowWidgetContextMenu::OnSetDefaultScaleRange |
( |
| ) |
|
|
protectedslot |
resets the current images scalerange to its default values
◆ OnSetFixed
| void QmitkLevelWindowWidgetContextMenu::OnSetFixed |
( |
| ) |
|
|
protectedslot |
sets the level window slider to be fixed
◆ OnSetImage
| void QmitkLevelWindowWidgetContextMenu::OnSetImage |
( |
QAction * |
imageAction | ) |
|
|
protectedslot |
sets the selected image or the topmost layer image to the new current image
◆ OnSetMaximumWindow
| void QmitkLevelWindowWidgetContextMenu::OnSetMaximumWindow |
( |
| ) |
|
|
protectedslot |
sets the window to its maximum Size to fit the scalerange
◆ OnSetPreset
| void QmitkLevelWindowWidgetContextMenu::OnSetPreset |
( |
const QAction * |
presetAction | ) |
|
|
protectedslot |
sets level and window value of the current image to the values defined for the selected preset
◆ OnUseAllGreyvaluesFromImage
| void QmitkLevelWindowWidgetContextMenu::OnUseAllGreyvaluesFromImage |
( |
| ) |
|
|
protectedslot |
calls the mitkLevelWindow SetToImageRange method, so that the greyvalues from whole image will be used
◆ OnUseOptimizedLevelWindow
| void QmitkLevelWindowWidgetContextMenu::OnUseOptimizedLevelWindow |
( |
| ) |
|
|
protectedslot |
calls the mitkLevelWindow SetAuto method with guessByCentralSlice false, so that the greyvalues from whole image will be considered
◆ SetLevelWindowManager()
lets this object know about the LevelWindowManager to get all images and tell about changes
◆ m_AutoTopmostAction
| QAction* QmitkLevelWindowWidgetContextMenu::m_AutoTopmostAction |
|
protected |
◆ m_Images
map to hold all image-properties, one can get the image which is selected in the contextmenu with the QAction representing the image for the contextmenu
Definition at line 62 of file QmitkLevelWindowWidgetContextMenu.h.
◆ m_ImageSubmenu
| QMenu* QmitkLevelWindowWidgetContextMenu::m_ImageSubmenu |
◆ m_LevelWindow
◆ m_LevelWindowPreset
◆ m_Manager
pointer to the object which manages all Level/Window changes on images and holds the LevelWindowProperty of the current image
Definition at line 58 of file QmitkLevelWindowWidgetContextMenu.h.
◆ m_PresetAction
| QAction* QmitkLevelWindowWidgetContextMenu::m_PresetAction |
|
protected |
◆ m_PresetSubmenu
| QMenu* QmitkLevelWindowWidgetContextMenu::m_PresetSubmenu |
◆ m_SelectedImagesAction
| QAction* QmitkLevelWindowWidgetContextMenu::m_SelectedImagesAction |
|
protected |
The documentation for this class was generated from the following file: