Point Cloud Library (PCL) 1.12.0
Loading...
Searching...
No Matches
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.
 
bool operator== (const OctreeContainerBase &other) const override
 Equal comparison operator.
 
void addPointIndex (index_t data_arg)
 Add point index to container memory.
 
index_t getPointIndex () const
 Retrieve point index from container.
 
void getPointIndices (Indices &data_vector_arg) const
 Retrieve point indices from container.
 
IndicesgetPointIndicesVector ()
 Retrieve reference to point indices vector.
 
uindex_t getSize () const override
 Get size of container (number of indices)
 
void reset () override
 Reset leaf node.
 
- Public Member Functions inherited from pcl::octree::OctreeContainerBase
virtual ~OctreeContainerBase ()=default
 
virtual bool operator== (const OctreeContainerBase &) const
 Equal comparison operator.
 
bool operator!= (const OctreeContainerBase &other) const
 Inequal comparison operator.
 
virtual uindex_t getSize () const
 Pure abstract method to get size of container (number of indices)
 
virtual void reset ()=0
 Pure abstract reset leaf node implementation.
 
void addPointIndex (const index_t &)
 Empty addPointIndex implementation.
 
void getPointIndex (index_t &) const
 Empty getPointIndex implementation as this leaf node does not store any point indices.
 
void getPointIndices (Indices &) const
 Empty getPointIndices implementation as this leaf node does not store any data.
 

Protected Attributes

Indices leafDataTVector_
 Leaf node DataT vector.
 

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 251 of file octree_container.h.

Member Function Documentation

◆ addPointIndex()

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

Add point index to container memory.

This container stores a vector of point indices.

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

Definition at line 277 of file octree_container.h.

References leafDataTVector_.

◆ deepCopy()

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

Octree deep copy method.

Definition at line 255 of file octree_container.h.

◆ getPointIndex()

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

Retrieve point index from container.

This container stores a vector of point indices.

Returns
index stored within container.

Definition at line 287 of file octree_container.h.

References leafDataTVector_.

◆ getPointIndices()

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

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

Definition at line 298 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 309 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 318 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 264 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 325 of file octree_container.h.

References leafDataTVector_.

Member Data Documentation

◆ leafDataTVector_

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

Leaf node DataT vector.

Definition at line 332 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: