fsleyes.gl.wxglslicecanvas
This module provides the WXGLSliceCanvas class, which is a
SliceCanvas for use in a wx application.
- class fsleyes.gl.wxglslicecanvas.WXGLSliceCanvas(parent, overlayList, displayCtx, zax=0)[source]
Bases:
SliceCanvas,WXGLCanvasTarget,GLCanvasThe
WXGLSliceCanvasis aSliceCanvas, awx.glcanvas.GLCanvasand aWXGLCanvasTarget. If you want to use aSliceCanvasin yourwxapplication, then you should use aWXGLSliceCanvas.Note
The
WXGLSliceCanvasassumes the existence of theSliceCanvas._updateDisplayBounds()method.- __metaclass__
alias of
wrappertype
- __init__(parent, overlayList, displayCtx, zax=0)[source]
Create a
WXGLSliceCanvas. SeeSliceCanvas.__init__()for details on the arguments.
- destroy()[source]
Must be called when this
WXGLSliceCanvasis no longer needed. Clears some event listeners and calls the base classdestroymethod.
- __onResize(ev)
Called on
wx.EVT_SIZEevents, when the canvas is resized. When the canvas is resized, we have to update the display bounds to preserve the aspect ratio.
- __annotations__ = {}
- __module__ = 'fsleyes.gl.wxglslicecanvas'