fsleyes.views.colourbarpanel¶
This module provides the ColourBarPanel, a FSLeyesPanel
which renders a colour bar.
-
class
fsleyes.views.colourbarpanel.ColourBarPanel(parent, overlayList, displayCtx, frame)¶ Bases:
fsleyes.panel.FSLeyesPanelThe
ColourBarPanelis a panel which shows a colour bar, depicting the data range of the currently selected overlay (if applicable). AColourBarCanvasis used to render the colour bar.Note
Currently, the
ColourBarPanelwill only display a colour bar for overlays which are associated with aColourMapOptsinstance.-
__init__(parent, overlayList, displayCtx, frame)¶ Create a
ColourBarPanel.Parameters: - parent – The
wxparent object. - overlayList – The
OverlayListinstance. - displayCtx – The
DisplayContextinstance. - frame – The
FSLeyesFrame.
- parent – The
-
getCanvas()¶ Returns the
ColourBarCanvaswhich displays the rendered colour bar.
-
canvas¶ Returns the
ColourBarCanvaswhich displays the rendered colour bar.
-
destroy()¶ Must be called when this
ColourBarPanelis no longer needed.
-
_ColourBarPanel__layout(*a)¶ Called when this
ColourBarPanelneeds to be laid out. Sets the panel size, and calls the__refreshColourBar()method.
-
__module__= 'fsleyes.views.colourbarpanel'¶
-