fsleyes.actions.reloadoverlay
This module provides the ReloadOverlayAction
, a global action
which reloads the currently selected overlay from disk.
- class fsleyes.actions.reloadoverlay.ReloadOverlayAction(overlayList, displayCtx, frame)[source]
Bases:
fsleyes.actions.base.Action
The
ReloadOverlayAction
reloads the currently selected overlay from disk. Currently onlyImage
overlays are supported.- __init__(overlayList, displayCtx, frame)[source]
Create a
ReloadOverlayAction
.- Parameters
overlayList – The
OverlayList
.displayCtx – The
DisplayContext
.frame – The
FSLeyesFrame
.
- destroy()[source]
Must be called when this
ReloadOverlayAction
is no longer required. Removes some property listeners, and callsAction.destroy()
.
- __selectedOverlayChanged(*a)
Called when the currently selected overlay changes. Enables/disables this
Action
depending on the type of the newly selected overlay.
- __reloadOverlay()
Reloads the currently selected overlay from disk.
- __annotations__ = {}
- __module__ = 'fsleyes.actions.reloadoverlay'