Skip to content

BUG: Restore complex gesture support#109

Merged
jcfr merged 1 commit intoKitwareMedical:masterfrom
jcfr:fix-RecognizeComplexGesture-support
Jan 30, 2023
Merged

BUG: Restore complex gesture support#109
jcfr merged 1 commit intoKitwareMedical:masterfrom
jcfr:fix-RecognizeComplexGesture-support

Conversation

@jcfr
Copy link
Contributor

@jcfr jcfr commented Jan 30, 2023

Following 1c36e40 (ENH: Update integration to support VTK 9.1), VTK was updated to a version where RecognizeComplexGesture was not virtual anymore in the base class (due to the integration of Kitware/VTK@af0fab486 (Clean up VR and OpenVR classes)).

This commit re-introduces the support for custom complex gesture handling based of VTK MR-9892.
See https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9892

SlicerVirtualReality implementation details:

  • The implementation of both HandleGripEvents() and RecognizeComplexGesture() was updated by removing the handling specific to Rotate and Pan to only keep he pinch event.

  • The update of the Scale was removed.

  • Call to StartingPhysicalEventPoses() originally introduced though both SlicerVirtualReality@b6815f1cb and Kitware/VTK@803d3a327 was maintained. The PhysicalToWorld matrix is modified so that the controller physical pose corresponds to the same rendering world pose.

  • The lines either enclosed in [SlicerVirtualReality] or associated with a // SlicerVirtualReality comment are specific to this extension.

Following 1c36e40 (ENH: Update integration to support VTK 9.1), VTK was
updated to a version where RecognizeComplexGesture was not virtual anymore
in the base class (due to the integration of Kitware/VTK@af0fab486 (Clean
up VR and OpenVR classes)).

This commit re-introduces the support for custom complex gesture handling
based of VTK MR-9892.
See https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9892

SlicerVirtualReality implementation details:

* The implementation of both HandleGripEvents() and RecognizeComplexGesture()
  was updated by removing the handling specific to Rotate and Pan to only keep
  he pinch event.

* The update of the Scale was removed.

* Call to StartingPhysicalEventPoses() originally introduced though both
  SlicerVirtualReality@b6815f1cb and Kitware/VTK@803d3a327 was maintained.
  The PhysicalToWorld matrix is modified so that the controller physical
  pose corresponds to the same rendering world pose.

* The lines either enclosed in `[SlicerVirtualReality]` or associated with a
  `// SlicerVirtualReality` comment are specific to this extension.
jcfr added a commit to jcfr/Slicer that referenced this pull request Jan 30, 2023
…alReality

References:
* KitwareMedical/SlicerVirtualReality#109
* KitwareMedical/SlicerVirtualReality#91

List of changes:

$ git shortlog 465e9dff6a..6efd97c519 --no-merges
Jean-Christophe Fillion-Robin (1):
      [Backport MR-9892] ENH: Re-introduce support for custom logic handling VR complex gesture
jcfr added a commit to Slicer/Slicer that referenced this pull request Jan 30, 2023
…alReality

References:
* KitwareMedical/SlicerVirtualReality#109
* KitwareMedical/SlicerVirtualReality#91

List of changes:

$ git shortlog 465e9dff6a..6efd97c519 --no-merges
Jean-Christophe Fillion-Robin (1):
      [Backport MR-9892] ENH: Re-introduce support for custom logic handling VR complex gesture
@jcfr
Copy link
Contributor Author

jcfr commented Jan 30, 2023

cc: @cpinter @LucasGandel

@jcfr jcfr merged commit c5c6d6f into KitwareMedical:master Jan 30, 2023
@jcfr jcfr deleted the fix-RecognizeComplexGesture-support branch January 30, 2023 01:08
jcfr added a commit to lassoan/Slicer that referenced this pull request Feb 21, 2023
…alReality

References:
* KitwareMedical/SlicerVirtualReality#109
* KitwareMedical/SlicerVirtualReality#91

List of changes:

$ git shortlog 465e9dff6a..6efd97c519 --no-merges
Jean-Christophe Fillion-Robin (1):
      [Backport MR-9892] ENH: Re-introduce support for custom logic handling VR complex gesture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant