<div dir="ltr">Ken, <div><br></div><div>we should not try to use <ctrl> as it won't be possible to trigger it on OS X as it will be understood as a "Right click" and will bring the popup menu.</div><div><br></div><div>But that's great to have that feature.</div><div><br></div><div>Seb</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 17, 2016 at 7:38 PM, Ken Martin <span dir="ltr"><<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@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"><ctrl><shift>left mouse does work as zoom in vtk.js FWIW - Ken</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Aug 17, 2016 at 7:32 PM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.<wbr>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="h5"><div dir="ltr">vtk.js interaction does not currently implement zooming. So the current behavior is expected.<div><br></div><div>What are you trying to do with vtk.js and salome? vtk.js has not been released yet and is a pure JavaScript/client library.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 17, 2016 at 3:18 PM, Daniel Zuidinga <span dir="ltr"><<a href="mailto:info@seoaachen.de" target="_blank">info@seoaachen.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
shouldn't work scroll wheel in vtk.js? e.g. here
<a href="https://kitware.github.io/vtk-js/examples/HttpSceneLoader.html" target="_blank">https://kitware.github.io/vtk-<wbr>js/examples/HttpSceneLoader.ht<wbr>ml</a><br>
I have to compile the whole sources? I use pv of salome meca. I hope
it isn't to complicated and cpu intensive.<div><div><br>
<br>
<div>Am 17.08.2016 um 22:32 schrieb
Sebastien Jourdain:<br>
</div>
<blockquote type="cite">
<div dir="ltr">I guess ParaView is missing more code on the server
side. ;-)
<div>This time, it will be in the C++.
<div><br>
</div>
<div><br>
</div>
<div>${ParaView-src}/VTK/Web/Core/v<wbr>tkWebApplication.cxx =>
vtkPVWebApplication::HandleInt<wbr>eractionEvent</div>
<div><br>
</div>
<div>vs</div>
<div><br>
</div>
<div>${ParaView-src}/Web/Core/vtkPV<wbr>WebApplication.cxx =>
vtkWebApplication::HandleInter<wbr>actionEvent<br>
</div>
<div><br>
</div>
<div>The VTK one has:</div>
<div><br>
</div>
<div>
<div> // Handle scroll action if any</div>
<div> if(event->GetScroll()) {</div>
<div> iren->SetEventInformation(0, 0, ctrlKey,
shiftKey, event->GetKeyCode(), 0);</div>
<div> iren->MouseMoveEvent();</div>
<div> iren->RightButtonPressEvent();</div>
<div> iren->SetEventInformation(0,
event->GetScroll()*10, ctrlKey, shiftKey,
event->GetKeyCode(), 0);</div>
<div> iren->MouseMoveEvent();</div>
<div> iren->RightButtonReleaseEvent(<wbr>);</div>
<div> this->Internals->ImageCache[vi<wbr>ew].NeedsRender
= true;</div>
<div> return true;</div>
<div> }</div>
</div>
<div><br>
</div>
<div>If you got it working, could you submit a pull request on
our gitlab and assign it to me so those fix could be part of
PV 5.2?</div>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Seb</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Aug 17, 2016 at 2:08 PM, Daniel
Zuidinga <span dir="ltr"><<a href="mailto:info@seoaachen.de" target="_blank">info@seoaachen.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I added
the lines but scroll wheel does not work
<div>
<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Look at ${pv_src}/Web/Python/paraview/<wbr>web/protocols.py
#ParaViewWebMouseHandler<br>
vs ${pv_src}/VTK/Web/Python/vtk/w<wbr>eb/protocols.py
#vtkWebMouseHandler<br>
<br>
it seems the paraview one is missing:<br>
<br>
if event.has_key("scroll"):<br>
pvevent.SetScroll(event["scrol<wbr>l"])<br>
<br>
Just add it to your paraview python file.<br>
<br>
</blockquote>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>
<br></div></div><span class="">______________________________<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>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
<br></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br><a href="tel:518%20371%203971" value="+15183713971" target="_blank">518 371 3971</a><div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div>
</font></span></div>
</blockquote></div><br></div>