CorePlotting::RowLayoutStrategy
CorePlotting::RowLayoutStrategy
Horizontal row layout strategy (Raster plot style). More…
#include <RowLayoutStrategy.hpp>
Inherits from CorePlotting::ILayoutStrategy
Public Functions
| Name | |
|---|---|
| virtual LayoutResponse | compute(LayoutRequest const & request) const override Compute row-based layout. |
Additional inherited members
Public Functions inherited from CorePlotting::ILayoutStrategy
| Name | |
|---|---|
| virtual | ~ILayoutStrategy() =default |
Detailed Description
class CorePlotting::RowLayoutStrategy;Horizontal row layout strategy (Raster plot style).
Arranges series in horizontal rows, typically for raster plots where each row represents a trial or condition. All rows have equal height and are stacked top-to-bottom.
LAYOUT RULES:
- Each series gets one row
- All rows have equal height (viewport divided equally)
- Rows are ordered top-to-bottom by series index
- No concept of “stackable” vs “full-canvas” — all series are rows
COORDINATE SYSTEM:
- Y coordinates are in viewport space (typically -1 to +1 NDC)
- Row heights are in viewport units
- Row centers are positioned to create even vertical spacing
USE CASES:
- Raster plots (events across trials)
- Multi-trial time series
- Condition-based grouping
Public Functions Documentation
function compute
virtual LayoutResponse compute(
LayoutRequest const & request
) const overrideCompute row-based layout.
Parameters:
- request Layout parameters and series list
Return: Layout positions for each series (one row per series)
Reimplements: CorePlotting::ILayoutStrategy::compute
Updated on 2026-11-13 at 20:25:42 +0000