feat(ui): display the slice position in mm in the slice selector instead of the index
Description
Currently, the slice selector displays the current slice index. We want, like 3D Slicer to display the slice position. This need to be configurable, since in some situation, the slice index is wanted (like when storing US frames in a single image).
Sight Viewer | Slicer |
---|---|
Functional specifications
There will be a slider widget, similar to the slice index, with functionality to display the slice position based on the index of the slice
Technical specifications
Create a config
tag in the XML configuration that includes a QSlider widget. This tag should also incorporate orientation
, label
, display_axis_selector
, and display_step_buttons
tags, reflecting updates in the slice_index_position_editor service. For the label attribute set to position, the number adjacent to each axis letter in varying orientations ought to represent the slice's position along its specific sectional axis. Calculate this position using the formula: Slice Position = Origin + (Slice Index) × (Spacing Between Slices).
Test plan
manual testing of the applications tuto07_generic_scene and ex_image_subtraction.