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

Rendering controller, which instantiates and and manages the rendering tree. More...

#include "donner/svg/renderer/RenderingContext.h"

Public Member Functions

 RenderingContext (Registry &registry)
 Constructor.
 
void instantiateRenderTree (bool verbose, std::vector< parser::ParseError > *outWarnings)
 Create the render tree for the document, optionally returning parse warnings found when parsing deferred parts of the tree.
 
Entity findIntersecting (const Vector2d &point)
 Find the first entity that intersects the given point.
 
void invalidateRenderTree ()
 Invalidate the rendering tree, forcing it to be recreated on the next render.
 

Detailed Description

Rendering controller, which instantiates and and manages the rendering tree.

Used during the rendering phase in combination with the rendering backend.

Member Function Documentation

◆ findIntersecting()

Entity donner::svg::components::RenderingContext::findIntersecting ( const Vector2d & point)

Find the first entity that intersects the given point.

Parameters
pointPoint to find the intersecting entity for

◆ instantiateRenderTree()

void donner::svg::components::RenderingContext::instantiateRenderTree ( bool verbose,
std::vector< parser::ParseError > * outWarnings )

Create the render tree for the document, optionally returning parse warnings found when parsing deferred parts of the tree.

Parameters
verboseIf true, enable verbose logging.
outWarningsIf non-null, warnings will be added to this vector.

The documentation for this class was generated from the following files: