Skip to main content

LinePlotWidget

LinePlotWidget

Main widget for line plot visualization.

#include <LinePlotWidget.hpp>

Inherits from QWidget

Public Signals

Name
void timePositionSelected(TimePosition position)
Emitted when a time position is selected in the view.

Public Functions

Name
LinePlotWidget(std::shared_ptr< DataManager > data_manager, QWidget * parent =[nullptr])
Construct a LinePlotWidget.
~LinePlotWidget() override
void setState(std::shared_ptr< LinePlotState > state)
Set the LinePlotState for this widget.
void setGroupManager(GroupManager * group_manager)
Set the GroupManager for group-based coloring and context menu.
std::shared_ptr< LinePlotState > state() const
Get the current LinePlotState (const).
LinePlotState * 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).

Protected Functions

Name
void resizeEvent(QResizeEvent * event) override

Public Signals Documentation

signal timePositionSelected

void timePositionSelected(
    TimePosition position
)

Emitted when a time position is selected in the view.

Parameters:

Public Functions Documentation

function LinePlotWidget

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

Construct a LinePlotWidget.

Parameters:

  • data_manager Shared DataManager for data access
  • parent Parent widget

function ~LinePlotWidget

~LinePlotWidget() override

function setState

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

Set the LinePlotState 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 setGroupManager

void setGroupManager(
    GroupManager * group_manager
)

Set the GroupManager for group-based coloring and context menu.

Parameters:

  • group_manager Pointer to the application-wide GroupManager

function state

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

Get the current LinePlotState (const).

Return: Shared pointer to the state object

function state

LinePlotState * 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

Protected Functions Documentation

function resizeEvent

void resizeEvent(
    QResizeEvent * event
) override

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