![]() |
TrinityCore
|
#include <BoundingIntervalHierarchyWrapper.h>
Classes | |
| struct | MDLCallback |
Public Member Functions | |
| BIHWrap () | |
| void | insert (T const &obj) |
| void | remove (T const &obj) |
| void | balance () |
| template<typename RayCallback > | |
| void | intersectRay (G3D::Ray const &ray, RayCallback &intersectCallback, float &maxDist) |
| template<typename IsectCallback > | |
| void | intersectPoint (G3D::Vector3 const &point, IsectCallback &intersectCallback) |
| std::span< T const *const > | getObjects () const |
Private Attributes | |
| BIH | m_tree |
| std::vector< T const * > | m_objects |
| std::unordered_map< T const *, std::size_t > | m_obj2Idx |
| int | unbalanced_times |
Definition at line 26 of file BoundingIntervalHierarchyWrapper.h.
Definition at line 63 of file BoundingIntervalHierarchyWrapper.h.
|
inline |
Definition at line 95 of file BoundingIntervalHierarchyWrapper.h.
References BIH::build(), BIHWrap< T, BoundsFunc >::m_objects, BIHWrap< T, BoundsFunc >::m_tree, and BIHWrap< T, BoundsFunc >::unbalanced_times.
Referenced by BIHWrap< T, BoundsFunc >::intersectPoint(), and BIHWrap< T, BoundsFunc >::intersectRay().
|
inline |
Definition at line 120 of file BoundingIntervalHierarchyWrapper.h.
References BIHWrap< T, BoundsFunc >::m_objects.
|
inline |
Definition at line 65 of file BoundingIntervalHierarchyWrapper.h.
References BIHWrap< T, BoundsFunc >::m_obj2Idx, BIHWrap< T, BoundsFunc >::m_objects, and BIHWrap< T, BoundsFunc >::unbalanced_times.
|
inline |
Definition at line 113 of file BoundingIntervalHierarchyWrapper.h.
References BIHWrap< T, BoundsFunc >::balance(), BIH::intersectPoint(), BIHWrap< T, BoundsFunc >::m_objects, and BIHWrap< T, BoundsFunc >::m_tree.
|
inline |
Definition at line 105 of file BoundingIntervalHierarchyWrapper.h.
References BIHWrap< T, BoundsFunc >::balance(), BIH::intersectRay(), BIHWrap< T, BoundsFunc >::m_objects, and BIHWrap< T, BoundsFunc >::m_tree.
|
inline |
Definition at line 75 of file BoundingIntervalHierarchyWrapper.h.
References BIHWrap< T, BoundsFunc >::m_obj2Idx, BIHWrap< T, BoundsFunc >::m_objects, and BIHWrap< T, BoundsFunc >::unbalanced_times.
|
private |
Definition at line 59 of file BoundingIntervalHierarchyWrapper.h.
Referenced by BIHWrap< T, BoundsFunc >::insert(), and BIHWrap< T, BoundsFunc >::remove().
|
private |
Definition at line 58 of file BoundingIntervalHierarchyWrapper.h.
Referenced by BIHWrap< T, BoundsFunc >::balance(), BIHWrap< T, BoundsFunc >::getObjects(), BIHWrap< T, BoundsFunc >::insert(), BIHWrap< T, BoundsFunc >::intersectPoint(), BIHWrap< T, BoundsFunc >::intersectRay(), and BIHWrap< T, BoundsFunc >::remove().
Definition at line 57 of file BoundingIntervalHierarchyWrapper.h.
Referenced by BIHWrap< T, BoundsFunc >::balance(), BIHWrap< T, BoundsFunc >::intersectPoint(), and BIHWrap< T, BoundsFunc >::intersectRay().
|
private |
Definition at line 60 of file BoundingIntervalHierarchyWrapper.h.
Referenced by BIHWrap< T, BoundsFunc >::balance(), BIHWrap< T, BoundsFunc >::insert(), and BIHWrap< T, BoundsFunc >::remove().