The decoupled new data node context menu (T25056) can be used in different data storage inspectors.
One point has to be discussed, though:
The data storage models are equipped with a NodePredicate (from their base class QmitkAbstractDataStorageModel). This node predicate can be used to define which data nodes should be visible in the current data storage inspector / model (e.g. only show segmentation nodes). This was not possible with the original data manager.
The question now arises how certain actions should act:
- "Show only selected nodes" hides all nodes except for the selected nodes. If we have a node predicate, should it also hide the nodes which are not represented by the current data storage inspector? If not, the actions need to be aware of the current node predicate.
- "Hide all nodes" has the same issue
- should a "Global Reinit" include all nodes in the data storage or only those that are currently represented by the data storage inspector?
Related task:
T25176