MRPT  2.0.0
List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Attributes
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > > Class Template Reference

Detailed Description

template<>
class mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >

Specialization mrpt::opengl::PointCloudAdapter<pcl::PointCloud<pcl::PointXYZ> > for an XYZ point cloud (without RGB)

Definition at line 27 of file PCL_adapters.h.

#include <mrpt/maps/PCL_adapters.h>

Public Types

using coords_t = float
 The type of each point XYZ coordinates. More...
 

Public Member Functions

 PointCloudAdapter (const pcl::PointCloud< pcl::PointXYZ > &obj)
 Constructor (accept a const ref for convenience) More...
 
size_t size () const
 Get number of points. More...
 
void resize (const size_t N)
 Set number of points (to uninitialized values) More...
 
void setDimensions (size_t height, size_t width)
 Set height and width (for organized) More...
 
template<typename T >
void getPointXYZ (const size_t idx, T &x, T &y, T &z) const
 Get XYZ coordinates of i'th point. More...
 
void setPointXYZ (const size_t idx, const coords_t x, const coords_t y, const coords_t z)
 Set XYZ coordinates of i'th point. More...
 
void setInvalidPoint (const size_t idx)
 Set Invalid Point. More...
 

Static Public Attributes

static constexpr bool HAS_RGB = false
 Has any color RGB info? More...
 
static constexpr bool HAS_RGBf = false
 Has native RGB info (as floats)? More...
 
static constexpr bool HAS_RGBu8 = false
 Has native RGB info (as uint8_t)? More...
 

Private Attributes

pcl::PointCloud< pcl::PointXYZ > & m_obj
 

Member Typedef Documentation

◆ coords_t

using mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::coords_t = float

The type of each point XYZ coordinates.

Definition at line 34 of file PCL_adapters.h.

Constructor & Destructor Documentation

◆ PointCloudAdapter()

mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::PointCloudAdapter ( const pcl::PointCloud< pcl::PointXYZ > &  obj)
inline

Constructor (accept a const ref for convenience)

Definition at line 43 of file PCL_adapters.h.

Member Function Documentation

◆ getPointXYZ()

template<typename T >
void mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::getPointXYZ ( const size_t  idx,
T &  x,
T &  y,
T &  z 
) const
inline

Get XYZ coordinates of i'th point.

Definition at line 59 of file PCL_adapters.h.

◆ resize()

void mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::resize ( const size_t  N)
inline

Set number of points (to uninitialized values)

Definition at line 50 of file PCL_adapters.h.

◆ setDimensions()

void mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::setDimensions ( size_t  height,
size_t  width 
)
inline

Set height and width (for organized)

Definition at line 52 of file PCL_adapters.h.

◆ setInvalidPoint()

void mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::setInvalidPoint ( const size_t  idx)
inline

Set Invalid Point.

Definition at line 77 of file PCL_adapters.h.

◆ setPointXYZ()

void mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::setPointXYZ ( const size_t  idx,
const coords_t  x,
const coords_t  y,
const coords_t  z 
)
inline

Set XYZ coordinates of i'th point.

Definition at line 67 of file PCL_adapters.h.

◆ size()

size_t mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::size ( ) const
inline

Get number of points.

Definition at line 48 of file PCL_adapters.h.

Member Data Documentation

◆ HAS_RGB

constexpr bool mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::HAS_RGB = false
static

Has any color RGB info?

Definition at line 36 of file PCL_adapters.h.

◆ HAS_RGBf

constexpr bool mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::HAS_RGBf = false
static

Has native RGB info (as floats)?

Definition at line 38 of file PCL_adapters.h.

◆ HAS_RGBu8

constexpr bool mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::HAS_RGBu8 = false
static

Has native RGB info (as uint8_t)?

Definition at line 40 of file PCL_adapters.h.

◆ m_obj

pcl::PointCloud<pcl::PointXYZ>& mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::m_obj
private

Definition at line 30 of file PCL_adapters.h.




Page generated by Doxygen 1.8.14 for MRPT 2.0.0 Git: b38439d21 Tue Mar 31 19:58:06 2020 +0200 at miƩ abr 1 00:50:30 CEST 2020