[vtkusers] vtkWeb application with several windows

Sebastien Jourdain sebastien.jourdain at kitware.com
Wed Oct 5 13:18:10 EDT 2016

The server API never changed. The "SetActiveObject" is used to not have to
worry about knowing the view id.
So the server should remain the way it was before.

And on the client the constructor of the RemoteRenderer does take the view
=> constructor(pvwClient, container = null, id = -1)

So in your example:
 const renderer = new RemoteRenderer(client, null, 234234);

On Wed, Oct 5, 2016 at 11:11 AM, Dan Lipsa <dan.lipsa at kitware.com> wrote:

> Hi Seb and all,
> I am moving along with porting our uvcdat web application to the new API.
> Is there an example where I see how to create/destroy multiple render
> windows and associate them with different document elements in the browser?
> In the past we used to use getGlobalId(renderWindow) on the server, send
> that to the client and then use vtkWeb.createViewport and pass that ID.
> With the new API I only see
> self.Application.GetObjectIdMap().SetActiveObject("VIEW", renderWindow)
> On the client we use
>       const renderer = new RemoteRenderer(client);
>       renderer.setContainer(documentElement);
> How do I associate a RemoteRenderer with a specific render window on the
> server?
> Thanks,
> Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161005/01713b68/attachment.html>

More information about the vtkusers mailing list