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)[source]
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)[source]
Create a
LoadStandardAction
.- Parameters
overlayList – The
OverlayList
.displayCtx – The
DisplayContext
.frame – The
FSLeyesFrame
.
- destroy()[source]
Must be called when this
LoadStandardAction
is no longer needed. Performs some clean-up.
- __setStandardDir(*a)
Called by
__init__()
, and when thefsldir
property is changed. Updates the path to the FSLDIR standard directory.
- __loadStandard()
Calls the
loadoverlay.interactiveLoadOverlays()
method. If the user added some overlays, updates theDisplayContext.selectedOverlay
accordingly.
- __annotations__ = {}
- __module__ = 'fsleyes.actions.loadstandard'