Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
TransformComponent.h File Reference
Include dependency graph for TransformComponent.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::svg::components::TransformComponent
 Stores the raw transform value set on an entity, for the transform presentation attribute. More...
 
struct  donner::svg::components::ComputedLocalTransformComponent
 Stores the computed transform value for an entity, relative to the parent. More...
 
struct  donner::svg::components::ComputedAbsoluteTransformComponent
 Stores the computed transform value for an entity, relative to the world. More...
 

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
 
namespace  donner::svg
 Donner SVG library, which can load, manipulate and render SVG files.
 
namespace  donner::svg::components
 Contains the implementation of the Donner ECS,.
 

Class Documentation

◆ donner::svg::components::TransformComponent

struct donner::svg::components::TransformComponent

Stores the raw transform value set on an entity, for the transform presentation attribute.

This can be sourced from the transform="..." XML attribute, or from the transform CSS property.

Collaboration diagram for donner::svg::components::TransformComponent:
[legend]
Class Members
Property< CssTransform > transform Value of the transform, if it is set. Defaults to std::nullopt. Represents the entity-from-parent transform.

◆ donner::svg::components::ComputedLocalTransformComponent

struct donner::svg::components::ComputedLocalTransformComponent

Stores the computed transform value for an entity, relative to the parent.

This resolves presentation attributes and the CSS cascade and stores the resulting value for the current entity.

Collaboration diagram for donner::svg::components::ComputedLocalTransformComponent:
[legend]
Class Members
Transformd entityFromParent Transform from the entity from its parent.
CssTransform rawCssTransform Raw CSS transform value, before resolving percentages relative to the viewport.

◆ donner::svg::components::ComputedAbsoluteTransformComponent

struct donner::svg::components::ComputedAbsoluteTransformComponent

Stores the computed transform value for an entity, relative to the world.

This applies the transform from the from all parent entities, and represents the transform of the entity from the root.

Collaboration diagram for donner::svg::components::ComputedAbsoluteTransformComponent:
[legend]
Class Members
Transformd entityFromWorld Transform from the entity from the world.