point_cloud_library / 1.12.1 / classpcl_1_1_p_c_l_base_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html /

#include <pcl/pcl_base.h>

Public Types

using PCLPointCloud2 = pcl::PCLPointCloud2
using PCLPointCloud2Ptr = PCLPointCloud2::Ptr
using PCLPointCloud2ConstPtr = PCLPointCloud2::ConstPtr
using PointIndicesPtr = PointIndices::Ptr
using PointIndicesConstPtr = PointIndices::ConstPtr

Public Member Functions

PCLBase ()
Empty constructor. More...
virtual ~PCLBase ()=default
destructor. More...
void setInputCloud (const PCLPointCloud2ConstPtr &cloud)
Provide a pointer to the input dataset. More...
const PCLPointCloud2ConstPtr getInputCloud () const
Get a pointer to the input point cloud dataset. More...
void setIndices (const IndicesPtr &indices)
Provide a pointer to the vector of indices that represents the input data. More...
void setIndices (const PointIndicesConstPtr &indices)
Provide a pointer to the vector of indices that represents the input data. More...
const IndicesPtr getIndices () const
Get a pointer to the vector of indices used. More...

Protected Member Functions

bool initCompute ()
bool deinitCompute ()

Protected Attributes

PCLPointCloud2ConstPtr input_
The input point cloud dataset. More...
IndicesPtr indices_
A pointer to the vector of point indices to use. More...
bool use_indices_
Set to true if point indices are used. More...
bool fake_indices_
If no set of indices are given, we construct a set of fake indices that mimic the input PointCloud. More...
std::vector< uindex_t > field_sizes_
The size of each individual field. More...
index_t x_idx_
The x-y-z fields indices. More...
index_t y_idx_
index_t z_idx_
std::string x_field_name_
The desired x-y-z field names. More...
std::string y_field_name_
std::string z_field_name_

Detailed Description

Definition at line 181 of file pcl_base.h.

Member Typedef Documentation

PCLPointCloud2

PCLPointCloud2ConstPtr

PCLPointCloud2Ptr

PointIndicesConstPtr

PointIndicesPtr

Constructor & Destructor Documentation

PCLBase()

Empty constructor.

~PCLBase()

virtual pcl::PCLBase< pcl::PCLPointCloud2 >::~PCLBase ( )
virtualdefault

destructor.

Member Function Documentation

deinitCompute()

bool pcl::PCLBase< pcl::PCLPointCloud2 >::deinitCompute ( )
protected

getIndices()

const IndicesPtr pcl::PCLBase< pcl::PCLPointCloud2 >::getIndices ( ) const
inline

Get a pointer to the vector of indices used.

Definition at line 221 of file pcl_base.h.

getInputCloud()

const PCLPointCloud2ConstPtr pcl::PCLBase< pcl::PCLPointCloud2 >::getInputCloud ( ) const
inline

Get a pointer to the input point cloud dataset.

Definition at line 205 of file pcl_base.h.

initCompute()

bool pcl::PCLBase< pcl::PCLPointCloud2 >::initCompute ( )
protected

setIndices() [1/2]

void pcl::PCLBase< pcl::PCLPointCloud2 >::setIndices ( const IndicesPtr & indices )

Provide a pointer to the vector of indices that represents the input data.

Parameters
[in] indices a pointer to the indices that represent the input data.

Referenced by pcl::outofcore::OutofcoreOctreeBaseNode::addPointCloud_and_genLOD(), and pcl::outofcore::OutofcoreOctreeBase< ContainerT, pcl::PointXYZRGB >::buildLODRecursive().

setIndices() [2/2]

void pcl::PCLBase< pcl::PCLPointCloud2 >::setIndices ( const PointIndicesConstPtr & indices )

Provide a pointer to the vector of indices that represents the input data.

Parameters
[in] indices a pointer to the indices that represent the input data.

setInputCloud()

void pcl::PCLBase< pcl::PCLPointCloud2 >::setInputCloud ( const PCLPointCloud2ConstPtr & cloud )

Provide a pointer to the input dataset.

Parameters
cloud the const boost shared pointer to a PointCloud message

Referenced by pcl::outofcore::OutofcoreOctreeBaseNode::addPointCloud_and_genLOD(), and pcl::outofcore::OutofcoreOctreeBase< ContainerT, pcl::PointXYZRGB >::buildLODRecursive().

Member Data Documentation

fake_indices_

bool pcl::PCLBase< pcl::PCLPointCloud2 >::fake_indices_
protected

If no set of indices are given, we construct a set of fake indices that mimic the input PointCloud.

Definition at line 234 of file pcl_base.h.

field_sizes_

std::vector<uindex_t> pcl::PCLBase< pcl::PCLPointCloud2 >::field_sizes_
protected

The size of each individual field.

Definition at line 237 of file pcl_base.h.

indices_

A pointer to the vector of point indices to use.

Definition at line 228 of file pcl_base.h.

input_

The input point cloud dataset.

Definition at line 225 of file pcl_base.h.

use_indices_

bool pcl::PCLBase< pcl::PCLPointCloud2 >::use_indices_
protected

Set to true if point indices are used.

Definition at line 231 of file pcl_base.h.

x_field_name_

std::string pcl::PCLBase< pcl::PCLPointCloud2 >::x_field_name_
protected

The desired x-y-z field names.

Definition at line 243 of file pcl_base.h.

x_idx_

The x-y-z fields indices.

Definition at line 240 of file pcl_base.h.

y_field_name_

std::string pcl::PCLBase< pcl::PCLPointCloud2 >::y_field_name_
protected

Definition at line 243 of file pcl_base.h.

y_idx_

Definition at line 240 of file pcl_base.h.

z_field_name_

std::string pcl::PCLBase< pcl::PCLPointCloud2 >::z_field_name_
protected

Definition at line 243 of file pcl_base.h.

z_idx_

Definition at line 240 of file pcl_base.h.


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

© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1_p_c_l_base_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html