Linderdaum Engine: cl2DUniformGrid< T > Class Template Reference
Updated: Sun Feb 5 2012 22:59:48
cl2DUniformGrid< T > Class Template Reference

#include <2DUniformGrid.h>

List of all members.

Classes

struct  sGridCell

Public Member Functions

 cl2DUniformGrid (float SizeX, float SizeY, float GranX, float GranY)
 ~cl2DUniformGrid ()
void AddToGrid (const LVector2 &Pos, T *Object, float Radius)
void RemoveFromGrid (const LVector2 &Pos, T *Object, float Radius)
void CreateClosestObjectsList (const LVector2 &Pos, float Radius)
T * GetClosestObject (int Index) const
int GetClosestObjectsCount () const

Private Attributes

LArray< T * > FClosestObjects
LArray< sGridCellFGridCells
int FCellsX
int FCellsY
float FGranX
float FGranY
int FPrevCenterCellIndex
int FPrevDx
int FPrevDy

template<class T>
class cl2DUniformGrid< T >


Constructor & Destructor Documentation

template<class T >
cl2DUniformGrid< T >::cl2DUniformGrid ( float  SizeX,
float  SizeY,
float  GranX,
float  GranY 
) [inline]
template<class T >
cl2DUniformGrid< T >::~cl2DUniformGrid ( ) [inline]

Member Function Documentation

template<class T >
void cl2DUniformGrid< T >::AddToGrid ( const LVector2 Pos,
T *  Object,
float  Radius 
)
template<class T >
void cl2DUniformGrid< T >::CreateClosestObjectsList ( const LVector2 Pos,
float  Radius 
)
template<class T >
T* cl2DUniformGrid< T >::GetClosestObject ( int  Index) const [inline]
template<class T >
int cl2DUniformGrid< T >::GetClosestObjectsCount ( ) const [inline]
template<class T >
void cl2DUniformGrid< T >::RemoveFromGrid ( const LVector2 Pos,
T *  Object,
float  Radius 
)

Member Data Documentation

template<class T >
int cl2DUniformGrid< T >::FCellsX [private]
template<class T >
int cl2DUniformGrid< T >::FCellsY [private]
template<class T >
LArray<T*> cl2DUniformGrid< T >::FClosestObjects [private]
template<class T >
float cl2DUniformGrid< T >::FGranX [private]
template<class T >
float cl2DUniformGrid< T >::FGranY [private]
template<class T >
LArray<sGridCell> cl2DUniformGrid< T >::FGridCells [private]
template<class T >
int cl2DUniformGrid< T >::FPrevCenterCellIndex [private]
template<class T >
int cl2DUniformGrid< T >::FPrevDx [private]
template<class T >
int cl2DUniformGrid< T >::FPrevDy [private]

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