neurolots  0.3.5
NeuroLOTs
nlgeometry::SpatialHashTable Class Reference
+ Collaboration diagram for nlgeometry::SpatialHashTable:

Public Member Functions

NLGEOMETRY_API SpatialHashTable (unsigned int size_=100000, float cellSize_=0.1f, float tolerance_=0.00001f, unsigned int primeX_=73856093, unsigned int primeY_=19349663, unsigned int primeZ_=83492791)
 Default Constructor. More...
 
NLGEOMETRY_API ~SpatialHashTable (void)
 Default destructor.
 
NLGEOMETRY_API VertexPtr insert (const VertexPtr &vertex_)
 Method that return a pointer to a vertex in the table with the same position of the given vertex if the is not vertex with the same position the given vertex will be inserted in the table and returned. More...
 
NLGEOMETRY_API void vertices (Vertices &vertices_) const
 Method that return a vector of the vertices contained in the table. More...
 

Detailed Description

Definition at line 33 of file SpatialHashTable.h.

Constructor & Destructor Documentation

NLGEOMETRY_API nlgeometry::SpatialHashTable::SpatialHashTable ( unsigned int  size_ = 100000,
float  cellSize_ = 0.1f,
float  tolerance_ = 0.00001f,
unsigned int  primeX_ = 73856093,
unsigned int  primeY_ = 19349663,
unsigned int  primeZ_ = 83492791 
)

Default Constructor.

Parameters
size_number of Spatial Hash Table cells
cellSize_size of the cells
tolerance_vertices position comparison tolerance
prime0_X axis prime number of the hash function
prime1_Y axis prime number of the hash function
prime2_Z axis prime number of the hash function

Member Function Documentation

NLGEOMETRY_API VertexPtr nlgeometry::SpatialHashTable::insert ( const VertexPtr vertex_)

Method that return a pointer to a vertex in the table with the same position of the given vertex if the is not vertex with the same position the given vertex will be inserted in the table and returned.

Parameters
vertex_vertex pointer to be inserted in the table
Returns
vertex pointer to the inserted vertex or equivalent
NLGEOMETRY_API void nlgeometry::SpatialHashTable::vertices ( Vertices &  vertices_) const

Method that return a vector of the vertices contained in the table.

Returns
a list of vector of vertices contained in the table

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