HomePhabricator
Diffusion MITK fee6851a4b20

Correctly use the node predicates for the render window data storage inspector

Description

Correctly use the node predicates for the render window data storage inspector

Summary:
Simplify the utilities-nodepredicate

Excluding helper nodes should not be defined by this function.

Combine the node predicates for node filtering

The 'fixed layer' node predicate is combined with the user-defined
node predicate member to filter nodes.
This needs to be done either when updating the model (e.g. changing
the data storage or the node predicate) or when a new node is added
to the model by listening to the data storage.

Set a custom node predicate to filter out helper nodes

This data storage inspector should not show helper / hidden nodes so
we add a predicate for that.

Remove custom function and rely on base class function

A function for retrieving the currently selected nodes of the view / model
was already present in the base class 'QmitkAbstractDataStorageInspector'.
It uses the 'QmitkModelViewSelectionConnector' to retrieve the selcted nodes
via model indices.

Test Plan:
manual testing

  1. open the MITK workbench, load some data
  2. close the Standard Display, open the MxN Display
  3. check the "Data" drop down to select data
  4. see how the crosshair (helper nodes) is not available as nodes

Reviewers: s434n, O3 MITK Reviewer Group II

Reviewed By: s434n, O3 MITK Reviewer Group II

Subscribers: kalali, s434n

Maniphest Tasks: T29331

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

Details

Provenance
kalaliAuthored on Oct 7 2022, 5:42 PM
kalaliPushed on Oct 13 2022, 1:41 PM
Reviewer
O3: MITK Reviewer Group II
Differential Revision
Restricted Differential Revision
Parents
rMITKad189cd92af8: Remove custom function and rely on base class function
rMITK641e779ba527: Merge branch 'bugfix/T29350-NodeSelectionDialogNeedsMarginAndSpacing' into…
Branches
Unknown
Tags
Unknown
Tasks
T29331: Use NodePredicates for the render window data node selector