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 the OverlayList. This functionality is provided by functions in the loadoverlay module.

__init__(overlayList, displayCtx, frame)[source]

Create an OpenDirAction.

Parameters
_LoadOverlayFromDirAction__openDir()

Calls the loadoverlay.interactiveLoadOverlays() method.

If overlays were added, updates the DisplayContext.selectedOverlay accordingly.

If DisplayContext.autoDisplay is True, uses the autodisplay module to configure the display properties of each new overlay.

__module__ = 'fsleyes.actions.loadoverlayfromdir'