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

Octree container class that does store a single point index. More...

#include <pcl/octree/octree_container.h>

+ Inheritance diagram for pcl::octree::OctreeContainerPointIndex:

Public Member Functions

 OctreeContainerPointIndex ()
 Empty constructor. More...
 
 OctreeContainerPointIndex (const OctreeContainerPointIndex &source)
 Empty constructor. More...
 
virtual ~OctreeContainerPointIndex ()
 Empty deconstructor. More...
 
virtual OctreeContainerPointIndexdeepCopy () const
 Octree deep copy method. More...
 
virtual bool operator== (const OctreeContainerBase &other) const
 Equal comparison operator. More...
 
void addPointIndex (int data_arg)
 Add point index to container memory. More...
 
int getPointIndex () const
 Retrieve point index from container. More...
 
void getPointIndices (std::vector< int > &data_vector_arg) const
 Retrieve point indices from container. More...
 
size_t getSize () const
 Get size of container (number of DataT objects) More...
 
virtual void reset ()
 Reset leaf node memory to zero. More...
 
- Public Member Functions inherited from pcl::octree::OctreeContainerBase
 OctreeContainerBase ()
 Empty constructor. More...
 
 OctreeContainerBase (const OctreeContainerBase &)
 Empty constructor. More...
 
virtual ~OctreeContainerBase ()
 Empty deconstructor. 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 Attributes

int data_
 Point index stored in octree. More...
 

Detailed Description

Octree container class that does store a single point index.

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

Definition at line 206 of file octree_container.h.

Constructor & Destructor Documentation

pcl::octree::OctreeContainerPointIndex::OctreeContainerPointIndex ( )
inline

Empty constructor.

Definition at line 210 of file octree_container.h.

References pcl::octree::OctreeContainerBase::reset().

pcl::octree::OctreeContainerPointIndex::OctreeContainerPointIndex ( const OctreeContainerPointIndex source)
inline

Empty constructor.

Definition at line 217 of file octree_container.h.

virtual pcl::octree::OctreeContainerPointIndex::~OctreeContainerPointIndex ( )
inlinevirtual

Empty deconstructor.

Definition at line 224 of file octree_container.h.

Member Function Documentation

void pcl::octree::OctreeContainerPointIndex::addPointIndex ( int  data_arg)
inline

Add point index to container memory.

This container stores a only a single point index.

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

Definition at line 250 of file octree_container.h.

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

Octree deep copy method.

Definition at line 230 of file octree_container.h.

int pcl::octree::OctreeContainerPointIndex::getPointIndex ( ) const
inline

Retrieve point index from container.

This container stores a only a single point index

Returns
index stored within container.

Definition at line 259 of file octree_container.h.

void pcl::octree::OctreeContainerPointIndex::getPointIndices ( std::vector< int > &  data_vector_arg) const
inline

Retrieve point indices from container.

This container stores only a single point index

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

Definition at line 268 of file octree_container.h.

size_t pcl::octree::OctreeContainerPointIndex::getSize ( ) const
inlinevirtual

Get size of container (number of DataT objects)

Returns
number of DataT elements in leaf node container.

Reimplemented from pcl::octree::OctreeContainerBase.

Definition at line 278 of file octree_container.h.

virtual bool pcl::octree::OctreeContainerPointIndex::operator== ( const OctreeContainerBase other) const
inlinevirtual

Equal comparison operator.

Parameters
[in]otherOctreeContainerBase to compare with

Reimplemented from pcl::octree::OctreeContainerBase.

Definition at line 239 of file octree_container.h.

References data_.

virtual void pcl::octree::OctreeContainerPointIndex::reset ( )
inlinevirtual

Reset leaf node memory to zero.

Implements pcl::octree::OctreeContainerBase.

Definition at line 285 of file octree_container.h.

Member Data Documentation

int pcl::octree::OctreeContainerPointIndex::data_
protected

Point index stored in octree.

Definition at line 291 of file octree_container.h.

Referenced by operator==().


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