MRPT  1.9.9
mrpt::opengl::PointCloudAdapter< mrpt::maps::CPointsMapXYZI > Class Template Reference

Detailed Description

template<>
class mrpt::opengl::PointCloudAdapter< mrpt::maps::CPointsMapXYZI >

Specialization mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMapXYZI> mrpt_adapters_grp.

Definition at line 239 of file CPointsMapXYZI.h.

#include <mrpt/maps/CPointsMapXYZI.h>

Public Types

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

Public Member Functions

 PointCloudAdapter (const mrpt::maps::CPointsMapXYZI &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...
 
void setDimensions (const size_t &height, const size_t &width)
 Does nothing as of now. 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 constexpr bool HAS_RGB = true
 Has any color RGB info? More...
 
static constexpr bool HAS_RGBf = true
 Has native RGB info (as floats)? More...
 
static constexpr bool HAS_RGBu8 = false
 Has native RGB info (as uint8_t)? More...
 

Private Attributes

mrpt::maps::CPointsMapXYZIm_obj
 

Member Typedef Documentation

◆ coords_t

The type of each point XYZ coordinates.

Definition at line 246 of file CPointsMapXYZI.h.

Constructor & Destructor Documentation

◆ PointCloudAdapter()

Constructor (accept a const ref for convenience)

Definition at line 255 of file CPointsMapXYZI.h.

Member Function Documentation

◆ getPointRGBf()

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

Get RGBf color of i'th point.

Definition at line 312 of file CPointsMapXYZI.h.

References mrpt::maps::CPointsMapXYZI::getPointIntensity_fast().

Here is the call graph for this function:

◆ getPointRGBu8()

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

References mrpt::maps::CPointsMapXYZI::getPointIntensity_fast().

Here is the call graph for this function:

◆ getPointXYZ()

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

Get XYZ coordinates of i'th point.

Definition at line 267 of file CPointsMapXYZI.h.

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

Here is the call graph for this function:

◆ getPointXYZ_RGBf()

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

References mrpt::maps::CPointsMapXYZI::getPointRGB().

Here is the call graph for this function:

◆ getPointXYZ_RGBu8()

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

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

Here is the call graph for this function:

◆ resize()

void mrpt::opengl::PointCloudAdapter< mrpt::maps::CPointsMapXYZI >::resize ( const size_t  N)
inline

Set number of points (to uninitialized values)

Definition at line 262 of file CPointsMapXYZI.h.

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

Here is the call graph for this function:

◆ setDimensions()

void mrpt::opengl::PointCloudAdapter< mrpt::maps::CPointsMapXYZI >::setDimensions ( const size_t &  height,
const size_t &  width 
)
inline

Does nothing as of now.

Definition at line 264 of file CPointsMapXYZI.h.

◆ setPointRGBf()

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

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

Here is the call graph for this function:

◆ setPointRGBu8()

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

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

Here is the call graph for this function:

◆ setPointXYZ()

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

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

Here is the call graph for this function:

◆ setPointXYZ_RGBf()

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

References mrpt::maps::CPointsMapXYZI::setPointRGB().

Here is the call graph for this function:

◆ setPointXYZ_RGBu8()

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

References mrpt::maps::CPointsMapXYZI::setPointRGB().

Here is the call graph for this function:

◆ size()

Get number of points.

Definition at line 260 of file CPointsMapXYZI.h.

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

Here is the call graph for this function:

Member Data Documentation

◆ HAS_RGB

constexpr bool mrpt::opengl::PointCloudAdapter< mrpt::maps::CPointsMapXYZI >::HAS_RGB = true
static

Has any color RGB info?

Definition at line 248 of file CPointsMapXYZI.h.

◆ HAS_RGBf

constexpr bool mrpt::opengl::PointCloudAdapter< mrpt::maps::CPointsMapXYZI >::HAS_RGBf = true
static

Has native RGB info (as floats)?

Definition at line 250 of file CPointsMapXYZI.h.

◆ HAS_RGBu8

constexpr bool mrpt::opengl::PointCloudAdapter< mrpt::maps::CPointsMapXYZI >::HAS_RGBu8 = false
static

Has native RGB info (as uint8_t)?

Definition at line 252 of file CPointsMapXYZI.h.

◆ m_obj




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019