mad_gui.plot_tools.plots.VideoPlot#

class mad_gui.plot_tools.plots.VideoPlot(parent=None, video_window=None)[source]#

Bases: BasePlot

A graph of this class will be shown in the main window in order to synchronize video data with sensor data.

Methods

move_video_cursor_line(percent_since_start)

Move the line that indicates to which signal sample the current video frame corresponds.

add_sync_item

distribute_video_sync

set_data

update_video_duration

MODE_HANDLERS = {'add': <class 'mad_gui.plot_tools.plots.sensor_plot_mode_handler.InvestigateModeHandler'>, 'edit': <class 'mad_gui.plot_tools.plots.sensor_plot_mode_handler.InvestigateModeHandler'>, 'investigate': <class 'mad_gui.plot_tools.plots.sensor_plot_mode_handler.InvestigateModeHandler'>, 'remove': <class 'mad_gui.plot_tools.plots.sensor_plot_mode_handler.InvestigateModeHandler'>, 'sync': <class 'mad_gui.plot_tools.plots.video_plot_mode_handler.SyncModeHandler'>}#
add_sync_item()[source]#
distribute_video_sync()[source]#
move_video_cursor_line(percent_since_start: float)[source]#

Move the line that indicates to which signal sample the current video frame corresponds.

Parameters:
percent_since_start

the percentage of the data stream to jump to since start

set_data(x: List, y: List, fps: float | None = 1)[source]#
update_video_duration(length_seconds: float, fps: float)[source]#