HomePhabricator
Diffusion MITK 6cd2ce96452e

Show pixel value for mxnmultiwidget

Description

Show pixel value for mxnmultiwidget

Summary:
Update the crosshair with a new slice

When scrolling the SliceNavigationController uses SendSlice and invokes
a GeometrySliceEvent when the slice stepper changed.
This event has to be connected to the newly introduced function to
correctly update the slice for the crosshair planes.

React on the GeometryUpdateEvent of the SliceNavigationController

This is required for the mxnMultiWidget since a crosshair reset
will not trigger the already connected GeometrySliceEvent.
Reacting on the GeometrySliceEvent was enough for the StdMultiWidget
since the SliceNavigationController were connected and a crosshair reset
would trigger a slice change in other render windows.
For the mxnMultiWidget this is not the case, so we need to listen to the
GeometryUpdateEvent additionally.

Clean up some classes

Test Plan:
manual testing

  • open MITK, close the StdDisplay, open the mxnDisplay
  • open the Pixel value view, load an image and set the crosshair to a different position
    • also scroll through the slices
  • see how the pixel value changes accordingly

Reviewers: s434n, O1 MITK Reviewer Group I, O3 MITK Reviewer Group II

Reviewed By: s434n, O1 MITK Reviewer Group I, O3 MITK Reviewer Group II

Subscribers: floca, kalali, s434n

Maniphest Tasks: T29385

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

Details

Provenance
kalaliAuthored on Nov 14 2022, 8:22 PM
kalaliPushed on Nov 23 2022, 5:40 PM
Reviewer
O1: MITK Reviewer Group I
Differential Revision
Restricted Differential Revision
Parents
rMITK674aee77ff2a: React on render window part changed
rMITK108795e0fc1f: Disable selecting legacy binary segmentations
Branches
Unknown
Tags
Unknown
Tasks
T29385: [mxn multi widget] Pixel value view does not change on crosshair selection