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)¶ 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)¶ Create an
OpenDirAction
.- Parameters
overlayList – The
OverlayList
.displayCtx – The
DisplayContext
.frame – The
FSLeyesFrame
.
-
_LoadOverlayFromDirAction__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.
-
__module__
= 'fsleyes.actions.loadoverlayfromdir'¶
-