Combining LocalView and RemoteView - issue after update #487
-
A reference to the previous issue The video describes the steps to reproduce the bug/issue.
The ImageViewer is running as a VtkRemoteView and the Renderer is a vtkLocalView (see previous issue). What is the correct way to update a Local or a Remote view? Screen.Recording.2024-04-04.at.5.36.12.PM.mov |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The correct way to update any view (local or remote) is to call the with vtk_widgets.VtkRemoteView(rw_1) as view:
ctrl.view_update.add(view.update)
with vtk_widgets.VtkLocalView(rw_2) as view:
ctrl.view_update.add(view.update)
# update both views
ctrl.view_update() |
Beta Was this translation helpful? Give feedback.
-
ok, I finally saw what you meant in your video... ;-) Could you provide more information on what you did to add that plane? Did you rebuild the UI? If so that could explain why you got a glitch on the widget. Otherwise, it is hard to tell. |
Beta Was this translation helpful? Give feedback.
The correct way to update any view (local or remote) is to call the
html_view.update()
method on them. Keep in mind you can use the controller to centralize those calls more easily.