9 #ifndef mrpt_utils_adapters_H 10 #define mrpt_utils_adapters_H 40 template <
class POINTCLOUD>
50 template <
class POINTMAPTYPE,
typename coords_t>
59 return *
static_cast<const Derived*
>(
this);
65 const size_t idx, T&
x, T&
y, T&
z,
float&
r,
float&
g,
float&
b)
const 72 const size_t idx,
const coords_t
x,
const coords_t
y,
const coords_t
z,
73 const float r,
const float g,
const float b)
92 const size_t idx,
const coords_t
x,
const coords_t
y,
const coords_t
z,
103 const size_t idx,
float&
r,
float&
g,
float&
b)
const 110 const size_t idx,
const float r,
const float g,
const float b)
void setPointRGBf(const size_t idx, const float r, const float g, const float b)
Set XYZ_RGBf coordinates of i'th point.
void getPointRGBf(const size_t idx, float &r, float &g, float &b) const
Get RGBf color of i'th point.
void getPointRGBu8(const size_t idx, uint8_t &r, uint8_t &g, uint8_t &b) const
Get RGBu8 color of i'th point.
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.
A helper base class for those PointCloudAdapter<> which do not handle RGB data; it declares needed in...
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.
#define MRPT_UNUSED_PARAM(a)
Can be used to avoid "not used parameters" warnings from the compiler.
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.
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.
PointCloudAdapter< POINTMAPTYPE > Derived
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
GLdouble GLdouble GLdouble r
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.
An adapter to different kinds of point cloud object.
const Derived & derived() const