This class is the base class of neighbor search algorithms.
Public Attributes | |
SBBuffer< SBVector< unsigned int > * > * | neighborVectorBuffer |
The buffer containing the neighbor lists associated to each particle. | |
SBBuffer< SBPosition3 > * | positionBuffer |
The buffer containing the positions. | |
SBHashMap< GridKey, GridCell *, GridKeyFunctor, GridKeyComparator > * | grid |
SBVector< GridKey > * | gridKeyVector |
Destructor | |
SBSNeighborSearchPositionGrid (const SBVector< SBPosition3 > &positionVector, const SBQuantity::length &cutoffDistance) | |
Constructs a neighbor search grid. | |
virtual | ~SBSNeighborSearchPositionGrid () |
Destroys the neighbor search grid. | |
Neighbor search | |
virtual bool | hasNeighbors (const SBPosition3 &position, const SBQuantity::length &radius) const |
Returns true if there are neighbors within radius of position . | |
virtual void | getNeighbors (SBVector< unsigned int > &neighborVector, const SBPosition3 &position, const SBQuantity::length &radius) const |
Returns all structural particles that are at a distance smaller than or equal to radius from the specified position . | |
Grid attributes | |
SBQuantity::squareLength * | cutoffDistanceSquared |
SBQuantity::inverseLength * | inverseCutoffDistance |
Particle attributes | |
SBIndexer< unsigned int > * | particleIndexer |
The particle system the neighbor search algorithm is attached to. | |
Additional Inherited Members | |
![]() | |
virtual | ~SBSNeighborSearch () |
virtual void | print (unsigned int offset=0) const |
![]() | |
SBCReferenceTarget () | |
virtual | ~SBCReferenceTarget () |
unsigned int | getMemoryFootprint () const |
void | printReferencesToOwners () const |
![]() | |
void | removeAllReferenceOwners () |
SBCReferenceTarget (SBCReferenceTargetData *dataPointer) | |
![]() | |
SBCReferenceTargetData * | dataPointer |