Mat4Component Class Template
Generic 4x4 matrix component with dirty-state tracking. More...
Declaration
Public Member Typedefs Index
template < ... > | |
| using | Handle_type = THandle |
template < ... > | |
| using | Value_type = helios::math::mat4< TNumericType > |
Public Constructors Index
template < ... > | |
| Mat4Component ()=default | |
template < ... > | |
| Mat4Component (const Value_type &value) | |
|
Constructs the component with an initial value. More... | |
template < ... > | |
| Mat4Component (const TNumericType value) | |
|
Constructs the component with a scalar-filled matrix. More... | |
template < ... > | |
| Mat4Component (const Mat4Component &other) | |
|
Copy constructor. More... | |
template < ... > | |
| Mat4Component (Mat4Component &&) noexcept=default | |
|
Default move constructor. More... | |
Public Operators Index
template < ... > | |
| Mat4Component & | operator= (const Mat4Component &)=default |
|
Default copy assignment. More... | |
template < ... > | |
| Mat4Component & | operator= (Mat4Component &&) noexcept=default |
|
Default move assignment. More... | |
Public Member Functions Index
template < ... > | |
| Value_type & | value () noexcept |
|
Returns the current value for in-place modification. More... | |
template < ... > | |
| const Value_type & | value () const noexcept |
|
Returns the current value. More... | |
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::mat4< TNumericType > | value_ {} |
Description
Generic 4x4 matrix component with dirty-state tracking.
- Template Parameters
-
TDomainTag Semantic domain tag.
THandle Owning entity handle type.
TNumericType Scalar type for matrix values.
Definition at line 28 of file Mat4Component.ixx.
Public Member Typedefs
Handle_type
|
Definition at line 35 of file Mat4Component.ixx.
Value_type
|
Definition at line 37 of file Mat4Component.ixx.
Public Constructors
Mat4Component()
| default |
Definition at line 39 of file Mat4Component.ixx.
Mat4Component()
| inline explicit |
Constructs the component with an initial value.
- Parameters
-
value Initial matrix value.
Definition at line 46 of file Mat4Component.ixx.
Mat4Component()
| inline explicit |
Constructs the component with a scalar-filled matrix.
- Parameters
-
value Scalar used to initialize all matrix elements.
Definition at line 53 of file Mat4Component.ixx.
Mat4Component()
| inline |
Copy constructor.
- Parameters
-
other The component to copy from.
Copies the value and forces the copied component into a dirty state to ensure dependent systems refresh cached data.
Definition at line 63 of file Mat4Component.ixx.
Mat4Component()
| noexcept default |
Default move constructor.
Definition at line 69 of file Mat4Component.ixx.
Public Operators
operator=()
| default |
Default copy assignment.
Definition at line 67 of file Mat4Component.ixx.
operator=()
| noexcept default |
Default move assignment.
Definition at line 71 of file Mat4Component.ixx.
Public Member Functions
setValue()
| inline noexcept |
Updates the value and marks the component dirty on change.
- Parameters
-
value New matrix value.
Definition at line 97 of file Mat4Component.ixx.
Reference helios::engine::core::components::Mat4Component< TDomainTag, TNumericType, THandle, Args >::value.
value()
| inline noexcept |
Returns the current value for in-place modification.
- Returns
Mutable reference to the current 4x4 matrix value.
Definition at line 79 of file Mat4Component.ixx.
Referenced by helios::engine::core::components::Mat4Component< TDomainTag, TNumericType, THandle, Args >::setValue.
value()
| inline noexcept |
Returns the current value.
- Returns
Current 4x4 matrix value.
Definition at line 88 of file Mat4Component.ixx.
Private Member Attributes
value_
|
Definition at line 30 of file Mat4Component.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.