Donner 0.5.0
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::svg::components::FilterGraph Struct Reference

The complete filter graph for a <filter> element. More...

#include "donner/svg/components/filter/FilterGraph.h"

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

Public Member Functions

bool empty () const
 Returns true if the graph has no nodes.

Public Attributes

std::vector< FilterNodenodes
 Nodes in document (execution) order.
ColorInterpolationFilters colorInterpolationFilters = ColorInterpolationFilters::Default
 Color space for filter operations (linearRGB or sRGB).
PrimitiveUnits primitiveUnits = PrimitiveUnits::Default
 Coordinate system for primitive subregion and primitive-specific length attributes.
std::optional< Box2delementBoundingBox
 Bounding box of the referencing element, used when primitiveUnits=objectBoundingBox. Set by the renderer driver before passing to the renderer.
std::optional< Box2dfilterRegion
 The filter region in user-space coordinates.
Vector2d userToPixelScale = Vector2d(1.0, 1.0)
 Scale factor from SVG user-space coordinates to pixel-space coordinates. Needed by lighting filters to transform light positions from user space to the pixel-space pixmap. Set by the renderer driver from the viewBox and canvas dimensions.

Detailed Description

The complete filter graph for a <filter> element.

Contains an ordered list of filter nodes derived from the filter element's children. The output of the last node is the filter result that gets composited onto the canvas.


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