[vtkusers] vtkWeb application with several windows
dan.lipsa at kitware.com
Wed Oct 5 13:21:39 EDT 2016
Great. Thanks Seb!
On Wed, Oct 5, 2016 at 1:18 PM, Sebastien Jourdain <
sebastien.jourdain at kitware.com> wrote:
> 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);
>> How do I associate a RemoteRenderer with a specific render window on the
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers