fsleyes.gl.glcomplex

This module provides the GLComplex class, for displaying Image overlays with a complex data type.

class fsleyes.gl.glcomplex.GLComplex(image, overlayList, displayCtx, canvas, threedee)

Bases: fsleyes.gl.glvolume.GLVolume

The GLComplex class is a sub-class of GLVolume, specialised for displaying Image overlays with a complex data type.

The only additional behaviour this class provides is refreshing the ImageTexture data whenever the ComplexOpts.component property changes.

addDisplayListeners()

Overrides VolumeOpts.addDisplayListeners(). Calls that method, and also adds additional listeners.

removeDisplayListeners()

Overrides VolumeOpts.removeDisplayListeners(). Calls that method, and also removes additional listeners.

refreshImageTexture()

Overrides GLVolume.refreshImageTexture(). Calls that method, passing it a prefilter function to extract the complex component from the image data.

getPrefilterFunc()

Returns a function which extracts the component to be displayed from the image data. Used as the prefilter function by the ImageTexture

See the ComplexOpts.component property.

_GLComplex__componentChanged(*a)

Called when the component changes. Updates the image texture data.

__module__ = 'fsleyes.gl.glcomplex'