Skip to content

enh(viz): add slot in SShapeExtruder to replace right click

Description

These changes add a slot called "cancelLastClick" to cancel the last click in the shape extruder. This allow to replace the right click in context where it isn't available, such as in a touchscreen context. In addition, this adds a button in SightViewer which triggers this slot when clicked. This allows to test it, and can be removed if needed. Its icon should be changed.

Closes #658 (closed)

How to test it?

  • Launch SightViewer
  • Activate the shape extruder
  • Click a few time on the 3D scene to draw the lasso
  • Click on the "Cancel last click" button. Make sure the last click does disappear from the lasso.

Additional tests/tasks to run

  • The icon for the "Cancel last click" button should be changed (or the button must be removed).
Edited by Lucas SCHMIDT

Merge request reports