AABBComponent Class Template
Generic AABB value component with dirty-state tracking. More...
Declaration
Public Member Typedefs Index
template < ... > | |
| using | Value_type = helios::math::aabb< TNumericType > |
template < ... > | |
| using | Handle_type = THandle |
Public Constructors Index
template < ... > | |
| AABBComponent ()=default | |
template < ... > | |
| AABBComponent (const Value_type &value) | |
|
Constructs the component with an initial value. More... | |
template < ... > | |
| AABBComponent (const AABBComponent &other) | |
|
Copy constructor. More... | |
template < ... > | |
| AABBComponent (AABBComponent &&) noexcept=default | |
|
Default move constructor. More... | |
Public Operators Index
template < ... > | |
| AABBComponent & | operator= (const AABBComponent &)=default |
|
Default copy assignment. More... | |
template < ... > | |
| AABBComponent & | operator= (AABBComponent &&) noexcept=default |
|
Default move assignment. More... | |
Public Member Functions Index
template < ... > | |
| Value_type & | value () noexcept |
|
Returns the current value. More... | |
template < ... > | |
| const Value_type & | value () const noexcept |
template < ... > | |
| void | setValue (const Value_type &value) noexcept |
|
Updates the value and marks the component dirty on change. More... | |
Private Member Attributes Index
template < ... > | |
| helios::math::aabb< TNumericType > | value_ {} |
Description
Generic AABB value component with dirty-state tracking.
- Template Parameters
-
TDomainTag Semantic domain tag.
THandle Owning entity handle type.
TNumericType Scalar type for AABB values.
Definition at line 22 of file AABBComponent.ixx.
Public Member Typedefs
Handle_type
|
Definition at line 29 of file AABBComponent.ixx.
Value_type
|
Definition at line 28 of file AABBComponent.ixx.
Public Constructors
AABBComponent()
| default |
Definition at line 31 of file AABBComponent.ixx.
AABBComponent()
| inline explicit |
Constructs the component with an initial value.
- Parameters
-
value Initial value vector.
Definition at line 38 of file AABBComponent.ixx.
AABBComponent()
| inline |
Copy constructor.
Copies the value and forces the copied component into a dirty state to ensure dependent systems refresh cached data.
- Parameters
-
other The component to copy from.
Definition at line 48 of file AABBComponent.ixx.
AABBComponent()
| noexcept default |
Default move constructor.
Definition at line 54 of file AABBComponent.ixx.
Public Operators
operator=()
| default |
Default copy assignment.
Definition at line 52 of file AABBComponent.ixx.
operator=()
| noexcept default |
Default move assignment.
Definition at line 56 of file AABBComponent.ixx.
Public Member Functions
setValue()
| inline noexcept |
Updates the value and marks the component dirty on change.
- Parameters
-
value New value vector.
Definition at line 77 of file AABBComponent.ixx.
Reference helios::engine::core::components::AABBComponent< TDomainTag, TNumericType, THandle, Args >::value.
value()
| inline noexcept |
Returns the current value.
- Returns
Current axis-aligned bounding box value.
Definition at line 64 of file AABBComponent.ixx.
Referenced by helios::engine::core::components::AABBComponent< TDomainTag, TNumericType, THandle, Args >::setValue.
value()
| inline noexcept |
Definition at line 68 of file AABBComponent.ixx.
Private Member Attributes
value_
|
Definition at line 24 of file AABBComponent.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.