Go to the documentation of this file.
7 #ifndef INCLUDE_JET_POINT_KDTREE_SEARCHER3_H
8 #define INCLUDE_JET_POINT_KDTREE_SEARCHER3_H
49 const Vector3D& 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_SEARCHER3_H
void forEachNearbyPoint(const Vector3D &origin, double radius, const ForEachNearbyPointFunc &callback) const override
std::shared_ptr< PointKdTreeSearcher3 > PointKdTreeSearcher3Ptr
Shared pointer for the PointKdTreeSearcher3 type.
Definition: point_kdtree_searcher3.h:91
KdTree-based 3-D point searcher.
Definition: point_kdtree_searcher3.h:25
void set(const PointKdTreeSearcher3 &other)
Copy from the other instance.
PointKdTreeSearcher3 & operator=(const PointKdTreeSearcher3 &other)
Assignment operator.
bool hasNearbyPoint(const Vector3D &origin, double radius) const override
1-D read-only array accessor class.
Definition: array_accessor1.h:184
PointNeighborSearcher3Ptr 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.
Front-end to create PointKdTreeSearcher3 objects step by step.
Definition: point_kdtree_searcher3.h:97
void serialize(std::vector< uint8_t > *buffer) const override
Serializes the neighbor searcher into the buffer.
Definition: advection_solver2.h:18
PointNeighborSearcher3Ptr buildPointNeighborSearcher() const override
Returns shared pointer of PointNeighborSearcher3 type.
PointKdTreeSearcher3(const PointKdTreeSearcher3 &other)
Copy constructor.
PointKdTreeSearcher3Ptr makeShared() const
Builds shared pointer of PointKdTreeSearcher3 instance.
PointKdTreeSearcher3()
Constructs an empty kD-tree instance.
Abstract base class for 3-D neighbor point searcher.
Definition: point_neighbor_searcher3.h:28
std::function< void(size_t, const Vector3D &)> ForEachNearbyPointFunc
Definition: point_neighbor_searcher3.h:33
void build(const ConstArrayAccessor1< Vector3D > &points) override
Builds internal acceleration structure for given points list.
#define JET_NEIGHBOR_SEARCHER3_TYPE_NAME(DerivedClassName)
Definition: point_neighbor_searcher3.h:95
PointKdTreeSearcher3 build() const
Builds PointKdTreeSearcher3 instance.
std::shared_ptr< PointNeighborSearcher3 > PointNeighborSearcher3Ptr
Shared pointer for the PointNeighborSearcher3 type.
Definition: point_neighbor_searcher3.h:82
3-D vector class.
Definition: vector3.h:25
Abstract base class for 3-D point neighbor searcher builders.
Definition: point_neighbor_searcher3.h:85
static Builder builder()
Returns builder fox PointKdTreeSearcher3.