PointParallelHashGridSearcher2.h
Go to the documentation of this file.
76 void ForEachNearbyPoint(const Vector2D& origin, double radius, const ForEachNearbyPointFunc& callback) const override;
Builder & WithResolution(const Size2 &resolution)
Returns builder with resolution.
Builder & WithGridSpacing(double gridSpacing)
Returns builder with grid spacing.
void Serialize(std::vector< uint8_t > *buffer) const override
Serializes the neighbor searcher into the buffer.
PointParallelHashGridSearcher2 Build() const
Builds PointParallelHashGridSearcher2 instance.
size_t GetHashKeyFromBucketIndex(const Point2I &bucketIndex) const
PointParallelHashGridSearcher2(const Size2 &resolution, double gridSpacing)
Constructs hash grid with given resolution and grid spacing.
const std::vector< size_t > & SortedIndices() const
Returns the sorted indices of the points.
void Deserialize(const std::vector< uint8_t > &buffer) override
Deserializes the neighbor searcher from the buffer.
const std::vector< size_t > & EndIndexTable() const
Returns the end index table.
std::function< void(size_t, const Vector2D &)> ForEachNearbyPointFunc
Definition: PointNeighborSearcher2.h:34
#define CUBBYFLOW_NEIGHBOR_SEARCHER2_TYPE_NAME(DerivedClassName)
Definition: PointNeighborSearcher2.h:94
1-D read-only array accessor class.
Definition: ArrayAccessor1.h:185
bool HasNearbyPoint(const Vector2D &origin, double radius) const override
Abstract base class for 2-D point neighbor searcher builders.
Definition: PointNeighborSearcher2.h:82
Definition: pybind11Utils.h:24
Abstract base class for 2-D neighbor point searcher.
Definition: PointNeighborSearcher2.h:29
PointParallelHashGridSearcher2Ptr MakeShared() const
Builds shared pointer of PointParallelHashGridSearcher2 instance.
const std::vector< size_t > & StartIndexTable() const
Returns the start index table.
PointNeighborSearcher2Ptr Clone() const override
Creates a new instance of the object with same properties than original.
PointParallelHashGridSearcher2 & operator=(const PointParallelHashGridSearcher2 &other)
Assignment operator.
void Build(const ConstArrayAccessor1< Vector2D > &points) override
Builds internal acceleration structure for given points list.
void ForEachNearbyPoint(const Vector2D &origin, double radius, const ForEachNearbyPointFunc &callback) const override
Point2I GetBucketIndex(const Vector2D &position) const
std::shared_ptr< PointNeighborSearcher2 > PointNeighborSearcher2Ptr
Shared pointer for the PointNeighborSearcher2 type.
Definition: PointNeighborSearcher2.h:79
const std::vector< size_t > & Keys() const
Returns the hash key list.
void Set(const PointParallelHashGridSearcher2 &other)
Copy from the other instance.
static Builder GetBuilder()
Returns builder fox PointParallelHashGridSearcher2.
PointNeighborSearcher2Ptr BuildPointNeighborSearcher() const override
Returns shared pointer of PointNeighborSearcher3 type.
Front-end to create PointParallelHashGridSearcher2 objects step by step.
Definition: PointParallelHashGridSearcher2.h:222
Parallel version of hash grid-based 2-D point searcher.
Definition: PointParallelHashGridSearcher2.h:24
std::shared_ptr< PointParallelHashGridSearcher2 > PointParallelHashGridSearcher2Ptr
Shared pointer for the PointParallelHashGridSearcher2 type.
Definition: PointParallelHashGridSearcher2.h:217