[vtk-developers] QVTKRenderWindowInteractor bug in Mac OS

Mathieu Westphal mathieu.westphal at kitware.com
Wed Oct 31 09:54:15 EDT 2018


Hi Stas,

You may want to try with the last development version of VTK, as these
class have been reimplemented.
https://gitlab.kitware.com/vtk/vtk

Best Regards,

Mathieu Westphal


On Wed, Oct 31, 2018 at 2:21 PM take5v <stas.truhan at gmail.com> wrote:

> Dear developers and others,
>
> I'd like to visualize grayscale images with python, VTK and PyQt5. So, I've
> made this script with Qt Application and embedded
> QVTKRenderWindowInteractor. Please have a look into my gist
> https://gist.github.com/take5v/1df1e4f4222f49cf05cbf59b1f89a9ea.
>
> The issue is that the vtkPropPicker gives wrong world coordinates while
> event coordinates are correct. This bug I could reproduce only on Mac Os,
> not on Windows and Ubuntu.
>
> I found probably a workaround that was made for c++ QVTKOpenGLWindow class
> which wasn't been wrapped for python:
>
> https://github.com/Kitware/VTK/blob/c6eb8803c44b13947f959aed7b4e551e5e2915db/GUISupport/Qt/QVTKOpenGLWindow.cxx#L266
> .
>
> My setup:
> macOS Mojave 10.14
> python 3.6.4
> vtk-python 8.1.1
> PyQt 5.11.3
>
> Best regards,
> Stas
>
>
>
>
>
> -----
> Best regards,
> Stanislau Trukhan
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Dev-f1251487.html
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtk-developers/attachments/20181031/40ad83f2/attachment.html>


More information about the vtk-developers mailing list