PointHashGridSearcher.hpp
Go to the documentation of this file.
Front-end to create PointHashGridSearcher objects step by step.
Definition: PointHashGridSearcher.hpp:176
std::shared_ptr< PointHashGridSearcher2 > PointHashGridSearcher2Ptr
Shared pointer for the PointHashGridSearcher2 type.
Definition: PointHashGridSearcher.hpp:167
void Set(const PointHashGridSearcher &other)
Copy from the other instance.
Abstract base class for N-D point neighbor searcher builders.
Definition: PointNeighborSearcher.hpp:119
void Build(const ConstArrayView1< Vector< double, N >> &points, double maxSearchRadius) override
void ForEachNearbyPoint(const Vector< double, N > &origin, double radius, const ForEachNearbyPointFunc &callback) const override
PointHashGridSearcher(const Vector< size_t, N > &resolution, double gridSpacing)
Constructs hash grid with given resolution and grid spacing.
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
Definition: Matrix.hpp:27
static std::enable_if_t< IsMatrixSizeStatic< Rows, Cols >), D > MakeConstant(ValueType val)
Makes a static matrix with constant entries.
Definition: MatrixDenseBase-Impl.hpp:152
static Builder GetBuilder()
Returns builder fox PointHashGridSearcher.
Definition: pybind11Utils.hpp:20
void Add(const Vector< double, N > &point)
Adds a single point to the hash grid.
Definition: Array-Impl.hpp:19
#define CUBBYFLOW_NEIGHBOR_SEARCHER_TYPE_NAME(DerivedClassName, N)
Definition: PointNeighborSearcher.hpp:163
Hash grid-based N-D point searcher.
Definition: PointHashGridSearcher.hpp:28
bool HasNearbyPoint(const Vector< double, N > &origin, double radius) const override
PointHashGridSearcher & operator=(const PointHashGridSearcher &other)
Copy assignment operator.
void Serialize(std::vector< uint8_t > *buffer) const override
Serializes the neighbor searcher into the buffer.
std::shared_ptr< PointHashGridSearcher3 > PointHashGridSearcher3Ptr
Shared pointer for the PointHashGridSearcher3 type.
Definition: PointHashGridSearcher.hpp:170
const Array1< Array1< size_t > > & Buckets() const
Returns the internal bucket.
void Deserialize(const std::vector< uint8_t > &buffer) override
Deserializes the neighbor searcher from the buffer.
~PointHashGridSearcher() 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.