Octree adjacency leaf container class- stores set of pointers to neighbors, number of points added, and a DataT value More...
#include <octree_pointcloud_adjacency_container.h>
Public Types | |
typedef NeighborSetT::const_iterator | const_iterator |
typedef NeighborSetT::iterator | iterator |
typedef std::set < OctreePointCloudAdjacencyContainer * > | NeighborSetT |
Public Member Functions | |
void | addNeighbor (OctreePointCloudAdjacencyContainer *neighbor) |
Add new neighbor to voxel. | |
void | addPoint (const PointInT &new_point) |
Add new point to container- this just counts points. | |
template<> | |
void | addPoint (const pcl::PointXYZRGB &new_point) |
template<> | |
void | addPoint (const pcl::PointXYZRGBA &new_point) |
iterator | begin () |
const_iterator | begin () const |
void | computeData () |
Function for working on data added. Base implementation does nothing. | |
template<> | |
void | computeData () |
template<> | |
void | computeData () |
virtual OctreePointCloudAdjacencyContainer * | deepCopy () const |
deep copy function | |
iterator | end () |
const_iterator | end () const |
DataT & | getData () |
Returns a reference to the data member to access it without copying. | |
size_t | getNumNeighbors () const |
Returns the number of neighbors this leaf has. | |
int | getPointCounter () const |
Gets the number of points contributing to this leaf. | |
virtual size_t | getSize () |
virtual method to get size of container | |
std::pair< iterator, bool > | insert (OctreePointCloudAdjacencyContainer *neighbor) |
OctreePointCloudAdjacencyContainer () | |
Class initialization. | |
void | removeNeighbor (OctreePointCloudAdjacencyContainer *neighbor) |
Remove neighbor from neighbor set. | |
virtual void | reset () |
Clear the voxel centroid. | |
void | setData (const DataT &data_arg) |
Sets the data member. | |
void | setNeighbors (const NeighborSetT &neighbor_arg) |
Sets the whole neighbor set. | |
void | setPointCounter (int points_arg) |
Sets the number of points contributing to this leaf. | |
size_t | size () const |
virtual | ~OctreePointCloudAdjacencyContainer () |
Empty class deconstructor. | |
Private Attributes | |
DataT | data_ |
NeighborSetT | neighbors_ |
int | num_points_ |
Octree adjacency leaf container class- stores set of pointers to neighbors, number of points added, and a DataT value
Definition at line 54 of file octree_pointcloud_adjacency_container.h.
typedef NeighborSetT::const_iterator pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::const_iterator |
Definition at line 60 of file octree_pointcloud_adjacency_container.h.
typedef NeighborSetT::iterator pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::iterator |
Definition at line 59 of file octree_pointcloud_adjacency_container.h.
typedef std::set<OctreePointCloudAdjacencyContainer*> pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::NeighborSetT |
Definition at line 57 of file octree_pointcloud_adjacency_container.h.
pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::OctreePointCloudAdjacencyContainer | ( | ) | [inline] |
Class initialization.
Definition at line 71 of file octree_pointcloud_adjacency_container.h.
virtual pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::~OctreePointCloudAdjacencyContainer | ( | ) | [inline, virtual] |
Empty class deconstructor.
Definition at line 78 of file octree_pointcloud_adjacency_container.h.
void pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::addNeighbor | ( | OctreePointCloudAdjacencyContainer< PointInT, DataT > * | neighbor | ) | [inline] |
Add new neighbor to voxel.
[in] | neighbor | the new neighbor to add |
Definition at line 132 of file octree_pointcloud_adjacency_container.h.
void pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::addPoint | ( | const PointInT & | new_point | ) | [inline] |
Add new point to container- this just counts points.
[in] | new_point | the new point to add |
Definition at line 98 of file octree_pointcloud_adjacency_container.h.
void pcl::octree::OctreePointCloudAdjacencyContainer< pcl::PointXYZRGB, pcl::SupervoxelClustering< pcl::PointXYZRGB >::VoxelData >::addPoint | ( | const pcl::PointXYZRGB & | new_point | ) |
Definition at line 704 of file supervoxel_clustering.hpp.
void pcl::octree::OctreePointCloudAdjacencyContainer< pcl::PointXYZRGBA, pcl::SupervoxelClustering< pcl::PointXYZRGBA >::VoxelData >::addPoint | ( | const pcl::PointXYZRGBA & | new_point | ) |
Definition at line 719 of file supervoxel_clustering.hpp.
iterator pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::begin | ( | ) | [inline] |
Definition at line 61 of file octree_pointcloud_adjacency_container.h.
const_iterator pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::begin | ( | ) | const [inline] |
Definition at line 63 of file octree_pointcloud_adjacency_container.h.
void pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::computeData | ( | ) | [inline] |
Function for working on data added. Base implementation does nothing.
Definition at line 107 of file octree_pointcloud_adjacency_container.h.
void pcl::octree::OctreePointCloudAdjacencyContainer< pcl::PointXYZRGB, pcl::SupervoxelClustering< pcl::PointXYZRGB >::VoxelData >::computeData | ( | ) |
Definition at line 736 of file supervoxel_clustering.hpp.
void pcl::octree::OctreePointCloudAdjacencyContainer< pcl::PointXYZRGBA, pcl::SupervoxelClustering< pcl::PointXYZRGBA >::VoxelData >::computeData | ( | ) |
Definition at line 747 of file supervoxel_clustering.hpp.
virtual OctreePointCloudAdjacencyContainer* pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::deepCopy | ( | ) | const [inline, virtual] |
deep copy function
Definition at line 84 of file octree_pointcloud_adjacency_container.h.
iterator pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::end | ( | ) | [inline] |
Definition at line 62 of file octree_pointcloud_adjacency_container.h.
const_iterator pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::end | ( | ) | const [inline] |
Definition at line 64 of file octree_pointcloud_adjacency_container.h.
DataT& pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::getData | ( | ) | [inline] |
Returns a reference to the data member to access it without copying.
Definition at line 167 of file octree_pointcloud_adjacency_container.h.
size_t pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::getNumNeighbors | ( | ) | const [inline] |
Returns the number of neighbors this leaf has.
Definition at line 151 of file octree_pointcloud_adjacency_container.h.
int pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::getPointCounter | ( | ) | const [inline] |
Gets the number of points contributing to this leaf.
Definition at line 113 of file octree_pointcloud_adjacency_container.h.
virtual size_t pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::getSize | ( | ) | [inline, virtual] |
virtual method to get size of container
Reimplemented from pcl::octree::OctreeContainerBase.
Definition at line 179 of file octree_pointcloud_adjacency_container.h.
std::pair<iterator, bool> pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::insert | ( | OctreePointCloudAdjacencyContainer< PointInT, DataT > * | neighbor | ) | [inline] |
Definition at line 68 of file octree_pointcloud_adjacency_container.h.
void pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::removeNeighbor | ( | OctreePointCloudAdjacencyContainer< PointInT, DataT > * | neighbor | ) | [inline] |
Remove neighbor from neighbor set.
[in] | neighbor | the neighbor to remove |
Definition at line 141 of file octree_pointcloud_adjacency_container.h.
virtual void pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::reset | ( | ) | [inline, virtual] |
Clear the voxel centroid.
Implements pcl::octree::OctreeContainerBase.
Definition at line 121 of file octree_pointcloud_adjacency_container.h.
void pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::setData | ( | const DataT & | data_arg | ) | [inline] |
Sets the data member.
[in] | data_arg | New value for data |
Definition at line 173 of file octree_pointcloud_adjacency_container.h.
void pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::setNeighbors | ( | const NeighborSetT & | neighbor_arg | ) | [inline] |
Sets the whole neighbor set.
[in] | neighbor_arg | the new set |
Definition at line 160 of file octree_pointcloud_adjacency_container.h.
void pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::setPointCounter | ( | int | points_arg | ) | [inline] |
Sets the number of points contributing to this leaf.
Definition at line 117 of file octree_pointcloud_adjacency_container.h.
size_t pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::size | ( | ) | const [inline] |
Definition at line 66 of file octree_pointcloud_adjacency_container.h.
DataT pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::data_ [private] |
Definition at line 188 of file octree_pointcloud_adjacency_container.h.
NeighborSetT pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::neighbors_ [private] |
Definition at line 187 of file octree_pointcloud_adjacency_container.h.
int pcl::octree::OctreePointCloudAdjacencyContainer< PointInT, DataT >::num_points_ [private] |
Definition at line 186 of file octree_pointcloud_adjacency_container.h.