feat(viz): allow setting landmark "view" distance
Description
Specify on which slices the landmarks should be visible or not.
A new SLandmarks
adaptor configuration has been added for that:
- `viewDistance="slicesInRange" → the landmarks will be visible on slices which "collide" with the landmarks spheres/cubes, depending on the size of the landmarks. It means a 10 sphere radius will be visible on 10 slices if each slice have a thickness of 1. This is the legacy behavior.
- `viewDistance="currentSlice" → the landmarks will only be visible on slices where they have been created. This is useful in 2D US cineloop "negato".
- `viewDistance="allSlices" → the landmarks will always be visible, regardless of the current slice.
...and many fixes concerning Landmarks visibility according to slice index
How to test it?
- add the configuration
viewDistance="currentSlice"
on aSLandmarks
adaptor and check that the landmark is only visible on the slices where it has been created.