Skip to content

ENH: Add custom event handlers for vtk interaction

  1. Allow to set up lambda functions from VTKViewer as custom behavior to run in the interactor Style in event callbacks.
  2. Simplify VTKInteractorStyle::OnChar() to only have simple default behaviors (start, stop, pause, play, quit)
  3. Move the implementation of getTargetFrameRate(), setTargetFrameRate() and setSimulationManager() from VTKInteractorStyle to VTKViewer, which becomes friend class of the private members of VTKInteractorStyle to avoid repeatedly wrapping around the interactor style methods.

Co-authored-by: Hina Shah hina.shah@kitware.com (@hina), adapted from !113 (merged)

Merge request reports