ModelAabbComponent Class Template
Component that stores the canonical Axis-Aligned Bounding Box (AABB) of a model. More...
Declaration
Public Constructors Index
template <typename THandle> | |
| ModelAabbComponent ()=default | |
|
Default constructor. More... | |
template <typename THandle> | |
| ModelAabbComponent (const ModelAabbComponent &other) | |
template <typename THandle> | |
| ModelAabbComponent (ModelAabbComponent &&) noexcept=default | |
Public Operators Index
template <typename THandle> | |
| ModelAabbComponent & | operator= (const ModelAabbComponent &)=default |
template <typename THandle> | |
| ModelAabbComponent & | operator= (ModelAabbComponent &&) noexcept=default |
Public Member Functions Index
template <typename THandle> | |
| bool | isEnabled () const noexcept |
|
Checks whether this component is enabled. More... | |
template <typename THandle> | |
| void | enable () noexcept |
|
Enables this component. More... | |
template <typename THandle> | |
| void | disable () noexcept |
|
Disables this component. More... | |
template <typename THandle> | |
| void | setAabb (const helios::math::aabbf &aabb) |
|
Sets the AABB for this component. More... | |
template <typename THandle> | |
| const helios::math::aabbf & | aabb () const noexcept |
|
Retrieves the stored AABB. More... | |
Private Member Attributes Index
template <typename THandle> | |
| helios::math::aabbf | aabb_ {} |
|
The stored AABB. More... | |
template <typename THandle> | |
| bool | isEnabled_ = true |
|
Whether this component is enabled. More... | |
Description
Component that stores the canonical Axis-Aligned Bounding Box (AABB) of a model.
This component is used to associate spatial bounds with an entity, typically derived from a 3D model or mesh. It is essential for culling, collision detection, and other spatial queries.
Definition at line 24 of file ModelAabbComponent.ixx.
Public Constructors
ModelAabbComponent()
| default |
Default constructor.
Definition at line 64 of file ModelAabbComponent.ixx.
ModelAabbComponent()
| inline |
Definition at line 66 of file ModelAabbComponent.ixx.
ModelAabbComponent()
| noexcept default |
Definition at line 70 of file ModelAabbComponent.ixx.
Public Operators
operator=()
| default |
Definition at line 69 of file ModelAabbComponent.ixx.
operator=()
| noexcept default |
Definition at line 71 of file ModelAabbComponent.ixx.
Public Member Functions
aabb()
| inline noexcept |
Retrieves the stored AABB.
- Returns
Constant reference to the AABB.
Definition at line 88 of file ModelAabbComponent.ixx.
Referenced by helios::engine::rendering::model::components::ModelAabbComponent< THandle >::setAabb.
disable()
| inline noexcept |
Disables this component.
Definition at line 57 of file ModelAabbComponent.ixx.
enable()
| inline noexcept |
Enables this component.
Definition at line 50 of file ModelAabbComponent.ixx.
isEnabled()
| inline noexcept |
setAabb()
| inline |
Sets the AABB for this component.
- Parameters
-
aabb The new AABB to store.
Definition at line 78 of file ModelAabbComponent.ixx.
Reference helios::engine::rendering::model::components::ModelAabbComponent< THandle >::aabb.
Private Member Attributes
aabb_
|
The stored AABB.
Definition at line 29 of file ModelAabbComponent.ixx.
isEnabled_
|
Whether this component is enabled.
Definition at line 34 of file ModelAabbComponent.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.