[Paraview] PV Web scrollwheel for zoom, wrong legend
Sebastien Jourdain
sebastien.jourdain at kitware.com
Fri Aug 12 10:30:30 EDT 2016
1) Yes, the client code should send the proper event to the server. But
that event might not be properly handle by the ParaView backend while it is
for VTK.
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.
2) The WebGL viewer is fairly limited so I don't see much thing that can be
done to fix it. But we are working on a version of VTK on the client that
will allow to have very similar rendering results between the server and
the client.
Once VTK.js start supporting scalar bars, we'll start migrating the code to
use VTK.js for local rendering.
Otherwise, you can always try to fix the code, but first make sure the
server is also properly sending the range of your scalar for building that
scalar bar before trying to fix the client code.
On Fri, Aug 12, 2016 at 2:34 AM, Daniel Zuidinga <info at seoaachen.de> wrote:
> Hi,
> I have 2 questions for paraview web (pv web visualizer).
>
> 1. Can I activate mouse wheel for zooming?
> 2. I have wrong values (0) at the legend when webgl is enabled. Can you
> give me a hint where to look at the code for a bugfix?
>
> regards
> Daniel
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160812/c9e154c0/attachment.html>
More information about the ParaView
mailing list