PointKdTreeSearcher2.h
Go to the documentation of this file.
PointKdTreeSearcher2 & operator=(const PointKdTreeSearcher2 &other)
Assignment operator.
PointNeighborSearcher2Ptr BuildPointNeighborSearcher() const override
Returns shared pointer of PointNeighborSearcher3 type.
void ForEachNearbyPoint(const Vector2D &origin, double radius, const ForEachNearbyPointFunc &callback) const override
void Set(const PointKdTreeSearcher2 &other)
Copy from the other instance.
Front-end to create PointKdTreeSearcher2 objects step by step.
Definition: PointKdTreeSearcher2.h:95
void Serialize(std::vector< uint8_t > *buffer) const override
Serializes the neighbor searcher into the buffer.
bool HasNearbyPoint(const Vector2D &origin, double radius) const override
PointNeighborSearcher2Ptr Clone() const override
Creates a new instance of the object with same properties than original.
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
KdTree-based 2-D point searcher.
Definition: PointKdTreeSearcher2.h:23
PointKdTreeSearcher2 Build() const
Builds PointKdTreeSearcher2 instance.
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
static Builder GetBuilder()
Returns builder fox PointKdTreeSearcher2.
std::shared_ptr< PointKdTreeSearcher2 > PointKdTreeSearcher2Ptr
Shared pointer for the PointKdTreeSearcher2 type.
Definition: PointKdTreeSearcher2.h:90
void Deserialize(const std::vector< uint8_t > &buffer) override
Deserializes the neighbor searcher from the buffer.
void Build(const ConstArrayAccessor1< Vector2D > &points) override
Builds internal acceleration structure for given points list.
std::shared_ptr< PointNeighborSearcher2 > PointNeighborSearcher2Ptr
Shared pointer for the PointNeighborSearcher2 type.
Definition: PointNeighborSearcher2.h:79
PointKdTreeSearcher2Ptr MakeShared() const
Builds shared pointer of PointKdTreeSearcher2 instance.
PointKdTreeSearcher2()
Constructs an empty kD-tree instance.