Point Cloud Library (PCL)
1.11.1-dev
|
55 template <
typename Po
intInT,
typename DataT = Po
intInT>
57 template <
typename T,
typename U,
typename V>
61 using NeighborListT = std::list<OctreePointCloudAdjacencyContainer<PointInT, DataT>*>;
67 return (neighbors_.begin());
72 return (neighbors_.end());
78 return neighbors_.size();
93 return neighbors_.size();
134 return (neighbors_.begin());
139 return (neighbors_.end());
150 return new_container;
175 num_points_ = points_arg;
193 neighbors_.push_back(neighbor);
202 for (
iterator neighb_it = neighbors_.begin(); neighb_it != neighbors_.end();
204 if (*neighb_it == neighbor) {
205 neighbors_.erase(neighb_it);
217 neighbors_ = neighbor_arg;
const_iterator cbegin() const
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.