-
|
For my application, I wanted to use So far, I've created a custom Python subclass of However, though the application recognizes the parent class of my override class (ie. switching to trackball as a parent changes the behavior to trackball), it only uses the default behaviors of each mouse button rather than my custom overrides. A simple, reproducible example involves a slight modification of the motorcycle example from the Trame VTK examples website. I added this class: and changed this line: Why won't the overrides apply? Could it be that the observer event names are different between the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
The issue with Thankfully we have a new camera style manipulator that has been merged into VTK/C++ a week ago (I think) which should also work in wasm. That will allow you to customize your style as you want on the server and have wasm properly interpret it on the client side. |
Beta Was this translation helpful? Give feedback.
-
|
This should be possible soon. With the new style = vtk.vtkInteractorStyleManipulator(interactor=interactor)
style.manipualtors.append(
vtkTrackballPan(mouse_button=vtkCameraManipulator.MouseButtonType.Left,
))Now, since you are interested in 'image' type of panning, i think a new manipulator (named We also need to enable serialization for all the manipulator classes. |
Beta Was this translation helpful? Give feedback.
This should be possible soon. With the new
vtkCameraManipulator(will be released in 9.7.0), you should be able to do:Now, since you are interested in 'image' type of panning, i think a new manipulator (named
vtkTrackballPan2D) for that should be added.We also need to enable serialization for all the manipulator classes.