Classes | Public Member Functions | Public Attributes | Protected Attributes

SpatialPartioning Class Reference

class SpatialPartioning class implements all methods for hashing the points of the object in the corresponding cells of the space. It allows to calculate the neighbours of each particles, which will be used to run the collision tests More...

#include <SpatialPartioning.h>

List of all members.

Classes

struct  ihash

Public Member Functions

 SpatialPartioning ()
 Constractor.
 ~SpatialPartioning ()
 Destractor.
void ObjectHashing (ObjObject *_object, std::string _objectName)
 the method does the hashing of the object [in] _object object to be hashed [in] _objectName the name of the object to hash
void CalculateVertexNeighbours (const ngl::Vector &_vertex, std::vector< HashTableData > &_neighbours)
 the method calculates the neighbours of the object [in,out] _vertex to find its neighbours [in,out] _neighbours list of neighbours of the vertex
void CalculateObjectNeighbours (std::vector< ObjObject * > _listOfObjects)
 the method finds the neighbours for the objects in the list [in] _listOfObjects list of object for who neighbours should be calculated
void CleanHashTable ()
 this method cleans the hash table

Public Attributes

ngl::Vector BBMin
 parameters define the BoundingBox of the vertex within which the collisions will be checked
ngl::Vector BBMax

Protected Attributes

ngl::Real m_gridCellSize
 The size of the grid cell.

Detailed Description

class SpatialPartioning class implements all methods for hashing the points of the object in the corresponding cells of the space. It allows to calculate the neighbours of each particles, which will be used to run the collision tests


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables