ENH: Add custom event handlers for vtk interaction
- Allow to set up lambda functions from
VTKViewer
as custom behavior to run in the interactor Style in event callbacks. - Simplify
VTKInteractorStyle::OnChar()
to only have simple default behaviors (start, stop, pause, play, quit) - Move the implementation of
getTargetFrameRate()
,setTargetFrameRate()
andsetSimulationManager()
fromVTKInteractorStyle
toVTKViewer
, which becomes friend class of the private members ofVTKInteractorStyle
to avoid repeatedly wrapping around the interactor style methods.
Co-authored-by: Hina Shah hina.shah@kitware.com (@hina), adapted from !113 (merged)