27 #ifndef MPBLOCKS_KD_TREE_EUCLIDEAN_BLOCKS_KNEARESTBALLCENTER_H_
28 #define MPBLOCKS_KD_TREE_EUCLIDEAN_BLOCKS_KNEARESTBALLCENTER_H_
38 template <
class Traits,
39 template<
class>
class Allocator = std::allocator >
46 typedef Eigen::Matrix<Format_t,Traits::NDim,1>
Point_t;
75 typename PQueue_t::const_iterator iKey;
76 for( iKey = list.begin(); iKey != list.end(); ++iKey )
83 sigc::slot<void,const Point_t&,const Point_t&,Format_t,unsigned int>
performs search for k-NN within a ball at a specified center and radius
const PQueue_t & result()
Search_t::PQueue_t PQueue_t
void reset(const Point_t ¢er, Format_t radius, unsigned int k)
resets the search for the specified point
void findNearest(const Point_t &q, NNIface_t &search)
generic NN search, specific search depends on the implementing class of the NNIface ...
euclidean::KNearestBallCenter< Traits, Allocator > Search_t
performs search for k-NN within a ball at a specified center and radius
Eigen::Matrix< Format_t, Traits::NDim, 1 > Point_t
void search(const Point_t &q, const Point_t &c, Format_t r, unsigned int k)
KNearestBallCenter(Tree_t *tree=0)
the node class must be defined in traits since it uses the CTRP, it must derive from kd_tree::Node<Tr...
std::set< Key_t, KeyCompare_t, Allocator_t > PQueue_t
sigc::signal< void, Node_t * > sig_result
void setTree(Tree_t *tree)
KNearestBallCenter< Traits, Allocator > This_t
double Format_t
number format (i.e. double, float)
sigc::slot< void, const Point_t &, const Point_t &, Format_t, unsigned int > slot_search()
Traits::Format_t Format_t