ModelAabbComponent Class
Component that stores the canonical Axis-Aligned Bounding Box (AABB) of a model. More...
Declaration
Public Constructors Index
| ModelAabbComponent ()=default | |
|
Default constructor. More... | |
| ModelAabbComponent (const ModelAabbComponent &other) | |
| ModelAabbComponent (ModelAabbComponent &&) noexcept=default | |
Public Operators Index
| ModelAabbComponent & | operator= (const ModelAabbComponent &)=default |
| ModelAabbComponent & | operator= (ModelAabbComponent &&) noexcept=default |
Public Member Functions Index
| bool | isEnabled () const noexcept |
|
Checks whether this component is enabled. More... | |
| void | enable () noexcept |
|
Enables this component. More... | |
| void | disable () noexcept |
|
Disables this component. More... | |
| void | setAabb (const helios::math::aabbf &aabb) |
|
Sets the AABB for this component. More... | |
| const helios::math::aabbf & | aabb () const noexcept |
|
Retrieves the stored AABB. More... | |
Private Member Attributes Index
| helios::math::aabbf | aabb_ {} |
|
The stored AABB. More... | |
| 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 23 of file ModelAabbComponent.ixx.
Public Constructors
ModelAabbComponent()
| default |
Default constructor.
Definition at line 63 of file ModelAabbComponent.ixx.
Referenced by ModelAabbComponent, ModelAabbComponent, operator= and operator=.
ModelAabbComponent()
| inline |
Definition at line 65 of file ModelAabbComponent.ixx.
Reference ModelAabbComponent.
ModelAabbComponent()
| noexcept default |
Definition at line 69 of file ModelAabbComponent.ixx.
Reference ModelAabbComponent.
Public Operators
operator=()
| default |
Definition at line 68 of file ModelAabbComponent.ixx.
Reference ModelAabbComponent.
operator=()
| noexcept default |
Definition at line 70 of file ModelAabbComponent.ixx.
Reference ModelAabbComponent.
Public Member Functions
aabb()
| inline nodiscard noexcept |
Retrieves the stored AABB.
- Returns
Constant reference to the AABB.
Definition at line 87 of file ModelAabbComponent.ixx.
Referenced by setAabb.
disable()
| inline noexcept |
Disables this component.
Definition at line 56 of file ModelAabbComponent.ixx.
enable()
| inline noexcept |
Enables this component.
Definition at line 49 of file ModelAabbComponent.ixx.
isEnabled()
| inline nodiscard noexcept |
Checks whether this component is enabled.
- Returns
True if enabled, false otherwise.
Definition at line 42 of file ModelAabbComponent.ixx.
setAabb()
| inline |
Private Member Attributes
aabb_
|
The stored AABB.
Definition at line 28 of file ModelAabbComponent.ixx.
isEnabled_
|
Whether this component is enabled.
Definition at line 33 of file ModelAabbComponent.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.