![]() |
Divide Framework 0.1
A free and open-source 3D Framework under heavy development
|
#include <BoundsComponent.h>
Public Member Functions | |
BoundsComponent (SceneGraphNode *sgn, PlatformContext &context) | |
const BoundingBox & | getBoundingBox () const noexcept |
const BoundingSphere & | getBoundingSphere () const noexcept |
const OBB & | getOBB () |
void | updateBoundingBoxTransform () |
void | appendChildBBs () |
void | appendChildRefBBs () |
FORCE_INLINE bool | isClean () const noexcept |
PROPERTY_R (bool, showAABB, false) | |
PROPERTY_R (bool, showOBB, false) | |
PROPERTY_R (bool, showBS, false) | |
PROPERTY_RW (bool, collisionsEnabled, true) | |
void | showAABB (bool state) |
void | showOBB (bool state) |
void | showBS (bool state) |
![]() | |
GUIDWrapper () noexcept | |
GUIDWrapper (const GUIDWrapper &old) noexcept | |
GUIDWrapper (GUIDWrapper &&old) noexcept | |
virtual | ~GUIDWrapper ()=default |
FORCE_INLINE I64 | getGUID () const noexcept |
GUIDWrapper & | operator= (const GUIDWrapper &old)=delete |
GUIDWrapper & | operator= (GUIDWrapper &&other)=delete |
Protected Member Functions | |
void | OnData (const ECS::CustomEvent &data) override |
void | setRefBoundingBox (const BoundingBox &nodeBounds) noexcept |
void | flagBoundingBoxDirty (U32 transformMask, bool recursive) |
Private Types | |
using | Parent = BaseComponentType< BoundsComponent, ComponentType::BOUNDS > |
Private Attributes | |
std::atomic_uint | _transformUpdatedMask |
BoundingBox | _boundingBox {} |
BoundingBox | _refBoundingBox {} |
vec3< F32 > | _worldOffset {} |
BoundingSphere | _boundingSphere {} |
OBB | _obb {} |
std::atomic_bool | _obbDirty = false |
Friends | |
class | BoundsSystem |
class | SceneGraph |
template<typename T , typename U > | |
class | ECSSystem |
Additional Inherited Members | |
![]() | |
static I64 | generateGUID () noexcept |
![]() | |
const I64 | _guid |
Definition at line 42 of file BoundsComponent.h.
|
private |
Definition at line 42 of file BoundsComponent.h.
Divide::BoundsComponent::BoundsComponent | ( | SceneGraphNode * | sgn, |
PlatformContext & | context | ||
) |
Definition at line 12 of file BoundsComponent.cpp.
void Divide::BoundsComponent::appendChildBBs | ( | ) |
Definition at line 197 of file BoundsComponent.cpp.
void Divide::BoundsComponent::appendChildRefBBs | ( | ) |
Definition at line 178 of file BoundsComponent.cpp.
|
protected |
Definition at line 134 of file BoundsComponent.cpp.
|
inlinenoexcept |
Definition at line 46 of file BoundsComponent.h.
|
inlinenoexcept |
Definition at line 47 of file BoundsComponent.h.
const OBB & Divide::BoundsComponent::getOBB | ( | ) |
Definition at line 220 of file BoundsComponent.cpp.
|
inlinenoexcept |
Definition at line 54 of file BoundsComponent.h.
|
overrideprotected |
Definition at line 153 of file BoundsComponent.cpp.
Divide::BoundsComponent::PROPERTY_R | ( | bool | , |
showAABB | , | ||
false | |||
) |
Divide::BoundsComponent::PROPERTY_R | ( | bool | , |
showBS | , | ||
false | |||
) |
Divide::BoundsComponent::PROPERTY_R | ( | bool | , |
showOBB | , | ||
false | |||
) |
Divide::BoundsComponent::PROPERTY_RW | ( | bool | , |
collisionsEnabled | , | ||
true | |||
) |
|
protectednoexcept |
Definition at line 161 of file BoundsComponent.cpp.
void Divide::BoundsComponent::showAABB | ( | bool | state | ) |
Definition at line 98 of file BoundsComponent.cpp.
void Divide::BoundsComponent::showBS | ( | bool | state | ) |
Definition at line 122 of file BoundsComponent.cpp.
void Divide::BoundsComponent::showOBB | ( | bool | state | ) |
Definition at line 110 of file BoundsComponent.cpp.
void Divide::BoundsComponent::updateBoundingBoxTransform | ( | ) |
Definition at line 167 of file BoundsComponent.cpp.
|
friend |
Definition at line 42 of file BoundsComponent.h.
|
friend |
Definition at line 69 of file BoundsComponent.h.
|
friend |
Definition at line 66 of file BoundsComponent.h.
|
private |
Definition at line 80 of file BoundsComponent.h.
|
private |
Definition at line 83 of file BoundsComponent.h.
|
private |
Definition at line 84 of file BoundsComponent.h.
|
private |
Definition at line 85 of file BoundsComponent.h.
|
private |
Definition at line 81 of file BoundsComponent.h.
|
private |
Definition at line 79 of file BoundsComponent.h.
Definition at line 82 of file BoundsComponent.h.