KdTree.hpp
Go to the documentation of this file.
std::vector< Node > NodeContainerType
Definition: KdTree.hpp:58
void Reserve(size_t numPoints, size_t numNodes)
Reserves memory space for this tree.
Definition: KdTree-Impl.hpp:264
NodeIterator EndNode()
Returns the mutable end iterator of the node.
Definition: KdTree-Impl.hpp:301
typename ContainerType::const_iterator ConstIterator
Definition: KdTree.hpp:56
typename NodeContainerType::iterator NodeIterator
Definition: KdTree.hpp:59
Iterator begin()
Returns the mutable begin iterator of the item.
Definition: KdTree-Impl.hpp:271
bool IsLeaf() const
Returns true if leaf.
Definition: KdTree-Impl.hpp:38
bool HasNearbyPoint(const Point &origin, T radius) const
Definition: KdTree-Impl.hpp:130
NodeIterator BeginNode()
Returns the mutable begin iterator of the node.
Definition: KdTree-Impl.hpp:295
Definition: Matrix.hpp:27
void InitInternal(size_t axis, size_t it, size_t c, const Point &pt)
Initializes internal node.
Definition: KdTree-Impl.hpp:28
size_t GetNearestPoint(const Point &origin) const
Returns index of the nearest point.
Definition: KdTree-Impl.hpp:196
Definition: pybind11Utils.hpp:20
typename NodeContainerType::const_iterator ConstNodeIterator
Definition: KdTree.hpp:60
std::vector< Point > ContainerType
Definition: KdTree.hpp:54
void Build(const ConstArrayView1< Point > &points)
Builds internal acceleration structure for given points list.
Definition: KdTree-Impl.hpp:44
size_t flags
Split axis if flags < K, leaf indicator if flags == K.
Definition: KdTree.hpp:41
size_t child
Right child index. Note that left child index is this node index + 1.
Definition: KdTree.hpp:45
Iterator end()
Returns the mutable end iterator of the item.
Definition: KdTree-Impl.hpp:277
typename ContainerType::iterator Iterator
Definition: KdTree.hpp:55
void ForEachNearbyPoint(const Point &origin, T radius, const std::function< void(size_t, const Point &)> &callback) const
Definition: KdTree-Impl.hpp:64
void InitLeaf(size_t it, const Point &pt)
Initializes leaf node.
Definition: KdTree-Impl.hpp:19