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.Action

The LoadStandardAction prompts the user to open one or more overlays, using $FSLDIR/data/standard/ as the default directory. This functionality is provided in the loadoverlay module.

__init__(overlayList, displayCtx, frame)[source]

Create a LoadStandardAction.

Parameters
destroy()[source]

Must be called when this LoadStandardAction is no longer needed. Performs some clean-up.

__setStandardDir(*a)

Called by __init__(), and when the fsldir property is changed. Updates the path to the FSLDIR standard directory.

__loadStandard()

Calls the loadoverlay.interactiveLoadOverlays() method. If the user added some overlays, updates the DisplayContext.selectedOverlay accordingly.

__module__ = 'fsleyes.actions.loadstandard'