27 #ifndef MPBLOCKS_KD_TREE_EUCLIDEAN_BLOCKS_KNEARESTBALL_H_
28 #define MPBLOCKS_KD_TREE_EUCLIDEAN_BLOCKS_KNEARESTBALL_H_
37 template <
class Traits,
38 template<
class>
class Allocator = std::allocator >
45 typedef Eigen::Matrix<Format_t,Traits::NDim,1>
Point_t;
73 typename PQueue_t::const_iterator iKey;
74 for( iKey = list.begin(); iKey != list.end(); ++iKey )
81 sigc::slot<void,const Point_t&,Format_t,unsigned int>
slot_search()
101 #endif // NEARESTNEIGHBOR_H_
std::set< Key_t, KeyCompare_t, Allocator_t > PQueue_t
KNearestBall(Tree_t *tree=0)
void findNearest(const Point_t &q, NNIface_t &search)
generic NN search, specific search depends on the implementing class of the NNIface ...
const PQueue_t & result()
euclidean::KNearestBall< Traits, Allocator > Search_t
Eigen::Matrix< Format_t, Traits::NDim, 1 > Point_t
KNearestBall< Traits, Allocator > This_t
void setTree(Tree_t *tree)
the node class must be defined in traits since it uses the CTRP, it must derive from kd_tree::Node<Tr...
void search(const Point_t &q, Format_t r, unsigned int k)
Search_t::PQueue_t PQueue_t
sigc::slot< void, const Point_t &, Format_t, unsigned int > slot_search()
Traits::Format_t Format_t
sigc::signal< void, Node_t * > sig_result
double Format_t
number format (i.e. double, float)