Skip to content

feat(viz): move negato slice on landmark selection

Description

Move slices when double-clicking a landmark on SLandmarks editor.

SLandmarks sends a signal with the world coordinates of the landmarks.

SNegato2D or SNegato3D provide a slot that takes the world coordinates and convert it into slices indexes, if the result is within boundaries of the current image, slices indexes are moved to reach the landmark.

adaptor::SLandmarks was also updated to provide a double click event on landmark and to send its world coordinates.

A "world to slice coordinates" function has been implemented in viz::scene3d::Utils and a new test has been added.

Closes #676 (closed)

How to test it?

Try it on sightviewer.

  1. Open an image
  2. use the negato view (3 slices icon on the LEFT)
  3. Add landmarks wherever you want by CTRL+ click on image
  4. On the landmark panel (GPS/Map pointer icon on the RIGHT), double click on a landmark (not a group), slices should mode toward the landmark.

Some results

sightviewer_landmark_slice_moving

Edited by Flavien BRIDAULT

Merge request reports