CorePlotting::StackedLayoutStrategy
CorePlotting::StackedLayoutStrategy
Vertical stacking layout strategy (DataViewer style). More…
#include <StackedLayoutStrategy.hpp>
Inherits from CorePlotting::ILayoutStrategy
Public Functions
| Name | |
|---|---|
| virtual LayoutResponse | compute(LayoutRequest const & request) const override Compute stacked vertical layout. |
Additional inherited members
Public Functions inherited from CorePlotting::ILayoutStrategy
| Name | |
|---|---|
| virtual | ~ILayoutStrategy() =default |
Detailed Description
class CorePlotting::StackedLayoutStrategy;Vertical stacking layout strategy (DataViewer style).
Stacks series vertically with equal height allocation. This is the default layout for DataViewer where analog time series and digital event series share the canvas in a stacked arrangement.
LAYOUT RULES:
- Stackable series (analog + stacked events) divide viewport equally
- Non-stackable series (full-canvas digital intervals) span entire viewport
- Series are ordered top-to-bottom by their index in the request
- Global zoom/scale/pan are applied uniformly to all series
COORDINATE SYSTEM:
- Y coordinates are in viewport space (typically -1 to +1 NDC)
- Heights are in viewport units
- Series centers are positioned to create even vertical spacing
Public Functions Documentation
function compute
virtual LayoutResponse compute(
LayoutRequest const & request
) const overrideCompute stacked vertical layout.
Parameters:
- request Layout parameters and series list
Return: Layout positions for each series
Reimplements: CorePlotting::ILayoutStrategy::compute
Updated on 2026-11-13 at 20:25:42 +0000