Skip to main content

MultiLaneVerticalAxisState

MultiLaneVerticalAxisState

State class for the multi-lane vertical axis widget. More…

#include <MultiLaneVerticalAxisState.hpp>

Inherits from QObject

Public Signals

Name
void lanesChanged()
Emitted when the lane descriptor list changes.
void visibilityChanged()
Emitted when visibility settings change (labels or separators).

Public Functions

Name
MultiLaneVerticalAxisState(QObject * parent =[nullptr])
~MultiLaneVerticalAxisState() override =default
void setLanes(std::vector< LaneAxisDescriptor > lanes)
Replace the full set of lane descriptors.
std::vector< LaneAxisDescriptor > const & lanes() const
Get the current lane descriptors.
void setShowLabels(bool show)
Set whether lane labels are shown.
bool showLabels() const
Check if labels are shown.
void setShowSeparators(bool show)
Set whether lane separators are shown.
bool showSeparators() const
Check if separators are shown.
MultiLaneVerticalAxisStateData const & data() const
Get const reference to underlying state data.

Detailed Description

class MultiLaneVerticalAxisState;

State class for the multi-lane vertical axis widget.

Owns the lane descriptor list and emits signals when lanes change. The axis widget connects to these signals to trigger repaint.

Thread safety: NOT thread-safe — access from the GUI thread only.

Public Signals Documentation

signal lanesChanged

void lanesChanged()

Emitted when the lane descriptor list changes.

signal visibilityChanged

void visibilityChanged()

Emitted when visibility settings change (labels or separators).

Public Functions Documentation

function MultiLaneVerticalAxisState

explicit MultiLaneVerticalAxisState(
    QObject * parent =nullptr
)

function ~MultiLaneVerticalAxisState

~MultiLaneVerticalAxisState() override =default

function setLanes

void setLanes(
    std::vector< LaneAxisDescriptor > lanes
)

Replace the full set of lane descriptors.

Parameters:

  • lanes New lane descriptors

Called by DataViewer after each layout computation. Emits lanesChanged().

function lanes

inline std::vector< LaneAxisDescriptor > const & lanes() const

Get the current lane descriptors.

Return: Const reference to the lane descriptor vector

function setShowLabels

void setShowLabels(
    bool show
)

Set whether lane labels are shown.

Parameters:

  • show true to show labels

function showLabels

inline bool showLabels() const

Check if labels are shown.

function setShowSeparators

void setShowSeparators(
    bool show
)

Set whether lane separators are shown.

Parameters:

  • show true to show separators

function showSeparators

inline bool showSeparators() const

Check if separators are shown.

function data

inline MultiLaneVerticalAxisStateData const & data() const

Get const reference to underlying state data.


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