fsleyes.displaycontext.maskopts
¶
This module provides the MaskOpts
class, which defines settings
for displaying an Image
overlay as a binary mask.
-
class
fsleyes.displaycontext.maskopts.
MaskOpts
(overlay, *args, **kwargs)¶ Bases:
fsleyes.displaycontext.volumeopts.NiftiOpts
The
MaskOpts
class defines settings for displaying anImage
overlay as a binary mask.-
threshold
= <MagicMock name='mock.Bounds()' id='139845843098144'>¶ The mask threshold range - values outside of this range are not displayed.
-
invert
= <MagicMock name='mock.Boolean()' id='139845844115072'>¶ If
True
, thethreshold
range is inverted - values inside the range are not shown, and values outside of the range are shown.
-
colour
= <MagicMock name='mock.Colour()' id='139845842273280'>¶ The mask colour.
-
outline
= <MagicMock name='mock.Boolean()' id='139845844115072'>¶ If
True
only the outline of the mask will be shown. IfFalse
, the filled mask will be displayed.
-
outlineWidth
= <MagicMock name='mock.Int()' id='139845843069248'>¶ Width of mask outline, if :attr:
outline` is ``True
. This value is in terms of pixels.
-
interpolation
= <MagicMock name='mock.Choice()' id='139845841810488'>¶
-
__init__
(overlay, *args, **kwargs)¶ Create a
MaskOpts
instance for the given overlay. All arguments are passed through to theNiftiOpts
constructor.
-
_MaskOpts__alphaChanged
(*a)¶ Called when
Display.alpha
changes. Updates the alpha component ofcolour
.
-
_MaskOpts__colourChanged
(*a)¶ Called when
colour
changes. UpdatesDisplay.alpha
from the alpha component.
-
__module__
= 'fsleyes.displaycontext.maskopts'¶
-
destroy
()¶ Removes some property listeners and calls
NitfiOpts.destroy()
.
-