#include <PointCloud.hpp>
Helper class for KDTree with appropriate accessors containing a set of points.
Definition at line 18 of file PointCloud.hpp.
Public Member Functions | |
PointCloud ()=default | |
Construct an empty point set. More... | |
PointCloud (const std::vector< vec_t > &pts) | |
Construct from an array of points. More... | |
void | setPts (const std::vector< vec_t > &pts) |
Reset contained points. More... | |
int | kdtree_get_point_count () const |
Interface requirement: returns number of data points. More... | |
vec_t::scalar_t | kdtree_get_pt (const size_t idx, int dim) const |
Interface requirement: returns dim -th coordinate of idx -th point. More... | |
vec_t | get (const size_t idx) const |
Access the points. More... | |
void | add (const vec_t &p) |
Add a point to the cloud. More... | |
template<class BBOX > | |
bool | kdtree_get_bbox (BBOX &) const |
Comply with the interface. More... | |
Public Attributes | |
std::vector< vec_t > | pts |
Points, contained in the tree. More... | |
|
default |
Construct an empty point set.
|
inline |
Construct from an array of points.
Definition at line 25 of file PointCloud.hpp.
|
inline |
Add a point to the cloud.
Definition at line 44 of file PointCloud.hpp.
|
inline |
Access the points.
Definition at line 41 of file PointCloud.hpp.
|
inline |
Comply with the interface.
Definition at line 48 of file PointCloud.hpp.
|
inline |
Interface requirement: returns number of data points.
Definition at line 33 of file PointCloud.hpp.
|
inline |
Interface requirement: returns dim
-th coordinate of idx
-th point.
Definition at line 36 of file PointCloud.hpp.
|
inline |
Reset contained points.
Definition at line 28 of file PointCloud.hpp.
std::vector<vec_t> mm::kdtree_internal::PointCloud< vec_t >::pts |
Points, contained in the tree.
Definition at line 19 of file PointCloud.hpp.