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

Detailed Description

template<class POINTMAPTYPE, typename coords_t>
class mrpt::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 maps/CColouredPointsMap.h.

#include <mrpt/maps/CColouredPointsMap.h>

Inheritance diagram for mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >:
Inheritance graph

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::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::Derived

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

Member Function Documentation

◆ derived() [1/2]

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

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

◆ derived() [2/2]

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

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

◆ getPointRGBf()

template<class POINTMAPTYPE, typename coords_t>
void mrpt::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 maps/CColouredPointsMap.h.

◆ getPointRGBu8()

template<class POINTMAPTYPE, typename coords_t>
void mrpt::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 maps/CColouredPointsMap.h.

◆ getPointXYZ_RGBf()

template<class POINTMAPTYPE, typename coords_t>
template<typename T >
void mrpt::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 maps/CColouredPointsMap.h.

◆ getPointXYZ_RGBu8()

template<class POINTMAPTYPE, typename coords_t>
template<typename T >
void mrpt::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 maps/CColouredPointsMap.h.

◆ setPointRGBf()

template<class POINTMAPTYPE, typename coords_t>
void mrpt::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 maps/CColouredPointsMap.h.

◆ setPointRGBu8()

template<class POINTMAPTYPE, typename coords_t>
void mrpt::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 maps/CColouredPointsMap.h.

◆ setPointXYZ_RGBf()

template<class POINTMAPTYPE, typename coords_t>
void mrpt::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 maps/CColouredPointsMap.h.

◆ setPointXYZ_RGBu8()

template<class POINTMAPTYPE, typename coords_t>
void mrpt::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 maps/CColouredPointsMap.h.




Page generated by Doxygen 1.8.14 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019