Refactor SliceNavigationController's Update-function
Summary:
Clean and simplify update-function
Many geometry-conversions / -copies are unnecessary.
Removing them and creating an additional, shorter function
helps reading the SliceNavigationController.
Clean and format SelectSliceByPoint-function
Test Plan:
manual testing
- open MITK workbench, load image
- use navigation sliders to test slicing of image
- check different view directions / render windows
- use "2D", 3D and 4D images
Reviewers: kislinsk, O1 MITK Reviewer Group I
Reviewed By: kislinsk, O1 MITK Reviewer Group I
Subscribers: kalali, kislinsk
Maniphest Tasks: T29267
Differential Revision: https://phabricator.mitk.org/D703