Currently the level window slider can be used to set the level window of the topmost visible image (in the datamanager). It is also possible to use the context-menu of the level window slider and set the level window for a different data node. However, there is a scenario, where users want to apply the same level window to a set of data nodes, e.g. a set of CT-images. This could be simplified by introducing an option to set the level window for a set of selected nodes.
- Differential Revisions
- Restricted Differential Revision
Currently the level window slider is not designed to affect multiple nodes.
The level window manager holds a member m_CurrentImage that denotes the current image on which the level window should work. Need to investigate a little further what will happen if we use a set / list of current images.
The level window can now be applied to a set of selected data nodes (if using the new option "Use selected images" in the level window slider context menu).
The 'selected' property of a data node has to be set, though. This is done e.g. in the data manager.
Using the new selection concept the selected property is currently not maintained and therefore using the new selection widgets will not allow to use selected nodes for the level window slider (see T25804).
Using the new option "Use selected images", the mitk::LevelWindowManager::SetSelectedImages-function defines a set of selected images (according to the 'selected'-property) but uses the last image of the set of selected images as the 'currentImage'.
Please note that QmitkLevelWindowWidgetContextMenu::OnUseAllGreyvaluesFromImage() and QmitkLevelWindowWidgetContextMenu::OnUseOptimizedLevelWindow() use the mitk::LevelWindowManager::GetCurrentImage()-function and will therefore adjust the level window according to the current image.