CorePlotting::LayoutResponse
CorePlotting::LayoutResponse
Response from layout computation. More…
#include <LayoutEngine.hpp>
Public Functions
| Name | |
|---|---|
| SeriesLayout const * | findLayout(std::string const & series_id) const Find layout by series ID. |
| bool | isSeriesVisible(std::string const & series_id, float y_min, float y_max) const Check whether a series lane overlaps a Y viewport range. |
| std::vector< std::string > | visibleSeriesIds(float y_min, float y_max) const Collect IDs of all series whose lanes overlap a Y viewport range. |
Public Attributes
| Name | |
|---|---|
| std::vector< SeriesLayout > | layouts Computed layouts (parallel to request.series). |
Detailed Description
struct CorePlotting::LayoutResponse;Response from layout computation.
Contains computed layout for all requested series.
Public Functions Documentation
function findLayout
SeriesLayout const * findLayout(
std::string const & series_id
) constFind layout by series ID.
Return: Pointer to layout, or nullptr if not found
function isSeriesVisible
bool isSeriesVisible(
std::string const & series_id,
float y_min,
float y_max
) constCheck whether a series lane overlaps a Y viewport range.
Parameters:
- series_id Series to test
- y_min Bottom of the effective viewport (includes pan)
- y_max Top of the effective viewport (includes pan)
Return: true if the lane overlaps the viewport, or if the series has no layout
Precondition: y_min <= y_max
The lane extent is derived from the series layout’s y_transform: center = y_transform.offset, half_height = |y_transform.gain|. A lane is visible when its [center - half_height, center + half_height] interval intersects [y_min, y_max].
function visibleSeriesIds
std::vector< std::string > visibleSeriesIds(
float y_min,
float y_max
) constCollect IDs of all series whose lanes overlap a Y viewport range.
Parameters:
- y_min Bottom of the effective viewport (includes pan)
- y_max Top of the effective viewport (includes pan)
Return: Vector of visible series IDs
Precondition: y_min <= y_max
Non-stackable series (intervals, full-canvas events) that do not appear in the layout are always included.
Public Attributes Documentation
variable layouts
std::vector< SeriesLayout > layouts;Computed layouts (parallel to request.series).
Updated on 2026-11-13 at 20:25:42 +0000