<div dir="ltr">I would rather have one <span style="font-size:12.8px">vtkWebMouseListener per div so each listener has its own view id.</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 21, 2017 at 10:17 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">Thanks Scott,<div>I was thinking to go one step further:</div><div>- Pass a map between the client elements(divs) and the server window ids. I already have both the element ids and the server window ids.</div><div>- When a mouse event is received in vtkWebMouseListener we can use that map and send the server window id the event applies too.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Dan</div><div><br></div><div> <br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 21, 2017 at 11:40 AM, Scott Wittenburg <span dir="ltr"><<a href="mailto:scott.wittenburg@kitware.com" target="_blank">scott.wittenburg@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"><div>Hi Dan,</div><div><br></div>In VtkWebMouseListener, it is the "view" key in the vtk event structure that indicates what view to send the event to on the server, and it does seem that there is no way to change it from -1, which indicates to send the event to the active view.  However, both the paraviewweb and vtkweb server protocols have mouse handlers which take the id of the target view as an option, so what you want to do seems to be supported on the server side at least.  But I agree with you that the VtkWebMouseListener does not seem to provide a mechanism to change that view id.  One thing we could do is have the VtkWebMouseListener take a view id as an optional 4th argument which defaults to -1, then use that in the zoom and drag listeners.<div><br></div><div>If that makes sense to you, you can put together a PR on paraviewweb, and I'll be happy to review it.  Otherwise, get in touch with me offline and we can chat about it.  Hope this helps.</div><div><br></div><div>Cheers,</div><div>Scott</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-8748115193638134275h5">On Fri, Jul 21, 2017 at 7:21 AM, Dan Lipsa <span dir="ltr"><<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-8748115193638134275h5"><div dir="ltr">Hi all,<div>We are using VTKWeb + ParaViewWebClient in the browser. We open several VTK windows on the server and put them inside different panels (divs) in the browser.</div><div><br></div><div>Looking at VtkWebMouseListener/index.js it seems that there is no support for this configuration.</div><div><br></div><div>It seems that client has not concept of active view, so it always sends mouse events to the server, regardless of the active view on the server.<br></div><div><br></div><div>The resulting behavior is that you can move your mouse over a different panel, but the active panel moves. Am I missing something?</div><div><br></div><div>Thanks,</div><div>Dan</div><div><br></div></div>
<br></div></div>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
<br>
<br></blockquote></div><br></div>