Point Cloud Library (PCL)
1.11.1
|
Octree adjacency leaf container class- stores a list of pointers to neighbors, number of points added, and a DataT value More...
#include <pcl/octree/octree_pointcloud_adjacency_container.h>
Public Types | |
using | NeighborListT = std::list< OctreePointCloudAdjacencyContainer< PointInT, DataT > * > |
using | const_iterator = typename NeighborListT::const_iterator |
Public Member Functions | |
const_iterator | cbegin () const |
const_iterator | cend () const |
std::size_t | size () const |
OctreePointCloudAdjacencyContainer () | |
Class initialization. More... | |
~OctreePointCloudAdjacencyContainer () | |
Empty class deconstructor. More... | |
std::size_t | getNumNeighbors () const |
Returns the number of neighbors this leaf has. More... | |
int | getPointCounter () const |
Gets the number of points contributing to this leaf. More... | |
DataT & | getData () |
Returns a reference to the data member to access it without copying. More... | |
void | setData (const DataT &data_arg) |
Sets the data member. More... | |
std::size_t | getSize () const override |
virtual method to get size of container More... | |
![]() | |
virtual | ~OctreeContainerBase ()=default |
virtual bool | operator== (const OctreeContainerBase &) const |
Equal comparison operator. More... | |
bool | operator!= (const OctreeContainerBase &other) const |
Inequal comparison operator. More... | |
void | addPointIndex (const int &) |
Empty addPointIndex implementation. More... | |
void | getPointIndex (int &) const |
Empty getPointIndex implementation as this leaf node does not store any point indices. More... | |
void | getPointIndices (std::vector< int > &) const |
Empty getPointIndices implementation as this leaf node does not store any data. More... | |
Protected Types | |
using | iterator = typename NeighborListT::iterator |
Protected Member Functions | |
iterator | begin () |
iterator | end () |
virtual OctreePointCloudAdjacencyContainer * | deepCopy () const |
deep copy function More... | |
void | addPoint (const PointInT &) |
Add new point to container- this just counts points. More... | |
void | computeData () |
Function for working on data added. More... | |
void | setPointCounter (int points_arg) |
Sets the number of points contributing to this leaf. More... | |
void | reset () override |
Clear the voxel centroid. More... | |
void | addNeighbor (OctreePointCloudAdjacencyContainer *neighbor) |
Add new neighbor to voxel. More... | |
void | removeNeighbor (OctreePointCloudAdjacencyContainer *neighbor) |
Remove neighbor from neighbor set. More... | |
void | setNeighbors (const NeighborListT &neighbor_arg) |
Sets the whole neighbor set. More... | |
template<> | |
void | addPoint (const pcl::PointXYZRGB &new_point) |
template<> | |
void | addPoint (const pcl::PointXYZRGBA &new_point) |
template<> | |
void | computeData () |
template<> | |
void | computeData () |
template<> | |
void | addPoint (const pcl::PointXYZ &new_point) |
template<> | |
void | computeData () |
Friends | |
template<typename T , typename U , typename V > | |
class | OctreePointCloudAdjacency |
Octree adjacency leaf container class- stores a list of pointers to neighbors, number of points added, and a DataT value
Definition at line 54 of file octree_pointcloud_adjacency_container.h.
using pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::const_iterator = typename NeighborListT::const_iterator |
Definition at line 60 of file octree_pointcloud_adjacency_container.h.
|
protected |
Definition at line 128 of file octree_pointcloud_adjacency_container.h.
using pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::NeighborListT = std::list<OctreePointCloudAdjacencyContainer<PointInT, DataT>*> |
Definition at line 59 of file octree_pointcloud_adjacency_container.h.
|
inline |
Class initialization.
Definition at line 80 of file octree_pointcloud_adjacency_container.h.
References pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::reset().
Referenced by pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::deepCopy().
|
inline |
Empty class deconstructor.
Definition at line 83 of file octree_pointcloud_adjacency_container.h.
|
inlineprotected |
Add new neighbor to voxel.
[in] | neighbor | the new neighbor to add |
Definition at line 189 of file octree_pointcloud_adjacency_container.h.
|
inlineprotected |
Add new point to container- this just counts points.
Definition at line 157 of file octree_pointcloud_adjacency_container.h.
|
protected |
|
protected |
|
protected |
|
inlineprotected |
Definition at line 130 of file octree_pointcloud_adjacency_container.h.
|
inline |
Definition at line 63 of file octree_pointcloud_adjacency_container.h.
|
inline |
Definition at line 68 of file octree_pointcloud_adjacency_container.h.
|
inlineprotected |
Function for working on data added.
Base implementation does nothing
Definition at line 166 of file octree_pointcloud_adjacency_container.h.
|
protected |
|
protected |
|
protected |
|
inlineprotectedvirtual |
deep copy function
Definition at line 142 of file octree_pointcloud_adjacency_container.h.
References pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::OctreePointCloudAdjacencyContainer(), pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::setNeighbors(), and pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::setPointCounter().
|
inlineprotected |
Definition at line 135 of file octree_pointcloud_adjacency_container.h.
|
inline |
Returns a reference to the data member to access it without copying.
Definition at line 103 of file octree_pointcloud_adjacency_container.h.
Referenced by pcl::SupervoxelClustering< PointT >::SupervoxelHelper::compareLeaves::operator()().
|
inline |
Returns the number of neighbors this leaf has.
Definition at line 89 of file octree_pointcloud_adjacency_container.h.
|
inline |
Gets the number of points contributing to this leaf.
Definition at line 96 of file octree_pointcloud_adjacency_container.h.
|
inlineoverridevirtual |
virtual method to get size of container
Reimplemented from pcl::octree::OctreeContainerBase.
Definition at line 121 of file octree_pointcloud_adjacency_container.h.
|
inlineprotected |
Remove neighbor from neighbor set.
[in] | neighbor | the neighbor to remove |
Definition at line 198 of file octree_pointcloud_adjacency_container.h.
|
inlineoverrideprotectedvirtual |
Clear the voxel centroid.
Implements pcl::octree::OctreeContainerBase.
Definition at line 178 of file octree_pointcloud_adjacency_container.h.
Referenced by pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::OctreePointCloudAdjacencyContainer().
|
inline |
Sets the data member.
[in] | data_arg | New value for data |
Definition at line 112 of file octree_pointcloud_adjacency_container.h.
|
inlineprotected |
Sets the whole neighbor set.
[in] | neighbor_arg | the new set |
Definition at line 213 of file octree_pointcloud_adjacency_container.h.
Referenced by pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::deepCopy().
|
inlineprotected |
Sets the number of points contributing to this leaf.
Definition at line 171 of file octree_pointcloud_adjacency_container.h.
Referenced by pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::deepCopy().
|
inline |
Definition at line 74 of file octree_pointcloud_adjacency_container.h.
|
friend |
Definition at line 56 of file octree_pointcloud_adjacency_container.h.