PhyStar  v0.0.0 thu24
algo::KDTreeFlann< N_dim > Class Template Reference

#include <KDTreeFlann.hpp>

Collaboration diagram for algo::KDTreeFlann< N_dim >:

Public Member Functions

 KDTreeFlann ()
 
 ~KDTreeFlann ()
 
auto & BuildFromIterator (auto itbegion, auto itend, const size_t maxleaf=10)
 
std::pair< std::vector< uint32_t >, std::vector< Real > > Search (const Real pos[], const Real radius)
 

Private Types

using my_kd_tree_t = nanoflann::KDTreeSingleIndexAdaptor< nanoflann::L2_Simple_Adaptor< Real, PointCloud< Real > >, PointCloud< Real >, N_dim >
 

Private Attributes

PointCloud< Realcloud
 
my_kd_tree_tptr_index = nullptr
 
std::vector< nanoflann::ResultItem< uint32_t, Real > > ret_matches
 
std::vector< uint32_t > indices
 
std::vector< Realdist
 

Member Typedef Documentation

◆ my_kd_tree_t

template<int N_dim>
using algo::KDTreeFlann< N_dim >::my_kd_tree_t = nanoflann::KDTreeSingleIndexAdaptor< nanoflann::L2_Simple_Adaptor<Real, PointCloud<Real> >, PointCloud<Real>, N_dim >
private

Constructor & Destructor Documentation

◆ KDTreeFlann()

template<int N_dim>
algo::KDTreeFlann< N_dim >::KDTreeFlann ( )
inline

◆ ~KDTreeFlann()

template<int N_dim>
algo::KDTreeFlann< N_dim >::~KDTreeFlann ( )
inline

Member Function Documentation

◆ BuildFromIterator()

template<int N_dim>
auto& algo::KDTreeFlann< N_dim >::BuildFromIterator ( auto  itbegion,
auto  itend,
const size_t  maxleaf = 10 
)
inline

◆ Search()

template<int N_dim>
std::pair<std::vector<uint32_t>, std::vector<Real> > algo::KDTreeFlann< N_dim >::Search ( const Real  pos[],
const Real  radius 
)
inline

Member Data Documentation

◆ cloud

template<int N_dim>
PointCloud<Real> algo::KDTreeFlann< N_dim >::cloud
private

◆ dist

template<int N_dim>
std::vector<Real> algo::KDTreeFlann< N_dim >::dist
private

◆ indices

template<int N_dim>
std::vector<uint32_t> algo::KDTreeFlann< N_dim >::indices
private

◆ ptr_index

template<int N_dim>
my_kd_tree_t* algo::KDTreeFlann< N_dim >::ptr_index = nullptr
private

◆ ret_matches

template<int N_dim>
std::vector<nanoflann::ResultItem<uint32_t, Real> > algo::KDTreeFlann< N_dim >::ret_matches
private

The documentation for this class was generated from the following file: