fsleyes.views.colourbarpanel
This module provides the ColourBarPanel, a FSLeyesPanel
which renders a colour bar.
- class fsleyes.views.colourbarpanel.ColourBarPanel(parent, overlayList, displayCtx, frame)[source]
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)[source]
Create a
ColourBarPanel.- Parameters
parent – The
wxparent object.overlayList – The
OverlayListinstance.displayCtx – The
DisplayContextinstance.frame – The
FSLeyesFrame.
- getCanvas()[source]
Returns the
ColourBarCanvaswhich displays the rendered colour bar.
- property canvas
Returns the
ColourBarCanvaswhich displays the rendered colour bar.
- __layout(*a)
Called when this
ColourBarPanelneeds to be laid out. Sets the panel size, and calls the__refreshColourBar()method.
- __annotations__ = {}
- __module__ = 'fsleyes.views.colourbarpanel'