fsleyes.gl.wxglcolourbarcanvas

This module provides the WXGLColourBarCanvas class, which is a ColourBarCanvas for use in a wx application.

class fsleyes.gl.wxglcolourbarcanvas.WXGLColourBarCanvas(parent, overlayList, displayCtx)[source]

Bases: fsleyes.gl.colourbarcanvas.ColourBarCanvas, fsleyes.gl.WXGLCanvasTarget, __main__.docbuilder.run.<locals>.MockClass

The WXGLColourBarCanvas is a ColourBarCanvas, a wx.glcanvas.GLCanvas and a WXGLCanvasTarget. If you want to use a ColourBarCanvas in your wx application, then you should use a WXGLColourBarCanvas.

Note

The WXGLColourBarCanvas assumes the existence of the ColourBarCanvas.updateColourBarTexture() method.

__metaclass__ = <MagicMock name='mock.siplib.wrappertype' id='140604700048928'>
__init__(parent, overlayList, displayCtx)[source]

Adds a few listeners to the properties of this object, to update the colour bar when they change.

destroy()[source]

Must be called when this WXGLColourBarCanvas is no longer needed. Clears some event listeners and calls the base class destroy method.

__annotations__ = {}
__module__ = 'fsleyes.gl.wxglcolourbarcanvas'