Point Cloud Library (PCL)  1.14.1-dev
List of all members | Public Member Functions | Protected Attributes
pcl::octree::OctreeContainerPointIndices Class Reference

Octree container class that does store a vector of point indices. More...

#include <pcl/octree/octree_container.h>

+ Inheritance diagram for pcl::octree::OctreeContainerPointIndices:
+ Collaboration diagram for pcl::octree::OctreeContainerPointIndices:

Public Member Functions

virtual OctreeContainerPointIndicesdeepCopy () const
 Octree deep copy method. More...
 
bool operator== (const OctreeContainerBase &other) const override
 Equal comparison operator. More...
 
void addPointIndex (index_t data_arg) override
 Add point index to container memory. More...
 
index_t getPointIndex () const override
 Retrieve point index from container. More...
 
void getPointIndices (Indices &data_vector_arg) const override
 Retrieve point indices from container. More...
 
IndicesgetPointIndicesVector ()
 Retrieve reference to point indices vector. More...
 
uindex_t getSize () const override
 Get size of container (number of indices) More...
 
void reset () override
 Reset leaf node. More...
 
- Public Member Functions inherited from pcl::octree::OctreeContainerBase
virtual ~OctreeContainerBase ()=default
 
bool operator!= (const OctreeContainerBase &other) const
 Inequal comparison operator. More...
 
void getPointIndex (index_t &) const
 Empty getPointIndex implementation as this leaf node does not store any point indices. More...
 

Protected Attributes

Indices leafDataTVector_
 Leaf node DataT vector. More...
 

Detailed Description

Octree container class that does store a vector of point indices.

Note
Enables the octree to store multiple DataT elements within its leaf nodes.
Author
Julius Kammerl (juliu.nosp@m.s@ka.nosp@m.mmerl.nosp@m..de)

Definition at line 264 of file octree_container.h.

Member Function Documentation

◆ addPointIndex()

void pcl::octree::OctreeContainerPointIndices::addPointIndex ( index_t  data_arg)
inlineoverridevirtual

Add point index to container memory.

This container stores a vector of point indices.

Parameters
[in]data_argindex to be stored within leaf node.

Reimplemented from pcl::octree::OctreeContainerBase.

Definition at line 290 of file octree_container.h.

References leafDataTVector_.

◆ deepCopy()

virtual OctreeContainerPointIndices* pcl::octree::OctreeContainerPointIndices::deepCopy ( ) const
inlinevirtual

Octree deep copy method.

Definition at line 268 of file octree_container.h.

◆ getPointIndex()

index_t pcl::octree::OctreeContainerPointIndices::getPointIndex ( ) const
inlineoverridevirtual

Retrieve point index from container.

This container stores a vector of point indices.

Returns
index stored within container.

Reimplemented from pcl::octree::OctreeContainerBase.

Definition at line 300 of file octree_container.h.

References leafDataTVector_.

◆ getPointIndices()

void pcl::octree::OctreeContainerPointIndices::getPointIndices ( Indices data_vector_arg) const
inlineoverridevirtual

Retrieve point indices from container.

This container stores a vector of point indices.

Parameters
[out]data_vector_argvector of point indices to be stored within data vector

Reimplemented from pcl::octree::OctreeContainerBase.

Definition at line 311 of file octree_container.h.

References leafDataTVector_.

◆ getPointIndicesVector()

Indices& pcl::octree::OctreeContainerPointIndices::getPointIndicesVector ( )
inline

Retrieve reference to point indices vector.

This container stores a vector of point indices.

Returns
reference to vector of point indices to be stored within data vector

Definition at line 322 of file octree_container.h.

References leafDataTVector_.

◆ getSize()

uindex_t pcl::octree::OctreeContainerPointIndices::getSize ( ) const
inlineoverridevirtual

Get size of container (number of indices)

Returns
number of point indices in container.

Reimplemented from pcl::octree::OctreeContainerBase.

Definition at line 331 of file octree_container.h.

References leafDataTVector_.

◆ operator==()

bool pcl::octree::OctreeContainerPointIndices::operator== ( const OctreeContainerBase other) const
inlineoverridevirtual

Equal comparison operator.

Parameters
[in]otherOctreeContainerDataTVector to compare with

Reimplemented from pcl::octree::OctreeContainerBase.

Definition at line 277 of file octree_container.h.

References leafDataTVector_.

◆ reset()

void pcl::octree::OctreeContainerPointIndices::reset ( )
inlineoverridevirtual

Reset leaf node.

Clear DataT vector.

Implements pcl::octree::OctreeContainerBase.

Definition at line 338 of file octree_container.h.

References leafDataTVector_.

Member Data Documentation

◆ leafDataTVector_

Indices pcl::octree::OctreeContainerPointIndices::leafDataTVector_
protected

Leaf node DataT vector.

Definition at line 345 of file octree_container.h.

Referenced by addPointIndex(), getPointIndex(), getPointIndices(), getPointIndicesVector(), getSize(), operator==(), and reset().


The documentation for this class was generated from the following file: