I am trying to modify the
Rotate() function of
vtkInteractorStyleTrackballCamera in order to obtain an arcball camera instead of a trackball camera.
The advantage of arcball camera is path invariance, as described here. (I wonder why this is not already available in VTK ?)
I am using the Python vtk wrapper. (vtk version : 9.0.1)
My problem is that I cannot access the method
I tried to subclass
vtkInteractorStyleTrackballCamera and making mock methods to verify that the methods are working as expected.
class subclass(vtk.vtkInteractorStyleTrackballCamera): def aMethodFromParent(self): print('aMethodFromParent has been called !') (return) super().aMethodFromParent()
It works for methods like
It does not for methods like
OnStartPan. (nothing happens when, for example, I rotate the view in my 3D viewport)
Do you know what I am missing here ?