Main MRPT website > C++ reference for MRPT 1.5.7
List of all members | Public Types | Public Member Functions
mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t > Class Template Reference

Detailed Description

template<class POINTMAPTYPE, typename coords_t>
class mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >

A helper base class for those PointCloudAdapter<> which do not handle RGB data; it declares needed interface methods which fall back to XYZ-only methods.

Definition at line 48 of file adapters.h.

#include <mrpt/utils/adapters.h>

Public Types

typedef PointCloudAdapter< POINTMAPTYPE > Derived
 

Public Member Functions

Derivedderived ()
 
const Derivedderived () const
 
template<typename T >
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 coords_t x, const coords_t y, const coords_t z, const float r, const float g, const float b)
 Set XYZ_RGBf coordinates of i'th point. More...
 
template<typename T >
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 coords_t x, const coords_t y, const coords_t z, 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...
 

Member Typedef Documentation

◆ Derived

template<class POINTMAPTYPE , typename coords_t >
typedef PointCloudAdapter<POINTMAPTYPE> mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::Derived

Definition at line 51 of file adapters.h.

Member Function Documentation

◆ derived() [1/2]

template<class POINTMAPTYPE , typename coords_t >
Derived& mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::derived ( )
inline

◆ derived() [2/2]

template<class POINTMAPTYPE , typename coords_t >
const Derived& mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::derived ( ) const
inline

Definition at line 54 of file adapters.h.

◆ getPointRGBf()

template<class POINTMAPTYPE , typename coords_t >
void mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::getPointRGBf ( const size_t  idx,
float &  r,
float &  g,
float &  b 
) const
inline

Get RGBf color of i'th point.

Definition at line 81 of file adapters.h.

References MRPT_UNUSED_PARAM.

◆ getPointRGBu8()

template<class POINTMAPTYPE , typename coords_t >
void mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::getPointRGBu8 ( const size_t  idx,
uint8_t r,
uint8_t g,
uint8_t b 
) const
inline

Get RGBu8 color of i'th point.

Definition at line 91 of file adapters.h.

References MRPT_UNUSED_PARAM.

◆ getPointXYZ_RGBf()

template<class POINTMAPTYPE , typename coords_t >
template<typename T >
void mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::getPointXYZ_RGBf ( const size_t  idx,
T &  x,
T &  y,
T &  z,
float &  r,
float &  g,
float &  b 
) const
inline

Get XYZ_RGBf coordinates of i'th point.

Definition at line 58 of file adapters.h.

References mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::derived().

◆ getPointXYZ_RGBu8()

template<class POINTMAPTYPE , typename coords_t >
template<typename T >
void mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::getPointXYZ_RGBu8 ( const size_t  idx,
T &  x,
T &  y,
T &  z,
uint8_t r,
uint8_t g,
uint8_t b 
) const
inline

Get XYZ_RGBu8 coordinates of i'th point.

Definition at line 70 of file adapters.h.

References mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::derived().

◆ setPointRGBf()

template<class POINTMAPTYPE , typename coords_t >
void mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::setPointRGBf ( const size_t  idx,
const float  r,
const float  g,
const float  b 
)
inline

Set XYZ_RGBf coordinates of i'th point.

Definition at line 86 of file adapters.h.

References MRPT_UNUSED_PARAM.

◆ setPointRGBu8()

template<class POINTMAPTYPE , typename coords_t >
void mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::setPointRGBu8 ( const size_t  idx,
const uint8_t  r,
const uint8_t  g,
const uint8_t  b 
)
inline

Set RGBu8 coordinates of i'th point.

Definition at line 96 of file adapters.h.

References MRPT_UNUSED_PARAM.

◆ setPointXYZ_RGBf()

template<class POINTMAPTYPE , typename coords_t >
void mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::setPointXYZ_RGBf ( const size_t  idx,
const coords_t  x,
const coords_t  y,
const coords_t  z,
const float  r,
const float  g,
const float  b 
)
inline

Set XYZ_RGBf coordinates of i'th point.

Definition at line 63 of file adapters.h.

References mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::derived(), and MRPT_UNUSED_PARAM.

◆ setPointXYZ_RGBu8()

template<class POINTMAPTYPE , typename coords_t >
void mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::setPointXYZ_RGBu8 ( const size_t  idx,
const coords_t  x,
const coords_t  y,
const coords_t  z,
const uint8_t  r,
const uint8_t  g,
const uint8_t  b 
)
inline

Set XYZ_RGBu8 coordinates of i'th point.

Definition at line 75 of file adapters.h.

References mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::derived(), and MRPT_UNUSED_PARAM.




Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 8277875f6 Mon Jun 11 02:47:32 2018 +0200 at lun oct 28 01:50:49 CET 2019