Slicing through ImageData - Interactor does change image slice #485
-
I would like to set up a simple UI with an image/volume on the left side and a 3D renderer on the right side. I have tried multiple implementations (see commented code)
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
The current implementation of the RemoteView does not properly forward event to the interactor, especially for the wheel. But you can try to leverage trame-rca to properly send all the events to the interactor. You can find an example of it here |
Beta Was this translation helpful? Give feedback.
-
To properly update the view, you need to call view = vtk_widgets.VtkRemoteView(resliceViewer.GetRenderWindow())
ctrl.view_update = view.update
# trigger a view update - instead of calling render_window.Render()
ctrl.view_update() |
Beta Was this translation helpful? Give feedback.
Found a solution!
And then in UI view: