[vtk-developers] Patch for wxVTKRenderWindow.py and wxVTKRenderWindowInteractor.py

Prabhu Ramachandran prabhu at aero.iitb.ac.in
Sun Nov 9 05:42:30 EST 2008


Chris Kruszynski wrote:
> I just noticed that wxVTKRenderWindowInteractor started flickering and 
> being very slow.
> 
> Apparently as of some version of wxPython, the GLCanvas widget by 
> default creates an OpenGL context without double buffering, so if that 
> widget is used as the base class for wxVTKRenderWindowInteractor, it 
> will explicitly need to tell GLCanvas to enable double buffering.
> 
> wxVTKRenderWindow exhibits the same behaviour.
> 
> This patch fixes both wxVTKRenderWindow and wxVTKRenderWindowInteractor: 
> if the base class is GLCanvas, it always enables double buffering.

I've checked in a modified patch.  Please let me know if there are any 
problems.  Thanks.

$ cvs -qz3 ci
/cvsroot/VTK/VTK/Wrapping/Python/vtk/wx/wxVTKRenderWindow.py,v  <-- 
wxVTKRenderWindow.py
new revision: 1.8; previous revision: 1.7
/cvsroot/VTK/VTK/Wrapping/Python/vtk/wx/wxVTKRenderWindowInteractor.py,v 
  <--  wxVTKRenderWindowInteractor.py
new revision: 1.29; previous revision: 1.28


cheers,
prabhu



More information about the vtk-developers mailing list