Point Cloud Library (PCL)
1.10.1
|
53 template <
typename Po
intInT,
typename DataT = Po
intInT>
55 template <
typename T,
typename U,
typename V>
59 using NeighborListT = std::list<OctreePointCloudAdjacencyContainer<PointInT, DataT>*>;
65 return (neighbors_.begin());
70 return (neighbors_.end());
76 return neighbors_.size();
91 return neighbors_.size();
132 return (neighbors_.begin());
137 return (neighbors_.end());
148 return new_container;
173 num_points_ = points_arg;
191 neighbors_.push_back(neighbor);
200 for (
iterator neighb_it = neighbors_.begin(); neighb_it != neighbors_.end();
202 if (*neighb_it == neighbor) {
203 neighbors_.erase(neighb_it);
215 neighbors_ = neighbor_arg;
const_iterator cbegin() const
This file defines compatibility wrappers for low level I/O functions.
int getPointCounter() const
Gets the number of points contributing to this leaf.
virtual OctreePointCloudAdjacencyContainer * deepCopy() const
deep copy function
void setData(const DataT &data_arg)
Sets the data member.
typename NeighborListT::const_iterator const_iterator
void reset() override
Clear the voxel centroid.
std::size_t getNumNeighbors() const
Returns the number of neighbors this leaf has.
void addNeighbor(OctreePointCloudAdjacencyContainer *neighbor)
Add new neighbor to voxel.
~OctreePointCloudAdjacencyContainer()
Empty class deconstructor.
Octree adjacency leaf container class- stores a list of pointers to neighbors, number of points added...
void setNeighbors(const NeighborListT &neighbor_arg)
Sets the whole neighbor set.
typename NeighborListT::iterator iterator
Octree pointcloud voxel class which maintains adjacency information for its voxels.
const_iterator cend() const
DataT & getData()
Returns a reference to the data member to access it without copying.
OctreePointCloudAdjacencyContainer()
Class initialization.
void setPointCounter(int points_arg)
Sets the number of points contributing to this leaf.
std::list< OctreePointCloudAdjacencyContainer< PointInT, DataT > * > NeighborListT
void addPoint(const PointInT &)
Add new point to container- this just counts points.
void removeNeighbor(OctreePointCloudAdjacencyContainer *neighbor)
Remove neighbor from neighbor set.
std::size_t getSize() const override
virtual method to get size of container
void computeData()
Function for working on data added.
Octree container class that can serve as a base to construct own leaf node container classes.