entttree 0.1.0
Hierarchical entity management for EnTT
Loading...
Searching...
No Matches
entttree::BoundedNode< Node, T, N > Struct Template Reference

A traversal node augmented with transform and bounding information. More...

#include <hierarchy_types.h>

Inheritance diagram for entttree::BoundedNode< Node, T, N >:
entttree::TransformedNode< Node, T, N > entttree::PointSearchNode< Node, T, N > entttree::RaySearchNode< Node, T, N >

Public Attributes

std::optional< Rect< T, N > > intrinsic_bounds
 The entity's own bounds, if set.
 
std::optional< Rect< T, N > > computed_bounds
 Union of intrinsic + children bounds, if any.
 
- Public Attributes inherited from entttree::TransformedNode< Node, T, N >
Node node
 The underlying node handle.
 
AffineTransform< T, Nnode_to_root
 Cumulative transform from node space to root space.
 

Additional Inherited Members

- Public Types inherited from entttree::TransformedNode< Node, T, N >
using InnerNode = Node
 

Detailed Description

template<typename Node, typename T, size_t N>
struct entttree::BoundedNode< Node, T, N >

A traversal node augmented with transform and bounding information.

Yielded by BoundsSystem::traverse() and augment_with_bounds(). Extends TransformedNode with the entity's intrinsic and computed bounds.

Template Parameters
NodeThe inner node type.
TScalar type.
NSpatial dimension.

Definition at line 171 of file hierarchy_types.h.

Member Data Documentation

◆ computed_bounds

template<typename Node , typename T , size_t N>
std::optional<Rect<T,N> > entttree::BoundedNode< Node, T, N >::computed_bounds

Union of intrinsic + children bounds, if any.

Definition at line 173 of file hierarchy_types.h.

◆ intrinsic_bounds

template<typename Node , typename T , size_t N>
std::optional<Rect<T,N> > entttree::BoundedNode< Node, T, N >::intrinsic_bounds

The entity's own bounds, if set.

Definition at line 172 of file hierarchy_types.h.


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