Please clarify what vtkRenderWindowInteractor::ProcessEvents does
The documentation of ProcessEvents just says "Run the event loop and return. This is provided so that you can implement your own event loop but yet use the vtk event handling as well." However, this leaves some points unclear:
- Does it process all events? Or just some? Or one event? My assumption would be that all events are processed?
- If there is no event that needs processing, does ProcessEvents return immediately? Or does it wait until there is a new event, process that, and return afterwards?
- As a consequence of the previous points, what happens if ProcessEvents is called twice in a row? Does the second call do nothing because there are no more events to process and return immediately? Or does the second call always block because the first one already processed all events, and the second call waits for one new event to process?
I am also asking this because the behaviour seems to differ between some implementations, and having no reference what the correct behaviour should be makes it awkward to use this function. I would kindly ask you to clarify the exact behaviour of this function in the public documentation. Thank you in advance.