Go to the documentation of this file.
7 #ifndef INCLUDE_JET_POINT_KDTREE_SEARCHER2_H
8 #define INCLUDE_JET_POINT_KDTREE_SEARCHER2_H
49 const Vector2D& origin,
double radius,
78 void serialize(std::vector<uint8_t>* buffer)
const override;
81 void deserialize(
const std::vector<uint8_t>& buffer)
override;
111 #endif // INCLUDE_JET_POINT_KDTREE_SEARCHER2_H
#define JET_NEIGHBOR_SEARCHER2_TYPE_NAME(DerivedClassName)
Definition: point_neighbor_searcher2.h:95
PointNeighborSearcher2Ptr clone() const override
Creates a new instance of the object with same properties than original.
void deserialize(const std::vector< uint8_t > &buffer) override
Deserializes the neighbor searcher from the buffer.
void set(const PointKdTreeSearcher2 &other)
Copy from the other instance.
1-D read-only array accessor class.
Definition: array_accessor1.h:184
PointKdTreeSearcher2()
Constructs an empty kD-tree instance.
PointKdTreeSearcher2(const PointKdTreeSearcher2 &other)
Copy constructor.
std::shared_ptr< PointNeighborSearcher2 > PointNeighborSearcher2Ptr
Shared pointer for the PointNeighborSearcher2 type.
Definition: point_neighbor_searcher2.h:82
Front-end to create PointKdTreeSearcher2 objects step by step.
Definition: point_kdtree_searcher2.h:97
PointNeighborSearcher2Ptr buildPointNeighborSearcher() const override
Returns shared pointer of PointNeighborSearcher3 type.
std::shared_ptr< PointKdTreeSearcher2 > PointKdTreeSearcher2Ptr
Shared pointer for the PointKdTreeSearcher2 type.
Definition: point_kdtree_searcher2.h:91
void serialize(std::vector< uint8_t > *buffer) const override
Serializes the neighbor searcher into the buffer.
Definition: advection_solver2.h:18
2-D vector class.
Definition: vector2.h:24
KdTree-based 2-D point searcher.
Definition: point_kdtree_searcher2.h:25
void build(const ConstArrayAccessor1< Vector2D > &points) override
Builds internal acceleration structure for given points list.
PointKdTreeSearcher2Ptr makeShared() const
Builds shared pointer of PointKdTreeSearcher2 instance.
std::function< void(size_t, const Vector2D &)> ForEachNearbyPointFunc
Definition: point_neighbor_searcher2.h:33
Abstract base class for 2-D point neighbor searcher builders.
Definition: point_neighbor_searcher2.h:85
bool hasNearbyPoint(const Vector2D &origin, double radius) const override
PointKdTreeSearcher2 & operator=(const PointKdTreeSearcher2 &other)
Assignment operator.
Abstract base class for 2-D neighbor point searcher.
Definition: point_neighbor_searcher2.h:28
void forEachNearbyPoint(const Vector2D &origin, double radius, const ForEachNearbyPointFunc &callback) const override
PointKdTreeSearcher2 build() const
Builds PointKdTreeSearcher2 instance.
static Builder builder()
Returns builder fox PointKdTreeSearcher2.