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.ActionThe
LoadStandardActionprompts the user to open one or more overlays, using$FSLDIR/data/standard/as the default directory. This functionality is provided in theloadoverlaymodule.- __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
LoadStandardActionis no longer needed. Performs some clean-up.
- __setStandardDir(*a)
Called by
__init__(), and when thefsldirproperty is changed. Updates the path to the FSLDIR standard directory.
- __loadStandard()
Calls the
loadoverlay.interactiveLoadOverlays()method. If the user added some overlays, updates theDisplayContext.selectedOverlayaccordingly.
- __annotations__ = {}
- __module__ = 'fsleyes.actions.loadstandard'