#include <octree.h>
Classes | |
struct | BoundingBox |
Public Types | |
using | Data = typename DP::Index |
using | DataContainer = std::vector< Data > |
using | DP = typename PM::DataPoints |
using | Id = typename DP::Index |
using | PM = PointMatcher< T > |
using | Point = Eigen::Matrix< T, dim, 1 > |
Public Member Functions | |
bool | build (const DP &pts, size_t maxDataByNode=1, T maxSizeByNode=T(0.), bool parallelBuild=false) |
Point | getCenter () const |
DataContainer * | getData () |
std::size_t | getDepth () const |
T | getRadius () const |
std::size_t | idx (const Point &pt) const |
std::size_t | idx (const DP &pts, const Data d) const |
bool | isEmpty () const |
bool | isLeaf () const |
bool | isRoot () const |
Octree_ () | |
Octree_ (const Octree_< T, dim > &o) | |
Octree_ (Octree_< T, dim > &&o) | |
Octree_< T, dim > & | operator= (const Octree_< T, dim > &o) |
Octree_< T, dim > & | operator= (Octree_< T, dim > &&o) |
Octree_< T, dim > * | operator[] (std::size_t idx) |
template<typename Callback > | |
bool | visit (Callback &cb) |
virtual | ~Octree_ () |
Static Public Attributes | |
static constexpr std::size_t | nbCells = PointMatcherSupport::pow(2, dim) |
Protected Member Functions | |
bool | build (const DP &pts, DataContainer &&datas, BoundingBox &&bb, size_t maxDataByNode=1, T maxSizeByNode=T(0.), bool parallelBuild=false) |
DataContainer | toData (const DP &pts, const std::vector< Id > &ids) |
Private Attributes | |
BoundingBox | bb |
Octree_ * | cells [nbCells] |
DataContainer | data |
std::size_t | depth |
Octree_ * | parent |
using Octree_< T, dim >::DataContainer = std::vector<Data> |
using Octree_< T, dim >::DP = typename PM::DataPoints |
using Octree_< T, dim >::PM = PointMatcher<T> |
using Octree_< T, dim >::Point = Eigen::Matrix<T,dim,1> |
Definition at line 42 of file octree.hpp.
Definition at line 48 of file octree.hpp.
Definition at line 74 of file octree.hpp.
Definition at line 97 of file octree.hpp.
bool Octree_< T, dim >::build | ( | const DP & | pts, |
size_t | maxDataByNode = 1 , |
||
T | maxSizeByNode = T(0.) , |
||
bool | parallelBuild = false |
||
) |
Definition at line 231 of file octree.hpp.
|
protected |
Definition at line 304 of file octree.hpp.
Octree_< T, dim >::Point Octree_< T, dim >::getCenter | ( | ) | const |
Definition at line 207 of file octree.hpp.
Octree_< T, dim >::DataContainer * Octree_< T, dim >::getData | ( | ) |
Definition at line 212 of file octree.hpp.
size_t Octree_< T, dim >::getDepth | ( | ) | const |
Definition at line 197 of file octree.hpp.
T Octree_< T, dim >::getRadius | ( | ) | const |
Definition at line 202 of file octree.hpp.
|
inline |
Definition at line 181 of file octree.hpp.
|
inline |
Definition at line 192 of file octree.hpp.
bool Octree_< T, dim >::isEmpty | ( | ) | const |
Definition at line 176 of file octree.hpp.
bool Octree_< T, dim >::isLeaf | ( | ) | const |
Definition at line 166 of file octree.hpp.
bool Octree_< T, dim >::isRoot | ( | ) | const |
Definition at line 171 of file octree.hpp.
Octree_< T, dim > & Octree_< T, dim >::operator= | ( | const Octree_< T, dim > & | o | ) |
Definition at line 106 of file octree.hpp.
Octree_< T, dim > & Octree_< T, dim >::operator= | ( | Octree_< T, dim > && | o | ) |
Definition at line 135 of file octree.hpp.
Octree_< T, dim > * Octree_< T, dim >::operator[] | ( | std::size_t | idx | ) |
Definition at line 217 of file octree.hpp.
|
inlineprotected |
Definition at line 224 of file octree.hpp.
bool Octree_< T, dim >::visit | ( | Callback & | cb | ) |
Definition at line 373 of file octree.hpp.
|
private |
|
private |
|
private |
|
static |