Skip to main content

EventPlotWidget

EventPlotWidget

Main widget for event raster plot visualization.

#include <EventPlotWidget.hpp>

Inherits from QWidget

Public Slots

Name
void handleExportSVG()
Open a file dialog and write the current scene to an SVG file.
void handleExportCSV()
Open a file dialog and write raster event data to a CSV file.

Public Signals

Name
void timePositionSelected(TimePosition position)
Emitted when a time position is selected in the view.
void eventSelected(int trial_index, float relative_time_ms, QString const & series_key)
Emitted when user single-clicks on an event to select it.

Public Functions

Name
EventPlotWidget(std::shared_ptr< DataManager > data_manager, QWidget * parent =[nullptr])
Construct an EventPlotWidget.
~EventPlotWidget() override
void setState(std::shared_ptr< EventPlotState > state)
Set the EventPlotState for this widget.
std::shared_ptr< EventPlotState > state() const
Get the current EventPlotState (const).
EventPlotState * state()
Get mutable state access.
RelativeTimeAxisRangeControls * getRangeControls() const
Get the range controls widget (for placement in properties panel).
VerticalAxisRangeControls * getVerticalRangeControls() const
Get the vertical axis range controls widget (for placement in properties panel).
VerticalAxisState * getVerticalAxisState() const
Get the vertical axis state (for external updates).

Protected Functions

Name
void resizeEvent(QResizeEvent * event) override

Public Slots Documentation

slot handleExportSVG

void handleExportSVG()

Open a file dialog and write the current scene to an SVG file.

Uses [AppFileDialog](/api_generated/Namespaces/namespaceAppFileDialog.md) for session-aware path memory (dialog id "export_event_plot_svg"). Shows an informational message box on success and an error message box on failure. Does nothing if the scene is empty or the user cancels the dialog.

slot handleExportCSV

void handleExportCSV()

Open a file dialog and write raster event data to a CSV file.

Uses [AppFileDialog](/api_generated/Namespaces/namespaceAppFileDialog.md) for session-aware path memory (dialog id "export_event_plot_csv"). Re-gathers trial-aligned data and calls [PlotDataExport::exportRasterToCSV()](/api_generated/Namespaces/namespacePlotDataExport.md#function-exportrastertocsv).

Public Signals Documentation

signal timePositionSelected

void timePositionSelected(
    TimePosition position
)

Emitted when a time position is selected in the view.

Parameters:

signal eventSelected

void eventSelected(
    int trial_index,
    float relative_time_ms,
    QString const & series_key
)

Emitted when user single-clicks on an event to select it.

Parameters:

  • trial_index The trial (row) index of the selected event
  • relative_time_ms The time relative to alignment in ms
  • series_key The key of the event series containing the event

Public Functions Documentation

function EventPlotWidget

EventPlotWidget(
    std::shared_ptr< DataManager > data_manager,
    QWidget * parent =nullptr
)

Construct an EventPlotWidget.

Parameters:

  • data_manager Shared DataManager for data access
  • parent Parent widget

function ~EventPlotWidget

~EventPlotWidget() override

function setState

void setState(
    std::shared_ptr< EventPlotState > state
)

Set the EventPlotState for this widget.

Parameters:

  • state Shared pointer to the state object

The state manages all serializable settings. This widget shares the state with the properties widget.

function state

inline std::shared_ptr< EventPlotState > state() const

Get the current EventPlotState (const).

Return: Shared pointer to the state object

function state

EventPlotState * state()

Get mutable state access.

Return: Raw pointer to state for modification

function getRangeControls

RelativeTimeAxisRangeControls * getRangeControls() const

Get the range controls widget (for placement in properties panel).

Return: Pointer to the range controls widget, or nullptr if not created

function getVerticalRangeControls

VerticalAxisRangeControls * getVerticalRangeControls() const

Get the vertical axis range controls widget (for placement in properties panel).

Return: Pointer to the vertical axis range controls widget, or nullptr if not created

function getVerticalAxisState

VerticalAxisState * getVerticalAxisState() const

Get the vertical axis state (for external updates).

Return: Pointer to the vertical axis state

Protected Functions Documentation

function resizeEvent

void resizeEvent(
    QResizeEvent * event
) override

Updated on 2026-11-13 at 20:25:40 +0000