AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "RegularGrid.h"
Classes | |
struct | Cell |
Public Types | |
enum | { CELL_NUMBER = 64 } |
typedef G3D::Table< const T *, NodeArray< Node > > | MemberTable |
Public Member Functions | |
RegularGrid2D () | |
~RegularGrid2D () | |
void | insert (const T &value) |
void | remove (const T &value) |
void | balance () |
bool | contains (const T &value) const |
int | size () const |
Node & | getGridFor (float fx, float fy) |
Node & | getGrid (int x, int y) |
template<typename RayCallback > | |
void | intersectRay (const G3D::Ray &ray, RayCallback &intersectCallback, float max_dist, bool stopAtFirstHit) |
template<typename RayCallback > | |
void | intersectRay (const G3D::Ray &ray, RayCallback &intersectCallback, float &max_dist, const G3D::Vector3 &end, bool stopAtFirstHit) |
template<typename IsectCallback > | |
void | intersectPoint (const G3D::Vector3 &point, IsectCallback &intersectCallback) |
template<typename RayCallback > | |
void | intersectZAllignedRay (const G3D::Ray &ray, RayCallback &intersectCallback, float &max_dist) |
Public Attributes | |
MemberTable | memberTable |
Node * | nodes [CELL_NUMBER][CELL_NUMBER] |
typedef G3D::Table<const T*, NodeArray<Node> > RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::MemberTable |
anonymous enum |
|
inline |
References RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::nodes.
|
inline |
References RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::CELL_NUMBER, and RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::nodes.
|
inline |
References RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::CELL_NUMBER, and RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::nodes.
Referenced by DynTreeImpl::balance().
|
inline |
References RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::memberTable.
Referenced by DynamicMapTree::contains().
|
inline |
References ASSERT, RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::CELL_NUMBER, and RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::nodes.
Referenced by RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::getGridFor().
|
inline |
References RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::ComputeCell(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::getGrid(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::x, and RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::y.
Referenced by RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::insert().
|
inline |
References NodeArray< Node >::_nodes, NodeArray< Node >::AddNode(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::ComputeCell(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::getGridFor(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::isValid(), and RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::memberTable.
Referenced by DynTreeImpl::insert().
|
inline |
References RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::ComputeCell(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::isValid(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::nodes, RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::x, and RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::y.
Referenced by DynamicMapTree::GetAreaAndLiquidData(), and DynamicMapTree::GetAreaInfo().
|
inline |
References CELL_SIZE, RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::ComputeCell(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::isValid(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::nodes, RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::x, and RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::y.
|
inline |
References RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::intersectRay().
Referenced by DynamicMapTree::GetIntersectionTime(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::intersectRay(), and DynamicMapTree::isInLineOfSight().
|
inline |
References RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::ComputeCell(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::isValid(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::nodes, RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::x, and RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::y.
Referenced by DynamicMapTree::getHeight().
|
inline |
References NodeArray< Node >::_nodes, and RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::memberTable.
Referenced by DynTreeImpl::remove().
|
inline |
References RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::memberTable.
Referenced by DynamicMapTree::size(), and DynTreeImpl::update().
MemberTable RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::memberTable |
Node* RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::nodes[CELL_NUMBER][CELL_NUMBER] |
Referenced by RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::balance(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::getGrid(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::intersectPoint(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::intersectRay(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::intersectZAllignedRay(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::RegularGrid2D(), and RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::~RegularGrid2D().