Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::components::FilterNode Struct Reference

A single node in the filter graph, representing one filter primitive. More...

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

Public Member Functions

bool hasExplicitRegion () const
 Whether any authored primitive-region coordinate is present.
bool hasAnimatedRegion () const
 Whether a contextual region stack is present, including a stack with no contributing value.

Public Attributes

FilterPrimitive primitive
 The filter primitive operation.
std::vector< FilterInput > inputs
 Input(s) to this primitive. A slot this list leaves unpopulated resolves exactly like an unspecified in/in2 attribute: to the previous primitive's result, and to SourceGraphic only when the node is the first primitive in the graph. A Composite, Blend, or DisplacementMap node built with a single input therefore reads the previous result as its second input, never the source graphic.
std::optional< RcString > result
 Named output (for result attribute).
std::optional< Lengthd > x
 Primitive subregion X.
std::optional< Lengthd > y
 Primitive subregion Y.
std::optional< Lengthd > width
 Primitive subregion width.
std::optional< Lengthd > height
 Primitive subregion height.
std::array< std::shared_ptr< const ContextualLengthRecipe >, 4 > animatedRegion {}
 Immutable deferred x/y/width/height stacks, evaluated in the executing filter's context.
std::optional< ColorInterpolationFilters > colorInterpolationFilters
 Per-primitive color-interpolation-filters. When set, overrides the graph-level default.

Detailed Description

A single node in the filter graph, representing one filter primitive.

Nodes are executed in document order. Each node reads from its inputs (which may be standard inputs like SourceGraphic, or outputs of prior nodes), applies its primitive operation, and writes to an output buffer.


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