License New BSD license
Lines 617
Keywords
VTK (6) wxPython (7) wxWidgets (7)
Included in these Libraries
Permissions
Owner: Stou S.
Viewable by Everyone
Editable by All Siafoo Users
Hide
Solve a problem – Filter by language, license, keyword, owner, or search text to find code & info fast. Join Siafoo Now or Learn More

Double Buffered wxVTKRenderWindowInteractor Atom Feed 0

In Brief The version of wxVTKRenderWindowInteractor that ships with VTK (5.2 and earlier) does not have double buffering enabled for non-stereo rendering sometimes resulting in horrible flicker. This improved version, that I stole from Mayavi, has wx.glcanvas.WX_GL_DOUBLEBUFFER enabled thus fixing the flicker issues.... more

The version of wxVTKRenderWindowInteractor that ships with VTK (5.2 and earlier) does not have double buffering enabled for non-stereo rendering sometimes resulting in horrible flicker. This improved version, that I stole from Mayavi, has wx.glcanvas.WX_GL_DOUBLEBUFFER enabled thus fixing the flicker issues.

There does not seem to be any way to pass custom attribList to wxVTKRenderWindowInteractor and so using this modified class is the only way to enable double buffering. Why isn't double buffering enabled by default on wxWidgets GLCanvas windows you ask? Who knows.