Skip to main content

CorePlotting::LayoutRequest

CorePlotting::LayoutRequest

Request for layout computation. More…

#include <LayoutEngine.hpp>

Public Functions

Name
int countSeriesOfType(SeriesType type) const
Count series of a specific type.
int countStackableSeries() const
Count stackable series (analog + stacked events).

Public Attributes

Name
std::vector< SeriesInfo > series
Series to be laid out.
float viewport_y_min
Viewport bounds in NDC (typically -1 to +1).
float viewport_y_max

Detailed Description

struct CorePlotting::LayoutRequest;

Request for layout computation.

Contains all information needed by LayoutEngine to compute positions. Immutable input to layout algorithms.

Note: User zoom/pan state is NOT part of LayoutRequest. That state belongs in ViewState (CoordinateTransform/ViewState.hpp), which is the single source of truth for camera state. The LayoutEngine computes relative series positions; ViewState handles the View and Projection matrices that apply zoom/pan.

MVP composition in widgets: Model = SeriesLayout::computeModelMatrix() // From LayoutEngine View + Projection = computeMatricesFromViewState() // From ViewState Final = Projection * View * Model

Public Functions Documentation

function countSeriesOfType

int countSeriesOfType(
    SeriesType type
) const

Count series of a specific type.

function countStackableSeries

int countStackableSeries() const

Count stackable series (analog + stacked events).

Public Attributes Documentation

variable series

std::vector< SeriesInfo > series;

Series to be laid out.

variable viewport_y_min

float viewport_y_min {-1.0f};

Viewport bounds in NDC (typically -1 to +1).

variable viewport_y_max

float viewport_y_max {1.0f};

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