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)[source]¶ Bases:
fsleyes.gl.glvolume.GLVolumeThe
GLComplexclass is a sub-class ofGLVolume, specialised for displayingImageoverlays with a complex data type.The only additional behaviour this class provides is refreshing the
ImageTexturedata whenever theComplexOpts.componentproperty changes.-
addDisplayListeners()[source]¶ Overrides
VolumeOpts.addDisplayListeners(). Calls that method, and also adds additional listeners.
-
removeDisplayListeners()[source]¶ Overrides
VolumeOpts.removeDisplayListeners(). Calls that method, and also removes additional listeners.
-
refreshImageTexture()[source]¶ Overrides
GLVolume.refreshImageTexture(). Calls that method, passing it a prefilter function to extract the complex component from the image data.
-
getPrefilterFunc()[source]¶ Returns a function which extracts the component to be displayed from the image data. Used as the prefilter function by the
ImageTextureSee the
ComplexOpts.componentproperty.
-
_GLComplex__componentChanged(*a)¶ Called when the
componentchanges. Updates the image texture data.
-
__module__= 'fsleyes.gl.glcomplex'¶
-