[Paraview] PV Web scrollwheel for zoom, wrong legend
Sebastien Jourdain
sebastien.jourdain at kitware.com
Fri Aug 19 10:13:10 EDT 2016
Ken,
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.
But that's great to have that feature.
Seb
On Wed, Aug 17, 2016 at 7:38 PM, Ken Martin <ken.martin at kitware.com> wrote:
> <ctrl><shift>left mouse does work as zoom in vtk.js FWIW - Ken
>
> On Wed, Aug 17, 2016 at 7:32 PM, Sebastien Jourdain <
> sebastien.jourdain at kitware.com> wrote:
>
>> vtk.js interaction does not currently implement zooming. So the current
>> behavior is expected.
>>
>> 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.
>>
>>
>>
>> On Wed, Aug 17, 2016 at 3:18 PM, Daniel Zuidinga <info at seoaachen.de>
>> wrote:
>>
>>> shouldn't work scroll wheel in vtk.js? e.g. here
>>> https://kitware.github.io/vtk-js/examples/HttpSceneLoader.html
>>> I have to compile the whole sources? I use pv of salome meca. I hope it
>>> isn't to complicated and cpu intensive.
>>>
>>>
>>> Am 17.08.2016 um 22:32 schrieb Sebastien Jourdain:
>>>
>>> I guess ParaView is missing more code on the server side. ;-)
>>> This time, it will be in the C++.
>>>
>>>
>>> ${ParaView-src}/VTK/Web/Core/vtkWebApplication.cxx =>
>>> vtkPVWebApplication::HandleInteractionEvent
>>>
>>> vs
>>>
>>> ${ParaView-src}/Web/Core/vtkPVWebApplication.cxx =>
>>> vtkWebApplication::HandleInteractionEvent
>>>
>>> The VTK one has:
>>>
>>> // Handle scroll action if any
>>> if(event->GetScroll()) {
>>> iren->SetEventInformation(0, 0, ctrlKey, shiftKey,
>>> event->GetKeyCode(), 0);
>>> iren->MouseMoveEvent();
>>> iren->RightButtonPressEvent();
>>> iren->SetEventInformation(0, event->GetScroll()*10, ctrlKey,
>>> shiftKey, event->GetKeyCode(), 0);
>>> iren->MouseMoveEvent();
>>> iren->RightButtonReleaseEvent();
>>> this->Internals->ImageCache[view].NeedsRender = true;
>>> return true;
>>> }
>>>
>>> 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?
>>>
>>> Thanks,
>>>
>>> Seb
>>>
>>> On Wed, Aug 17, 2016 at 2:08 PM, Daniel Zuidinga <info at seoaachen.de>
>>> wrote:
>>>
>>>> I added the lines but scroll wheel does not work
>>>>
>>>>
>>>>> Look at ${pv_src}/Web/Python/paraview/web/protocols.py
>>>>> #ParaViewWebMouseHandler
>>>>> vs ${pv_src}/VTK/Web/Python/vtk/web/protocols.py #vtkWebMouseHandler
>>>>>
>>>>> it seems the paraview one is missing:
>>>>>
>>>>> if event.has_key("scroll"):
>>>>> pvevent.SetScroll(event["scroll"])
>>>>>
>>>>> Just add it to your paraview python file.
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
>
> --
> Ken Martin PhD
> Chairman & CFO
> Kitware Inc.
> 28 Corporate Drive
> Clifton Park NY 12065
> 518 371 3971
>
> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160819/7db92cd3/attachment.html>
More information about the ParaView
mailing list