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)[source]¶ Bases:
fsleyes.actions.base.ActionThe
LoadColourMapActionallows the user to select a colour map file and give it a name.The loaded colour map is then registered with the
colourmapsmodule. The user is also given the option to permanently save the loaded colour map in FSLeyes.-
__init__(overlayList, displayCtx)[source]¶ Create a
LoadColourMapAction.- Parameters
overlayList – The
OverlayList.displayCtx – The
DisplayContext.
-
__loadColourMap()¶ This method does the following:
Prompts the user to select a colour map file
Prompts the user to name the new colour map.
Registers the colour map with the
colourmapsmodule.Asks the user if they want the colour map installed, and installs it if they do.
-
__module__= 'fsleyes.actions.loadcolourmap'¶
-