<div dir="ltr">Great. Thanks Seb!<div><br></div><div>Dan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 5, 2016 at 1:18 PM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The server API never changed. The "<span style="font-size:12.8px">SetActiveObject" is used to not have to worry about knowing the view id.</span><div><span style="font-size:12.8px">So the server should remain the way it was before.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">And on the client the constructor of the RemoteRenderer does take the view id</span></div><div><span style="font-size:12.8px">=> </span><span style="margin:0px;padding:0px;border:0px;outline:0px;font-family:"source code pro",monaco,menlo,consolas,monospace;font-size:14.25px;vertical-align:baseline;color:rgb(137,89,168);white-space:pre-wrap;background-color:rgb(238,238,238)">constructor</span><span style="color:rgb(77,77,76);font-family:"source code pro",monaco,menlo,consolas,monospace;font-size:14.25px;white-space:pre-wrap;background-color:rgb(238,238,238)">(pvwClient, container = null, id = -1)</span></div><div><span style="color:rgb(77,77,76);font-family:"source code pro",monaco,menlo,consolas,monospace;font-size:14.25px;white-space:pre-wrap;background-color:rgb(238,238,238)"><br></span></div><div><span style="font-size:12.8px">So in your example: </span><br></div><div><span style="font-size:12.8px"> const renderer = new RemoteRenderer(client, null, 234234);</span><span style="font-size:12.8px"><br></span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 5, 2016 at 11:11 AM, Dan Lipsa <span dir="ltr"><<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Seb and all,<div>I am moving along with porting our uvcdat web application to the new API.</div><div><br></div><div>Is there an example where I see how to create/destroy multiple render windows and associate them with different document elements in the browser?</div><div><br></div><div>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.</div><div><br></div><div>With the new API I only see </div><div><div>self.Application.GetObjectIdMa<wbr>p().SetActiveObject("VIEW", renderWindow)</div></div><div><br></div><div>On the client we use</div><div><div> const renderer = new RemoteRenderer(client);</div><div> renderer.setContainer(document<wbr>Element);</div></div><div><br></div><div>How do I associate a RemoteRenderer with a specific render window on the server?</div><div><br></div><div>Thanks,</div><div>Dan</div><div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>