fsleyes.actions.loadcolourmap

This module provides the LoadColourMapAction, which allows the user to load a new colour map.

class fsleyes.actions.loadcolourmap.LoadColourMapAction(overlayList, displayCtx)

Bases: fsleyes.actions.base.Action

The LoadColourMapAction allows the user to select a colour map file and give it a name.

The loaded colour map is then registered with the colourmaps module. The user is also given the option to permanently save the loaded colour map in FSLeyes.

__init__(overlayList, displayCtx)

Create a LoadColourMapAction.

Parameters
_LoadColourMapAction__loadColourMap()

This method does the following:

  1. Prompts the user to select a colour map file

  2. Prompts the user to name the new colour map.

  3. Registers the colour map with the colourmaps module.

  4. Asks the user if they want the colour map installed, and installs it if they do.

__module__ = 'fsleyes.actions.loadcolourmap'