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.ActionThe
LoadOverlayFromDirActionallows the user to add overlays to theOverlayList. This functionality is provided by functions in theloadoverlaymodule.- __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.selectedOverlayaccordingly.If
DisplayContext.autoDisplayisTrue, uses theautodisplaymodule to configure the display properties of each new overlay.
- __annotations__ = {}¶
- __module__ = 'fsleyes.actions.loadoverlayfromdir'¶