fsleyes.controls.plotlistpanel¶
This module provides the PlotListPanel a FSLeyes control panel
which allows the user to add/remove DataSeries from an
OverlayPlotPanel.
-
class
fsleyes.controls.plotlistpanel.PlotListPanel(parent, overlayList, displayCtx, frame, plotPanel)[source]¶ Bases:
fsleyes.controls.controlpanel.ControlPanelThe
PlotListPanelis a FSLeyes control panel for use withOverlayPlotPanelviews. It allows the user to add and removeDataSeriesinstances from thePlotPanel.dataSerieslist.For every
DataSeriesinstance in thePlotPanel.dataSerieslist of theOverlayPlotPanel, thePlotListPanelcreates aDataSeriesWidget, which allows the user to change the display settings of theDataSeriesinstance. AEditableListBoxis used to display the labels for eachDataSeriesinstance, and the associatedDataSeriesWidgetcontrols.-
__init__(parent, overlayList, displayCtx, frame, plotPanel)[source]¶ Create a
PlotListPanel.- Parameters
parent – The
wxparent object.overlayList – The
OverlayList.displayCtx – The
DisplayContextinstance.frame – The
FSLeyesFrameinstance.plotPanel – The
OverlayPlotPanelassociated with thisPlotListPanel.
-
destroy()[source]¶ Must be called when this
PlotListPanelis no longer needed. Removes some property listeners, and calls theControlPanel.destroy()method.
-
_PlotListPanel__dataSeriesChanged(*a)¶ Called when the
PlotPanel.dataSerieslist of theOverlayPlotPanelchanges. Updates the list ofTimeSeriesWidgetcontrols.
-
_PlotListPanel__onListAdd(ev)¶ Called when the user pushes the add button on the
EditableListBox. Adds theDataSeriesassociated with the currently selected overlay to thePlotPanel.dataSerieslist of theOverlayPlotPanel.
-
_PlotListPanel__onListEdit(ev)¶ Called when the user edits a label on the
EditableListBox. Updates theDataSeries.labelproperty of the correspondingDataSeriesinstance.
-
_PlotListPanel__onListRemove(ev)¶ Called when the user removes an item from the
EditableListBox. Removes the correspondingDataSeriesinstance from thePlotPanel.dataSerieslist of theOverlayPlotPanel.
-
_PlotListPanel__onListSelect(ev)¶ Called when the user selects an item in the
EditableListBox. Sets theDisplayContext.selectedOverlayto the overlay associated with the correspondingDataSeriesinstance.
-
__module__= 'fsleyes.controls.plotlistpanel'¶
-
-
class
fsleyes.controls.plotlistpanel.DataSeriesWidget(parent, dataSeries)[source]¶ Bases:
__main__.MockClassThe
DataSeriesWidgetclass is a panel which contains controls that modify the properties of aDataSeriesinstance. ADataSeriesWidgetis created by thePlotListPanelfor everyDataSeriesin thePlotPanel.dataSerieslist.-
__init__(parent, dataSeries)[source]¶ Create a
DataSeriesWidget.- Parameters
parent – The
wxparent object.dataSeries – The
DataSeriesinstance.
-
__module__= 'fsleyes.controls.plotlistpanel'¶
-