fsleyes.controls.timeseriescontrolpanel¶
This module provides the TimeSeriesControlPanel a FSLeyes
control which allows the user to configure a TimeSeriesPanel.
-
class
fsleyes.controls.timeseriescontrolpanel.TimeSeriesControlPanel(*args, **kwargs)[source]¶ Bases:
fsleyes.controls.plotcontrolpanel.PlotControlPanelThe
TimeSeriesControlPanelis aPlotContrlPanelwhich allows the user to configure aTimeSeriesPanel. It contains controls which are linked to the properties of theTimeSeriesPanel, (which include properties defined on thePlotPanelbase class), and theDataSeriesclass.A
TimeSeriesControlPanellooks something like this:
The settings shown on a
TimeSeriesControlPanelare organised into three or four sections:The Time series plot settings section has controls which are linked to properties of the
PlotCanvasclass.The General plot settings section has controls which are linked to properties of the
PlotPanelbase class.The Settings for the current time course section has controls which are linked to properties of the
DataSeriesclass. These properties define how the current time course is displayed (see theTimeSeriesPanelclass documentation).The FEAT plot settings is only shown if the currently selected overlay is a
FEATImage. It has controls which are linked to properties of theFEATTimeSeriesclass.
-
static
supportedViews()[source]¶ Overrides
ControlMixin.supportedViews(). TheTimeSeriesControlPanelis only intended to be added toTimeSeriesPanelviews.
-
static
defaultLayout()[source]¶ Returns a dictionary containing layout settings to be passed to
ViewPanel.togglePanel.
-
__init__(*args, **kwargs)[source]¶ Create a
TimeSeriesControlPanel. All arguments are passed through to thePlotControlPanel.__init__()method.
-
destroy()[source]¶ Must be called when this
TimeSeriesControlPanelis no longer needed. Removes some property listeners, and callsPlotControlPanel.destroy().
-
generateCustomPlotPanelWidgets(groupName)[source]¶ Overrides
PlotControlPanel.generateCustomPlotPanelWidgets().Adds some widgets for controlling some properties of the
TimeSeriesPanel.
-
generateCustomDataSeriesWidgets(ts, groupName)[source]¶ Overrides
PlotControlPanel.generateCustomDataSeriesWidgets().Adds some widgets to the widget list for certain time series types.
-
__generateFeatWidgets(ts, groupName)¶ Called by
generateCustomDataSeriesWidgets(). Generates widgets forFEATTimeSeriesoptions, and adds them to the widget list.
-
__generateComplexWidgets(ts, groupName)¶ Called by
generateCustomDataSeriesWidgets(). Generates widgets forComplexTimeSeriesoptions, and adds them to the widget list.
-
__plotMelodicICsChanged(*a)¶ Called when the
TimeSeriesPanel.plotMelodicICsproperty changes. If the current overlay is aMelodicImage, re-generates the widgets in the current time course section, as theDataSeriesinstance associated with the overlay may have been re-created.
-
__module__= 'fsleyes.controls.timeseriescontrolpanel'¶