<div dir="ltr"><div dir="ltr">Hi Stas,<div><br></div><div>You may want to try with the last development version of VTK, as these class have been reimplemented.</div><div><a href="https://gitlab.kitware.com/vtk/vtk">https://gitlab.kitware.com/vtk/vtk</a><br></div><div><br></div><div>Best Regards,</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 31, 2018 at 2:21 PM take5v <<a href="mailto:stas.truhan@gmail.com">stas.truhan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear developers and others,<br>
<br>
I'd like to visualize grayscale images with python, VTK and PyQt5. So, I've<br>
made this script with Qt Application and embedded<br>
QVTKRenderWindowInteractor. Please have a look into my gist<br>
<a href="https://gist.github.com/take5v/1df1e4f4222f49cf05cbf59b1f89a9ea" rel="noreferrer" target="_blank">https://gist.github.com/take5v/1df1e4f4222f49cf05cbf59b1f89a9ea</a>.<br>
<br>
The issue is that the vtkPropPicker gives wrong world coordinates while<br>
event coordinates are correct. This bug I could reproduce only on Mac Os,<br>
not on Windows and Ubuntu.<br>
<br>
I found probably a workaround that was made for c++ QVTKOpenGLWindow class<br>
which wasn't been wrapped for python:<br>
<a href="https://github.com/Kitware/VTK/blob/c6eb8803c44b13947f959aed7b4e551e5e2915db/GUISupport/Qt/QVTKOpenGLWindow.cxx#L266" rel="noreferrer" target="_blank">https://github.com/Kitware/VTK/blob/c6eb8803c44b13947f959aed7b4e551e5e2915db/GUISupport/Qt/QVTKOpenGLWindow.cxx#L266</a>.<br>
<br>
My setup:<br>
macOS Mojave 10.14<br>
python 3.6.4<br>
vtk-python 8.1.1<br>
PyQt 5.11.3<br>
<br>
Best regards,<br>
Stas<br>
<br>
<br>
<br>
<br>
<br>
-----<br>
Best regards,<br>
Stanislau Trukhan<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Dev-f1251487.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Dev-f1251487.html</a><br>
_______________________________________________<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/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=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div>