#include <KdTree.hpp>
Public Types | |
using | const_iterator = typename Traits::const_iterator |
template<typename TDistSq > | |
using | DistanceComp = typename Traits::DistCompTraits::template DistanceComp< TDistSq > |
using | iterator = typename Traits::iterator |
using | PointGetter = typename Traits::PointGetter |
using | PointListType = typename Traits::PointListType |
using | PointType = typename Traits::PointType |
using | Traits = TTraits |
Public Member Functions | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
PREC | getGeometricMean (unsigned int axis) |
std::string | getPointString () |
PointData (iterator begin, iterator end, std::unique_ptr< PointListType > points=nullptr) | |
std::size_t | size () const |
std::pair< PointData *, PointData * > | split (iterator splitRightIt) const |
~PointData () | |
Static Public Attributes | |
static const unsigned int | Dimension = Traits::Dimension |
Private Attributes | |
iterator | m_begin |
iterator | m_end |
The actual range of m_points which this node contains. More... | |
PointListType * | m_points = nullptr |
Friends | |
class | XML |
Standart class for the node data type in the Tree
Definition at line 168 of file KdTree.hpp.
using ApproxMVBB::KdTree::PointData< TTraits >::const_iterator = typename Traits::const_iterator |
Definition at line 176 of file KdTree.hpp.
using ApproxMVBB::KdTree::PointData< TTraits >::DistanceComp = typename Traits::DistCompTraits::template DistanceComp<TDistSq> |
Definition at line 180 of file KdTree.hpp.
using ApproxMVBB::KdTree::PointData< TTraits >::iterator = typename Traits::iterator |
linear in memory!
Definition at line 175 of file KdTree.hpp.
using ApproxMVBB::KdTree::PointData< TTraits >::PointGetter = typename Traits::PointGetter |
Definition at line 177 of file KdTree.hpp.
using ApproxMVBB::KdTree::PointData< TTraits >::PointListType = typename Traits::PointListType |
Definition at line 174 of file KdTree.hpp.
using ApproxMVBB::KdTree::PointData< TTraits >::PointType = typename Traits::PointType |
Definition at line 173 of file KdTree.hpp.
using ApproxMVBB::KdTree::PointData< TTraits >::Traits = TTraits |
Definition at line 171 of file KdTree.hpp.
|
inline |
Constructor for the root node, which owns the pointer list All child nodes don't set m_points internally points
can be nullptr, such that kdTree is not responsible for the points!
Definition at line 189 of file KdTree.hpp.
|
inline |
Definition at line 192 of file KdTree.hpp.
|
inline |
Definition at line 218 of file KdTree.hpp.
|
inline |
Definition at line 227 of file KdTree.hpp.
|
inline |
Definition at line 222 of file KdTree.hpp.
|
inline |
Definition at line 231 of file KdTree.hpp.
|
inline |
Definition at line 208 of file KdTree.hpp.
|
inline |
Definition at line 240 of file KdTree.hpp.
|
inline |
Definition at line 236 of file KdTree.hpp.
|
inline |
Splits the data into two new node datas if the split heuristics wants a split
Definition at line 199 of file KdTree.hpp.
|
friend |
Definition at line 249 of file KdTree.hpp.
|
static |
Definition at line 172 of file KdTree.hpp.
|
private |
Definition at line 251 of file KdTree.hpp.
|
private |
The actual range of m_points which this node contains.
Definition at line 251 of file KdTree.hpp.
|
private |
Owned pointer to the points which is deleted in Ctor (if not nullptr)
Definition at line 254 of file KdTree.hpp.