PointKdTreeSearcher.hpp
Go to the documentation of this file.
~PointKdTreeSearcher() override=default
Default virtual destructor.
std::shared_ptr< PointNeighborSearcher< N > > Clone() const override
Creates a new instance of the object with same properties than original.
Front-end to create PointKdTreeSearcher objects step by step.
Definition: PointKdTreeSearcher.hpp:140
Abstract base class for N-D point neighbor searcher builders.
Definition: PointNeighborSearcher.hpp:119
std::function< void(size_t, const Vector< double, N > &)> ForEachNearbyPointFunc
Definition: PointNeighborSearcher.hpp:38
Abstract base class for N-D neighbor point searcher.
Definition: PointNeighborSearcher.hpp:32
static Builder GetBuilder()
Returns builder fox PointKdTreeSearcher.
PointKdTreeSearcher & operator=(const PointKdTreeSearcher &other)
Copy assignment operator.
Definition: Matrix.hpp:27
Definition: pybind11Utils.hpp:20
#define CUBBYFLOW_NEIGHBOR_SEARCHER_TYPE_NAME(DerivedClassName, N)
Definition: PointNeighborSearcher.hpp:163
std::shared_ptr< PointKdTreeSearcher2 > PointKdTreeSearcher2Ptr
Shared pointer for the PointKdTreeSearcher2 type.
Definition: PointKdTreeSearcher.hpp:131
void Deserialize(const std::vector< uint8_t > &buffer) override
Deserializes the neighbor searcher from the buffer.
void Build(const ConstArrayView1< Vector< double, N >> &points, double maxSearchRadius) override
PointKdTreeSearcher()=default
Constructs an empty kD-tree instance.
void Set(const PointKdTreeSearcher &other)
Copy from the other instance.
std::shared_ptr< PointKdTreeSearcher3 > PointKdTreeSearcher3Ptr
Shared pointer for the PointKdTreeSearcher3 type.
Definition: PointKdTreeSearcher.hpp:134
bool HasNearbyPoint(const Vector< double, N > &origin, double radius) const override
void Serialize(std::vector< uint8_t > *buffer) const override
Serializes the neighbor searcher into the buffer.
void ForEachNearbyPoint(const Vector< double, N > &origin, double radius, const ForEachNearbyPointFunc &callback) const override
KdTree-based N-D point searcher.
Definition: PointKdTreeSearcher.hpp:26