fsleyes.actions.loadoverlayfromdir
¶
This module provides the LoadOverlayFromDirAction
, which allows
the user to load overlay files, specified with a directory, into the
OverlayList
.
- class fsleyes.actions.loadoverlayfromdir.LoadOverlayFromDirAction(overlayList, displayCtx, frame)[source]¶
Bases:
fsleyes.actions.base.Action
The
LoadOverlayFromDirAction
allows the user to add overlays to theOverlayList
. This functionality is provided by functions in theloadoverlay
module.- __init__(overlayList, displayCtx, frame)[source]¶
Create an
OpenDirAction
.- Parameters
overlayList – The
OverlayList
.displayCtx – The
DisplayContext
.frame – The
FSLeyesFrame
.
- __openDir()¶
Calls the
loadoverlay.interactiveLoadOverlays()
method.If overlays were added, updates the
DisplayContext.selectedOverlay
accordingly.If
DisplayContext.autoDisplay
isTrue
, uses theautodisplay
module to configure the display properties of each new overlay.
- __annotations__ = {}¶
- __module__ = 'fsleyes.actions.loadoverlayfromdir'¶