fsleyes.actions.loadstandard
¶
This module provides the LoadStandardAction
, which allows the user
to load in standard space images from the $FSLDIR/data/standard/
directory.
-
class
fsleyes.actions.loadstandard.
LoadStandardAction
(overlayList, displayCtx, frame)¶ Bases:
fsleyes.actions.base.Action
The
LoadStandardAction
prompts the user to open one or more overlays, using$FSLDIR/data/standard/
as the default directory. This functionality is provided in theloadoverlay
module.-
__init__
(overlayList, displayCtx, frame)¶ Create a
LoadStandardAction
.Parameters: - overlayList – The
OverlayList
. - displayCtx – The
DisplayContext
. - frame – The
FSLeyesFrame
.
- overlayList – The
-
destroy
()¶ Must be called when this
LoadStandardAction
is no longer needed. Performs some clean-up.
-
_LoadStandardAction__loadStandard
()¶ Calls the
loadoverlay.interactiveLoadOverlays()
method. If the user added some overlays, updates theDisplayContext.selectedOverlay
accordingly.
-
_LoadStandardAction__setStandardDir
(*a)¶ Called by
__init__()
, and when thefsldir
property is changed. Updates the path to the FSLDIR standard directory.
-
__module__
= 'fsleyes.actions.loadstandard'¶
-