|
|
Donner 0.5.0
Embeddable browser-grade SVG2 engine
|
The complete filter graph for a <filter> element.
More...
#include "donner/svg/components/filter/FilterGraph.h"
Public Member Functions | |
| bool | empty () const |
| Returns true if the graph has no nodes. | |
Public Attributes | |
| std::vector< FilterNode > | nodes |
| 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< Box2d > | elementBoundingBox |
| Bounding box of the referencing element, used when primitiveUnits=objectBoundingBox. Set by the renderer driver before passing to the renderer. | |
| std::optional< Box2d > | filterRegion |
| 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. | |
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.