Skip to content

Fix touch point detection in QVTKInteractorAdapter

This merge request addresses two issues:

  • When detecting touch events, the point id was previously checked to ensure that it was below VTKI_MAX_POINTERS. This was an invalid comparison since point ids were not guaranteed to start at 0. This fixes pointer detection by using vtkRenderWindowInteractor methods to convert point.id to pointIndex. In order to maintain the previous behavior where touch points were not recognized, this commit also adds a flag to enable/disable conversion of Qt touch events to VTK mouse events (disabled by default).

  • Previously gestures would only be recognized if no other state was active. This commit adds the AllowGesturesDuringRotate option which allows the gesture state to be started while rotation is active (disabled by default).

Supersedes: !9112 (closed) @lassoan @ikerssm @sankhesh @mhsitu

Merge request reports