The vtkGenericOpenGLRenderWindow is just a vtkRenderWindow that expects something else to provide the OpenGL context. So questions about interaction don’t really apply, since interaction isn’t what a vtkRenderWindow is responsible for. Interaction is either done via a vtkRenderWindowInteractor (or via Qt events), just like most VTK programs.
As far as I know, there aren’t any working examples of vtkGenericOpenGLRenderWindow in Python. The best example is a C++ example: the QVTKRenderWindowAdapter class that comes with the VTK source code. If you want to read through that example, also take note of the documentation to understand how vtkGenericOpenGLRenderWindow is to be used:
vtkGenericOpenGLRenderWindow provides a skeleton for implementing a render window using one’s own OpenGL context and drawable. To be effective, one must register an observer for
WindowMakeCurrentEvent
,WindowIsCurrentEvent
andWindowFrameEvent
. When this class sends aWindowIsCurrentEvent
, the call data is abool*
which one can use to return whether the context is current.
There is also an unfinished port of QVTKRenderWindowAdapter from C++ to Python, which you can find here: merge request !9443