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.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)[source]¶ Create a
LoadColourMapAction
.- Parameters
overlayList – The
OverlayList
.displayCtx – The
DisplayContext
.
-
_LoadColourMapAction__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
colourmaps
module.Asks the user if they want the colour map installed, and installs it if they do.
-
__module__
= 'fsleyes.actions.loadcolourmap'¶
-