38 template <
class POINTCLOUD>
48 template <
class POINTMAPTYPE,
typename coords_t>
57 return *
static_cast<const Derived*
>(
this);
63 const size_t idx, T&
x, T&
y, T&
z,
float&
r,
float&
g,
float&
b)
const 70 const size_t idx,
const coords_t
x,
const coords_t
y,
const coords_t
z,
71 const float r,
const float g,
const float b)
90 const size_t idx,
const coords_t
x,
const coords_t
y,
const coords_t
z,
101 const size_t idx,
float&
r,
float&
g,
float&
b)
const 108 const size_t idx,
const float r,
const float g,
const float b)
void getPointRGBf(const size_t idx, float &r, float &g, float &b) const
Get RGBf color of i'th point.
An adapter to different kinds of point cloud object.
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.
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.
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.
const Derived & derived() const
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
GLdouble GLdouble GLdouble r
void getPointRGBu8(const size_t idx, uint8_t &r, uint8_t &g, uint8_t &b) const
Get RGBu8 color of i'th point.
A helper base class for those PointCloudAdapter<> which do not handle RGB data; it declares needed in...
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.
void setPointRGBf(const size_t idx, const float r, const float g, const float b)
Set XYZ_RGBf coordinates of i'th point.
#define MRPT_UNUSED_PARAM(a)
Determines whether this is an X86 or AMD64 platform.