Skip to main content

PlottingSVG::SVGDecoration

PlottingSVG::SVGDecoration

Interface for SVG-specific decorations rendered in canvas pixel space.

#include <SVGDecoration.hpp>

Inherited by PlottingSVG::SVGAxisRenderer, PlottingSVG::SVGScalebar

Public Functions

Name
virtual ~SVGDecoration() =default
virtual std::vector< std::string > render(int canvas_width, int canvas_height) const =0
Produce SVG element strings for this decoration.

Public Functions Documentation

function ~SVGDecoration

virtual ~SVGDecoration() =default

function render

virtual std::vector< std::string > render(
    int canvas_width,
    int canvas_height
) const =0

Produce SVG element strings for this decoration.

Parameters:

  • canvas_width SVG width in pixels.
  • canvas_height SVG height in pixels.

Return: Zero or more SVG fragments (e.g. <line>, <text>).

Reimplemented by: PlottingSVG::SVGAxisRenderer::render, PlottingSVG::SVGScalebar::render


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