I really wanted to use a polygon (or lasso) picker in vtk using python. However, the python version does not have access to GetPolygonPoints, because it returns a vtkVector2i object which appears difficult to wrap. I found details on this here.
All works well and as expected, but I notice that when the render window is maximised, it is slow to create the polygon. And when the render window is small, it is very fast. This appears to be related to the call to SetPixelData every time the mouse is moved. Given that SetPixelData is a wrap of the C++ code, I am surprised that this takes so long, as the Paraview version is very fast no matter what the window size is.
Is there anything I could do to speed it up?
P.S. - I should add that I am using PyQt5 with QVTKRenderWindowInteractor.