'EndGesture': is not a member of 'vtkInteractorStyleMultiTouchCameraExample' QtVTKTouchscreenRenderWindows.cxx (257)
'StartGesture': is not a member of 'vtkInteractorStyleMultiTouchCameraExample' QtVTKTouchscreenRenderWindows
QtVTKTouchscreenRenderWindows.cxx (245)
Is there anything that I am missing? But, all other examples work fine on my machine.
Secondly, I have a QML application that renders VTK enabled 3D graphics. How should I be able integrate touch gestures on VTK window that is inside a QML item?
Do you mean that you took TouchGestureViewer example from one VTK version and tried to use it in a different VTK version? You probably need to backport all related changes into your VTK version.
We use VTK in a ctkVTKAbstractView and we know it works well there. I would recommend to check first that it works for you in classic Qt application/widget and then try if it works in QML as well.
vtkInteractorStyleMultiTouchCameraExample doesn’t implement, override nor inherit any methods called EndGesture() or StartGesture() hence the error. Why such error is in that example left me scratching my head…
Anyway, I suggest replacing StartGesture() with OnStartRotate(). Likewise, EndGesture() with OnEndRotate(), if the swipe gesture is meant to rotate the model. The forementioned methods are both defined in vtkInteractorStyleMultiTouchCamera. See whether those work.
The documentation I cited is supposed to be that of the latest (nightly build). The offending methods are not there. Maybe someone should contact the author of the example to report this.
Hi Paulo,
Thank you very much for your replies. I am using VTK8.2.0 latest release.
I tried to use use OnStartRotate() and OnEndRotate() methods (instead of StartGesture() and EndGesture() methods) as you mentioned. But, only methods available are OnStartSwipe() and OnStartSwipe() - even if I attempt to use these two methods I get these errors:
'vtkInteractorStyleMultiTouchCameraExample::OnStartSwipe': method with override specifier 'override' did not override any base class methods
‘vtkInteractorStyleMultiTouchCameraExample::OnEndSwipe’: method with override specifier ‘override’ did not override any base class methods
There have been no releases since 8.2.0, so if you would like to compile the example you will need to compile VTK from the master branch (which is 8.90.0).