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.GLVolume
The
GLComplex
class is a sub-class ofGLVolume
, specialised for displayingImage
overlays with a complex data type.The only additional behaviour this class provides is refreshing the
ImageTexture
data whenever theComplexOpts.component
property 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
ImageTexture
See the
ComplexOpts.component
property.
- getPrefilterRangeFunc()[source]
Returns a function which returns the minimum/maximum of the current component. Used as the prefilterRange function by the
ImageTexture
.
- __componentChanged(*a)
Called when the
component
changes. Updates the image texture data.
- __annotations__ = {}
- __module__ = 'fsleyes.gl.glcomplex'