42 # pragma GCC system_header
50 #include <pcl/point_cloud.h>
51 #include <pcl/PointIndices.h>
52 #include <pcl/PCLPointCloud2.h>
68 template <
typename Po
intT>
125 setIndices (std::size_t row_start, std::size_t col_start, std::size_t nb_rows, std::size_t nb_cols);
252 #ifdef PCL_NO_PRECOMPILE
253 #include <pcl/impl/pcl_base.hpp>
bool fake_indices_
If no set of indices are given, we construct a set of fake indices that mimic the input PointCloud.
void setIndices(const PointIndicesConstPtr &indices)
Provide a pointer to the vector of indices that represents the input data.
IndicesPtr const getIndices() const
Get a pointer to the vector of indices used.
std::vector< uindex_t > field_sizes_
The size of each individual field.
PCLPointCloud2::Ptr PCLPointCloud2Ptr
void setIndices(const IndicesPtr &indices)
Provide a pointer to the vector of indices that represents the input data.
bool use_indices_
Set to true if point indices are used.
PCLPointCloud2ConstPtr input_
The input point cloud dataset.
IndicesPtr indices_
A pointer to the vector of point indices to use.
PCLBase()
Empty constructor.
PointIndices::ConstPtr PointIndicesConstPtr
std::string x_field_name_
The desired x-y-z field names.
virtual ~PCLBase()=default
destructor.
void setInputCloud(const PCLPointCloud2ConstPtr &cloud)
Provide a pointer to the input dataset.
PointIndices::Ptr PointIndicesPtr
PCLPointCloud2ConstPtr const getInputCloud() const
Get a pointer to the input point cloud dataset.
index_t x_idx_
The x-y-z fields indices.
PCLPointCloud2::ConstPtr PCLPointCloud2ConstPtr
PointCloudConstPtr input_
The input point cloud dataset.
virtual void setInputCloud(const PointCloudConstPtr &cloud)
Provide a pointer to the input dataset.
typename PointCloud::Ptr PointCloudPtr
typename PointCloud::ConstPtr PointCloudConstPtr
PointCloudConstPtr const getInputCloud() const
Get a pointer to the input point cloud dataset.
IndicesPtr indices_
A pointer to the vector of point indices to use.
virtual void setIndices(const IndicesPtr &indices)
Provide a pointer to the vector of indices that represents the input data.
IndicesConstPtr const getIndices() const
Get a pointer to the vector of indices used.
bool initCompute()
This method should get called before starting the actual computation.
virtual ~PCLBase()=default
Destructor.
bool use_indices_
Set to true if point indices are used.
bool fake_indices_
If no set of indices are given, we construct a set of fake indices that mimic the input PointCloud.
PointIndices::ConstPtr PointIndicesConstPtr
const PointT & operator[](std::size_t pos) const
Override PointCloud operator[] to shorten code.
IndicesPtr getIndices()
Get a pointer to the vector of indices used.
PCLBase()
Empty constructor.
bool deinitCompute()
This method should get called after finishing the actual computation.
PointIndices::Ptr PointIndicesPtr
PointCloud represents the base class in PCL for storing collections of 3D points.
shared_ptr< PointCloud< PointT > > Ptr
shared_ptr< const PointCloud< PointT > > ConstPtr
#define PCL_MAKE_ALIGNED_OPERATOR_NEW
Macro to signal a class requires a custom allocator.
Defines functions, macros and traits for allocating and using memory.
shared_ptr< const Indices > IndicesConstPtr
static constexpr index_t UNAVAILABLE
detail::int_type_t< detail::index_type_size, detail::index_type_signed > index_t
Type used for an index in PCL.
PointIndices::ConstPtr PointIndicesConstPtr
shared_ptr< Indices > IndicesPtr
Defines all the PCL and non-PCL macros used.
shared_ptr< ::pcl::PCLPointCloud2 > Ptr
shared_ptr< const ::pcl::PCLPointCloud2 > ConstPtr
shared_ptr< ::pcl::PointIndices > Ptr
shared_ptr< const ::pcl::PointIndices > ConstPtr
A point structure representing Euclidean xyz coordinates, and the RGB color.
Defines basic non-point types used by PCL.