HomePhabricator
Diffusion MITK 61b0df79d32e

Immediately apply "Show only selected nodes"

Description

Immediately apply "Show only selected nodes"

Summary:
Fix T29106
Switching on the "Show only selected nodes" checkbox in the Windows -> Preferences -> Segmentation should now
take affect once the "OK" button is pressed.

Changes:

void QmitkSegmentationView::ApplyDisplayOptions(mitk::DataNode* node) has been changed.

Toggling the "Show only selected nodes" checkbox in the Windows -> Prefences -> Segmentation page changes the variable
m_SelectionMode in QmitkSegmentationView.

Flow of information:

Pressing "OK" in the Preferences page triggers a QmitkSegmentationView::OnPreferencesChanged call, which in
turn subsequently calls the ApplyDisplayOptions function. This function is where the change is introduced.

In the function, if m_SelectionMode is true only the working node is set to visible. All other segmentation nodes are set to invisible.

Test Plan:
Switching on the "Show only selected nodes" checkbox in the Windows -> Preferences -> Segmentation should now
take affect once the "OK" button is pressed.

Reviewers: O1 MITK Reviewer Group I, kislinsk

Subscribers: kislinsk

Maniphest Tasks: T29106

Differential Revision: https://phabricator.mitk.org/D687

Details

Provenance
s349iAuthored on Oct 19 2022, 5:47 AM
kislinskCommitted on Oct 19 2022, 5:47 AM
kislinskPushed on Oct 21 2022, 6:01 AM
Differential Revision
Restricted Differential Revision
Parents
rMITKe77f5618dad4: Fix reports of memory usage on Linux and macOS
Branches
Unknown
Tags
Unknown
Tasks
T29106: [Segmentation Options] "show only selected nodes" is not immediately applied