Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Attributes
mrpt::opengl::PointCloudAdapter< mrpt::maps::CColouredPointsMap > Class Reference

Detailed Description

Specialization mrpt::opengl::PointCloudAdapter<mrpt::maps::CColouredPointsMap>

mrpt_adapters_grp

Definition at line 361 of file CColouredPointsMap.h.

#include <mrpt/maps/CColouredPointsMap.h>

Public Types

using coords_t = float
 The type of each point XYZ coordinates. More...
 

Public Member Functions

 PointCloudAdapter (const mrpt::maps::CColouredPointsMap &obj)
 Constructor (accept a const ref for convenience) More...
 
size_t size () const
 Get number of points. More...
 
void resize (const size_t N)
 Set number of points (to uninitialized values) More...
 
template<typename T >
void getPointXYZ (const size_t idx, T &x, T &y, T &z) const
 Get XYZ coordinates of i'th point. More...
 
void setPointXYZ (const size_t idx, const coords_t x, const coords_t y, const coords_t z)
 Set XYZ coordinates of i'th point. More...
 
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...
 

Static Public Attributes

static const int HAS_RGB = 1
 Has any color RGB info? More...
 
static const int HAS_RGBf = 1
 Has native RGB info (as floats)? More...
 
static const int HAS_RGBu8 = 0
 Has native RGB info (as uint8_t)? More...
 

Private Attributes

mrpt::maps::CColouredPointsMapm_obj
 

Member Typedef Documentation

◆ coords_t

The type of each point XYZ coordinates.

Definition at line 368 of file CColouredPointsMap.h.

Constructor & Destructor Documentation

◆ PointCloudAdapter()

Constructor (accept a const ref for convenience)

Definition at line 377 of file CColouredPointsMap.h.

Member Function Documentation

◆ getPointRGBf()

void mrpt::opengl::PointCloudAdapter< mrpt::maps::CColouredPointsMap >::getPointRGBf ( const size_t  idx,
float &  r,
float &  g,
float &  b 
) const
inline

Get RGBf color of i'th point.

Definition at line 434 of file CColouredPointsMap.h.

References mrpt::maps::CColouredPointsMap::getPointColor_fast().

◆ getPointRGBu8()

void mrpt::opengl::PointCloudAdapter< mrpt::maps::CColouredPointsMap >::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 447 of file CColouredPointsMap.h.

References G, mrpt::maps::CColouredPointsMap::getPointColor_fast(), and R.

◆ getPointXYZ()

template<typename T >
void mrpt::opengl::PointCloudAdapter< mrpt::maps::CColouredPointsMap >::getPointXYZ ( const size_t  idx,
T &  x,
T &  y,
T &  z 
) const
inline

Get XYZ coordinates of i'th point.

Definition at line 387 of file CColouredPointsMap.h.

References mrpt::maps::CPointsMap::getPointFast().

◆ getPointXYZ_RGBf()

template<typename T >
void mrpt::opengl::PointCloudAdapter< mrpt::maps::CColouredPointsMap >::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 400 of file CColouredPointsMap.h.

References mrpt::maps::CColouredPointsMap::getPoint().

◆ getPointXYZ_RGBu8()

template<typename T >
void mrpt::opengl::PointCloudAdapter< mrpt::maps::CColouredPointsMap >::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 415 of file CColouredPointsMap.h.

References mrpt::maps::CColouredPointsMap::getPoint().

◆ resize()

Set number of points (to uninitialized values)

Definition at line 384 of file CColouredPointsMap.h.

References mrpt::maps::CColouredPointsMap::resize().

◆ setPointRGBf()

void mrpt::opengl::PointCloudAdapter< mrpt::maps::CColouredPointsMap >::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 440 of file CColouredPointsMap.h.

References mrpt::maps::CColouredPointsMap::setPointColor_fast().

◆ setPointRGBu8()

void mrpt::opengl::PointCloudAdapter< mrpt::maps::CColouredPointsMap >::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 457 of file CColouredPointsMap.h.

References mrpt::maps::CColouredPointsMap::setPointColor_fast().

◆ setPointXYZ()

void mrpt::opengl::PointCloudAdapter< mrpt::maps::CColouredPointsMap >::setPointXYZ ( const size_t  idx,
const coords_t  x,
const coords_t  y,
const coords_t  z 
)
inline

Set XYZ coordinates of i'th point.

Definition at line 392 of file CColouredPointsMap.h.

References mrpt::maps::CColouredPointsMap::setPointFast().

◆ setPointXYZ_RGBf()

void mrpt::opengl::PointCloudAdapter< mrpt::maps::CColouredPointsMap >::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 406 of file CColouredPointsMap.h.

References mrpt::maps::CColouredPointsMap::setPoint().

◆ setPointXYZ_RGBu8()

void mrpt::opengl::PointCloudAdapter< mrpt::maps::CColouredPointsMap >::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 426 of file CColouredPointsMap.h.

References mrpt::maps::CColouredPointsMap::setPoint().

◆ size()

Get number of points.

Definition at line 382 of file CColouredPointsMap.h.

References mrpt::maps::CPointsMap::size().

Member Data Documentation

◆ HAS_RGB

Has any color RGB info?

Definition at line 370 of file CColouredPointsMap.h.

◆ HAS_RGBf

Has native RGB info (as floats)?

Definition at line 372 of file CColouredPointsMap.h.

◆ HAS_RGBu8

Has native RGB info (as uint8_t)?

Definition at line 374 of file CColouredPointsMap.h.

◆ m_obj

Definition at line 364 of file CColouredPointsMap.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