Provides a context menu for level/window manipulation.
More...
#include <QmitkLevelWindowWidgetContextMenu.h>
Provides a context menu for level/window manipulation.
This widget creates a context menu offering standard level/window operations such as preset selection, auto-optimization, scale range changes, and image selection. It can either generate a standalone context menu or append its entries to an existing QMenu.
- See also
- QmitkSliderLevelWindowWidget
-
QmitkLineEditLevelWindowWidget
-
QmitkLevelWindowWidget
-
mitk::LevelWindowManager
Definition at line 36 of file QmitkLevelWindowWidgetContextMenu.h.
◆ QmitkLevelWindowWidgetContextMenu()
| QmitkLevelWindowWidgetContextMenu::QmitkLevelWindowWidgetContextMenu |
( |
QWidget * |
parent, |
|
|
Qt::WindowFlags |
f = {} |
|
) |
| |
Constructs the context menu widget.
- Parameters
-
| [in] | parent | The parent widget. |
| [in] | f | Optional window flags. |
◆ ~QmitkLevelWindowWidgetContextMenu()
| QmitkLevelWindowWidgetContextMenu::~QmitkLevelWindowWidgetContextMenu |
( |
| ) |
|
|
override |
◆ GetContextMenu() [1/2]
| void QmitkLevelWindowWidgetContextMenu::GetContextMenu |
( |
| ) |
|
Creates and shows a standalone context menu with standard level/window actions.
◆ GetContextMenu() [2/2]
| void QmitkLevelWindowWidgetContextMenu::GetContextMenu |
( |
QMenu * |
contextMenu | ) |
|
Appends standard level/window actions to an existing context menu.
- Parameters
-
| [in,out] | contextMenu | The menu to which level/window actions are appended. |
◆ 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()
Sets the LevelWindowManager used for image queries and change notifications.
- Parameters
-
| [in] | levelWindowManager | The LevelWindowManager to use. |
◆ m_AutoTopmostAction
| QAction* QmitkLevelWindowWidgetContextMenu::m_AutoTopmostAction |
|
protected |
◆ m_Images
| std::map<QAction *, mitk::LevelWindowProperty::Pointer> QmitkLevelWindowWidgetContextMenu::m_Images |
◆ m_ImageSubmenu
| QMenu* QmitkLevelWindowWidgetContextMenu::m_ImageSubmenu |
◆ m_LevelWindow
◆ m_LevelWindowPreset
◆ m_Manager
◆ 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: