TrinityCore
BIHWrap< T, BoundsFunc > Class Template Reference

#include <BoundingIntervalHierarchyWrapper.h>

Classes

struct  MDLCallback
 

Public Member Functions

 BIHWrap ()
 
void insert (const T &obj)
 
void remove (const T &obj)
 
void balance ()
 
template<typename RayCallback >
void intersectRay (const G3D::Ray &ray, RayCallback &intersectCallback, float &maxDist)
 
template<typename IsectCallback >
void intersectPoint (const G3D::Vector3 &point, IsectCallback &intersectCallback)
 

Private Types

typedef G3D::Array< const T * > ObjArray
 

Private Attributes

BIH m_tree
 
ObjArray m_objects
 
G3D::Table< const T *, uint32m_obj2Idx
 
G3D::Set< const T * > m_objects_to_push
 
int unbalanced_times
 

Detailed Description

template<class T, class BoundsFunc = BoundsTrait<T>>
class BIHWrap< T, BoundsFunc >

Definition at line 27 of file BoundingIntervalHierarchyWrapper.h.

Member Typedef Documentation

◆ ObjArray

template<class T , class BoundsFunc = BoundsTrait<T>>
typedef G3D::Array<const T*> BIHWrap< T, BoundsFunc >::ObjArray
private

Definition at line 58 of file BoundingIntervalHierarchyWrapper.h.

Constructor & Destructor Documentation

◆ BIHWrap()

template<class T , class BoundsFunc = BoundsTrait<T>>
BIHWrap< T, BoundsFunc >::BIHWrap ( )
inline

Definition at line 67 of file BoundingIntervalHierarchyWrapper.h.

Member Function Documentation

◆ balance()

template<class T , class BoundsFunc = BoundsTrait<T>>
void BIHWrap< T, BoundsFunc >::balance ( )
inline

Definition at line 86 of file BoundingIntervalHierarchyWrapper.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insert()

template<class T , class BoundsFunc = BoundsTrait<T>>
void BIHWrap< T, BoundsFunc >::insert ( const T &  obj)
inline

Definition at line 69 of file BoundingIntervalHierarchyWrapper.h.

◆ intersectPoint()

template<class T , class BoundsFunc = BoundsTrait<T>>
template<typename IsectCallback >
void BIHWrap< T, BoundsFunc >::intersectPoint ( const G3D::Vector3 &  point,
IsectCallback &  intersectCallback 
)
inline

Definition at line 109 of file BoundingIntervalHierarchyWrapper.h.

+ Here is the call graph for this function:

◆ intersectRay()

template<class T , class BoundsFunc = BoundsTrait<T>>
template<typename RayCallback >
void BIHWrap< T, BoundsFunc >::intersectRay ( const G3D::Ray &  ray,
RayCallback &  intersectCallback,
float &  maxDist 
)
inline

Definition at line 101 of file BoundingIntervalHierarchyWrapper.h.

+ Here is the call graph for this function:

◆ remove()

template<class T , class BoundsFunc = BoundsTrait<T>>
void BIHWrap< T, BoundsFunc >::remove ( const T &  obj)
inline

Definition at line 75 of file BoundingIntervalHierarchyWrapper.h.

Member Data Documentation

◆ m_obj2Idx

template<class T , class BoundsFunc = BoundsTrait<T>>
G3D::Table<const T*, uint32> BIHWrap< T, BoundsFunc >::m_obj2Idx
private

Definition at line 62 of file BoundingIntervalHierarchyWrapper.h.

◆ m_objects

template<class T , class BoundsFunc = BoundsTrait<T>>
ObjArray BIHWrap< T, BoundsFunc >::m_objects
private

Definition at line 61 of file BoundingIntervalHierarchyWrapper.h.

◆ m_objects_to_push

template<class T , class BoundsFunc = BoundsTrait<T>>
G3D::Set<const T*> BIHWrap< T, BoundsFunc >::m_objects_to_push
private

Definition at line 63 of file BoundingIntervalHierarchyWrapper.h.

◆ m_tree

template<class T , class BoundsFunc = BoundsTrait<T>>
BIH BIHWrap< T, BoundsFunc >::m_tree
private

Definition at line 60 of file BoundingIntervalHierarchyWrapper.h.

◆ unbalanced_times

template<class T , class BoundsFunc = BoundsTrait<T>>
int BIHWrap< T, BoundsFunc >::unbalanced_times
private

Definition at line 64 of file BoundingIntervalHierarchyWrapper.h.


The documentation for this class was generated from the following file: