Main MRPT website > C++ reference for MRPT 1.5.6
List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Attributes
mrpt::utils::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > > Class Template Reference

Detailed Description

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

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

Definition at line 28 of file maps/PCL_adapters.h.

#include <mrpt/maps/PCL_adapters.h>

Inheritance diagram for mrpt::utils::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >:
Inheritance graph

Public Types

typedef float coords_t
 The type of each point XYZ coordinates. More...
 
typedef PointCloudAdapter
< pcl::PointCloud
< pcl::PointXYZ > > 
Derived
 

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...
 
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...
 
Derivedderived ()
 
const Derivedderived () const
 
void getPointXYZ_RGBf (const size_t idx, T &x, T &y, T &z, float &r, float &g, float &b) const
 Get XYZ_RGBf coordinates of i'th point. More...
 
void setPointXYZ_RGBf (const size_t idx, const floatx, const floaty, const floatz, const float r, const float g, const float b)
 Set XYZ_RGBf coordinates of i'th point. More...
 
void getPointXYZ_RGBu8 (const size_t idx, T &x, T &y, T &z, uint8_t &r, uint8_t &g, uint8_t &b) const
 Get XYZ_RGBu8 coordinates of i'th point. More...
 
void setPointXYZ_RGBu8 (const size_t idx, const floatx, const floaty, const floatz, const uint8_t r, const uint8_t g, const uint8_t b)
 Set XYZ_RGBu8 coordinates of i'th point. More...
 
void getPointRGBf (const size_t idx, float &r, float &g, float &b) const
 Get RGBf color of i'th point. More...
 
void setPointRGBf (const size_t idx, const float r, const float g, const float b)
 Set XYZ_RGBf coordinates of i'th point. More...
 
void getPointRGBu8 (const size_t idx, uint8_t &r, uint8_t &g, uint8_t &b) const
 Get RGBu8 color of i'th point. More...
 
void setPointRGBu8 (const size_t idx, const uint8_t r, const uint8_t g, const uint8_t b)
 Set RGBu8 coordinates of i'th point. More...
 

Static Public Attributes

static const int HAS_RGB = 0
 Has any color RGB info? More...
 
static const int HAS_RGBf = 0
 Has native RGB info (as floats)? More...
 
static const int HAS_RGBu8 = 0
 Has native RGB info (as uint8_t)? More...
 

Private Attributes

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

Member Typedef Documentation

typedef float mrpt::utils::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::coords_t

The type of each point XYZ coordinates.

Definition at line 33 of file maps/PCL_adapters.h.

typedef PointCloudAdapter<pcl::PointCloud< pcl::PointXYZ > > mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< pcl::PointCloud< pcl::PointXYZ > , float >::Derived
inherited

Definition at line 51 of file maps/CColouredPointsMap.h.

Constructor & Destructor Documentation

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

Constructor (accept a const ref for convenience)

Definition at line 39 of file maps/PCL_adapters.h.

Member Function Documentation

Derived& mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< pcl::PointCloud< pcl::PointXYZ > , float >::derived ( )
inlineinherited

Definition at line 53 of file maps/CColouredPointsMap.h.

const Derived& mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< pcl::PointCloud< pcl::PointXYZ > , float >::derived ( ) const
inlineinherited

Definition at line 54 of file maps/CColouredPointsMap.h.

void mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< pcl::PointCloud< pcl::PointXYZ > , float >::getPointRGBf ( const size_t  idx,
float &  r,
float &  g,
float &  b 
) const
inlineinherited

Get RGBf color of i'th point.

Definition at line 81 of file maps/CColouredPointsMap.h.

void mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< pcl::PointCloud< pcl::PointXYZ > , float >::getPointRGBu8 ( const size_t  idx,
uint8_t r,
uint8_t g,
uint8_t b 
) const
inlineinherited

Get RGBu8 color of i'th point.

Definition at line 91 of file maps/CColouredPointsMap.h.

template<typename T >
void mrpt::utils::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 47 of file maps/PCL_adapters.h.

void mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< pcl::PointCloud< pcl::PointXYZ > , float >::getPointXYZ_RGBf ( const size_t  idx,
T &  x,
T &  y,
T &  z,
float &  r,
float &  g,
float &  b 
) const
inlineinherited

Get XYZ_RGBf coordinates of i'th point.

Definition at line 58 of file maps/CColouredPointsMap.h.

void mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< pcl::PointCloud< pcl::PointXYZ > , float >::getPointXYZ_RGBu8 ( const size_t  idx,
T &  x,
T &  y,
T &  z,
uint8_t r,
uint8_t g,
uint8_t b 
) const
inlineinherited

Get XYZ_RGBu8 coordinates of i'th point.

Definition at line 70 of file maps/CColouredPointsMap.h.

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

Set number of points (to uninitialized values)

Definition at line 43 of file maps/PCL_adapters.h.

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

Set Invalid Point.

Definition at line 58 of file maps/PCL_adapters.h.

void mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< pcl::PointCloud< pcl::PointXYZ > , float >::setPointRGBf ( const size_t  idx,
const float  r,
const float  g,
const float  b 
)
inlineinherited

Set XYZ_RGBf coordinates of i'th point.

Definition at line 86 of file maps/CColouredPointsMap.h.

void mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< pcl::PointCloud< pcl::PointXYZ > , float >::setPointRGBu8 ( const size_t  idx,
const uint8_t  r,
const uint8_t  g,
const uint8_t  b 
)
inlineinherited

Set RGBu8 coordinates of i'th point.

Definition at line 96 of file maps/CColouredPointsMap.h.

void mrpt::utils::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 52 of file maps/PCL_adapters.h.

void mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< pcl::PointCloud< pcl::PointXYZ > , float >::setPointXYZ_RGBf ( const size_t  idx,
const float  x,
const float  y,
const float  z,
const float  r,
const float  g,
const float  b 
)
inlineinherited

Set XYZ_RGBf coordinates of i'th point.

Definition at line 63 of file maps/CColouredPointsMap.h.

void mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< pcl::PointCloud< pcl::PointXYZ > , float >::setPointXYZ_RGBu8 ( const size_t  idx,
const float  x,
const float  y,
const float  z,
const uint8_t  r,
const uint8_t  g,
const uint8_t  b 
)
inlineinherited

Set XYZ_RGBu8 coordinates of i'th point.

Definition at line 75 of file maps/CColouredPointsMap.h.

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

Get number of points.

Definition at line 41 of file maps/PCL_adapters.h.

Member Data Documentation

const int mrpt::utils::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::HAS_RGB = 0
static

Has any color RGB info?

Definition at line 34 of file maps/PCL_adapters.h.

const int mrpt::utils::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::HAS_RGBf = 0
static

Has native RGB info (as floats)?

Definition at line 35 of file maps/PCL_adapters.h.

const int mrpt::utils::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::HAS_RGBu8 = 0
static

Has native RGB info (as uint8_t)?

Definition at line 36 of file maps/PCL_adapters.h.

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

Definition at line 31 of file maps/PCL_adapters.h.




Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018