Skip to main content

ModelAabbComponent.ixx File

Component for storing the canonical AABB of a model. More...

Included Headers

#include <helios.engine.core.spatial> #include <helios.math.types>

Namespaces Index

namespacehelios
namespaceengine
namespacerendering
namespacemodel
namespacecomponents

Classes Index

classModelAabbComponent<THandle>

Component that stores the canonical Axis-Aligned Bounding Box (AABB) of a model. More...

Description

Component for storing the canonical AABB of a model.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7export module helios.engine.rendering.model.components.ModelAabbComponent;
8
9import helios.math.types;
10
11import helios.engine.core.spatial;
12
14
23 template<typename THandle>
25
29 helios::math::aabbf aabb_{};
30
34 bool isEnabled_ = true;
35
36 public:
37
44 return isEnabled_;
45 }
46
50 void enable() noexcept {
51 isEnabled_ = true;
52 }
53
58 isEnabled_ = false;
59 }
60
64 ModelAabbComponent() = default;
65
67 aabb_(other.aabb_) {}
68
72
78 void setAabb(const helios::math::aabbf& aabb) {
79 aabb_ = aabb;
80 }
81
82
88 [[nodiscard]] const helios::math::aabbf& aabb() const noexcept {
89 return aabb_;
90 }
91 };
92
93}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.