KdTree.h
Go to the documentation of this file.
std::vector< Node > NodeContainerType
Definition: KdTree.h:58
void Reserve(size_t numPoints, size_t numNodes)
Reserves memory space for this tree.
Definition: KdTree-Impl.h:270
NodeIterator EndNode()
Returns the mutable end iterator of the node.
Definition: KdTree-Impl.h:307
typename ContainerType::const_iterator ConstIterator
Definition: KdTree.h:56
typename NodeContainerType::iterator NodeIterator
Definition: KdTree.h:59
Iterator begin()
Returns the mutable begin iterator of the item.
Definition: KdTree-Impl.h:277
bool IsLeaf() const
Returns true if leaf.
Definition: KdTree-Impl.h:41
bool HasNearbyPoint(const Point &origin, T radius) const
Definition: KdTree-Impl.h:137
1-D read-only array accessor class.
Definition: ArrayAccessor1.h:185
NodeIterator BeginNode()
Returns the mutable begin iterator of the node.
Definition: KdTree-Impl.h:301
void InitInternal(size_t axis, size_t it, size_t c, const Point &pt)
Initializes internal node.
Definition: KdTree-Impl.h:32
size_t GetNearestPoint(const Point &origin) const
Returns index of the nearest point.
Definition: KdTree-Impl.h:202
Definition: pybind11Utils.h:24
typename NodeContainerType::const_iterator ConstNodeIterator
Definition: KdTree.h:60
std::vector< Point > ContainerType
Definition: KdTree.h:54
size_t flags
Split axis if flags < K, leaf indicator if flags == K.
Definition: KdTree.h:29
void Build(const ConstArrayAccessor1< Point > &points)
Builds internal acceleration structure for given points list.
Definition: KdTree-Impl.h:53
size_t child
Right child index. Note that left child index is this node index + 1.
Definition: KdTree.h:33
Iterator end()
Returns the mutable end iterator of the item.
Definition: KdTree-Impl.h:283
typename ContainerType::iterator Iterator
Definition: KdTree.h:55
void ForEachNearbyPoint(const Point &origin, T radius, const std::function< void(size_t, const Point &)> &callback) const
Definition: KdTree-Impl.h:72
void InitLeaf(size_t it, const Point &pt)
Initializes leaf node.
Definition: KdTree-Impl.h:23