Skip to main content

CorePlotting::ILayoutStrategy

CorePlotting::ILayoutStrategy

Strategy interface for layout algorithms. More…

#include <LayoutEngine.hpp>

Inherited by CorePlotting::RowLayoutStrategy, CorePlotting::StackedLayoutStrategy

Public Functions

Name
virtual ~ILayoutStrategy() =default
virtual LayoutResponse compute(LayoutRequest const & request) const =0
Compute layout for the given request.

Detailed Description

class CorePlotting::ILayoutStrategy;

Strategy interface for layout algorithms.

Implements the Strategy pattern to allow different layout algorithms (stacked, row-based, grid, etc.) without changing LayoutEngine API.

Public Functions Documentation

function ~ILayoutStrategy

virtual ~ILayoutStrategy() =default

function compute

virtual LayoutResponse compute(
    LayoutRequest const & request
) const =0

Compute layout for the given request.

Parameters:

  • request Layout parameters and series list

Return: Computed layout positions

Reimplemented by: CorePlotting::RowLayoutStrategy::compute, CorePlotting::StackedLayoutStrategy::compute


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