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

Detailed Description

template<class POINTMAPTYPE, typename coords_t>
class mrpt::opengl::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 49 of file pointcloud_adapters.h.

#include <mrpt/opengl/pointcloud_adapters.h>

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

Public Types

using Derived = PointCloudAdapter< POINTMAPTYPE >
 

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 >
using mrpt::opengl::detail::PointCloudAdapterHelperNoRGB< POINTMAPTYPE, coords_t >::Derived = PointCloudAdapter<POINTMAPTYPE>

Definition at line 52 of file pointcloud_adapters.h.

Member Function Documentation

◆ derived() [1/2]

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

◆ derived() [2/2]

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

Definition at line 55 of file pointcloud_adapters.h.

◆ getPointRGBf()

template<class POINTMAPTYPE , typename coords_t >
void mrpt::opengl::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 100 of file pointcloud_adapters.h.

◆ getPointRGBu8()

template<class POINTMAPTYPE , typename coords_t >
void mrpt::opengl::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 117 of file pointcloud_adapters.h.

◆ getPointXYZ_RGBf()

template<class POINTMAPTYPE , typename coords_t >
template<typename T >
void mrpt::opengl::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 62 of file pointcloud_adapters.h.

◆ getPointXYZ_RGBu8()

template<class POINTMAPTYPE , typename coords_t >
template<typename T >
void mrpt::opengl::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 81 of file pointcloud_adapters.h.

◆ setPointRGBf()

template<class POINTMAPTYPE , typename coords_t >
void mrpt::opengl::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 107 of file pointcloud_adapters.h.

◆ setPointRGBu8()

template<class POINTMAPTYPE , typename coords_t >
void mrpt::opengl::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 124 of file pointcloud_adapters.h.

◆ setPointXYZ_RGBf()

template<class POINTMAPTYPE , typename coords_t >
void mrpt::opengl::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 69 of file pointcloud_adapters.h.

◆ setPointXYZ_RGBu8()

template<class POINTMAPTYPE , typename coords_t >
void mrpt::opengl::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 89 of file pointcloud_adapters.h.




Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST