Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::svg::components::ComputedPathComponent Struct Reference

Stores a PathSpline used for rendering a shape, which may be generated from the parameters of shapes such as circle, rect, line, poly, and path. More...

#include "donner/svg/components/shape/ComputedPathComponent.h"

Collaboration diagram for donner::svg::components::ComputedPathComponent:
[legend]

Public Member Functions

Boxd transformedBounds (const Transformd &pathFromTarget)
 Returns the tight bounds of the shape, transformed to the target coordinate system.
 

Public Attributes

PathSpline spline
 PathSpline used for rendering the shape.
 

Detailed Description

Stores a PathSpline used for rendering a shape, which may be generated from the parameters of shapes such as circle, rect, line, poly, and path.

All shapes create computed paths, and these paths can be rendered using a unified rendering pipeline.

Member Function Documentation

◆ transformedBounds()

Boxd donner::svg::components::ComputedPathComponent::transformedBounds ( const Transformd & pathFromTarget)
inline

Returns the tight bounds of the shape, transformed to the target coordinate system.

Parameters
pathFromTargetTransform to transform the path to the target coordinate system.

The documentation for this struct was generated from the following file: