fsleyes.controls.atlasmanagementpanel

This module provides the AtlasManagementPanel, which is a sub-panel that is used by the AtlasPanel.

class fsleyes.controls.atlasmanagementpanel.AtlasManagementPanel(parent, overlayList, displayCtx, frame, atlasPanel)[source]

Bases: fsleyes.panel.FSLeyesPanel

The AtlasManagementPanel is a sub-panel used by the AtlasPanel. It simply displays a list of all known atlases, and allows the user to add/remove atlases to/from the list.

__init__(parent, overlayList, displayCtx, frame, atlasPanel)[source]

Create an AtlasManagementPanel.

Parameters
  • parent – the wx parent object.

  • overlayList – The OverlayList instance.

  • displayCtx – The DisplayContext instance.

  • frame – The FSLeyesFrame instance.

  • atlasPanel – The AtlasPanel instance that has created this AtlasManagementPanel.

destroy()[source]

Must be called when this AtlasManagementPanel is no longer needed. Removes some property/notification listeners, and calls the base class destroy method.

__atlasAdded(registry, topic, desc)

Called when an atlas is removed from the AtlasRegistry. Removes the corresponding atlas from the list.

__atlasRemoved(registry, topic, desc)

Called when an atlas is removed from the AtlasRegistry. Removes the corresponding atlas from the list.

__onListAdd(ev)

Called when the user clicks the Add button on the list. Calls the loadatlas.loadAtlas() function.

__onListRemove(ev)

Called when the user clicks the Remove button on the list. Removes the corresponding atlas from the AtlasRegistry.

__module__ = 'fsleyes.controls.atlasmanagementpanel'