How to transmit multiple render windows with a VTK server and wslink launcher?

Hi I am currently using VTK as a server and I am also using the wslink launcher to serve multiple users.
My question is if a user wants to open multiple render windows like for example Paraview here:

BTW what’s the difference to something like this:

One of the key lines is:
self.getApplication().GetObjectIdMap().SetActiveObject("VIEW", render_window)

So I have a doubt how to attach more render windows to the user session.

I hope I was clear enough in my question and thank you for any help that I can get.

Edit: I have a similar server setup to his: https://github.com/Kitware/web-project-templates/tree/master/vue-vtkjs-pvw-template

1 Like

Any updates on this? Im looking for a solution for the same issue

Every view get a unique id which is the way they get mapped. The “active” magic is about having only one (at a time) and not having to know its id ahead of time (use id=-1 is going to do a lookup for active).

So you just need to get the view id and make sure the client use it when connecting to the server.

2 Likes