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

Detailed Description

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

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

Definition at line 162 of file CWeightedPointsMap.h.

#include <mrpt/maps/CWeightedPointsMap.h>

Inheritance diagram for mrpt::opengl::PointCloudAdapter< mrpt::maps::CWeightedPointsMap >:
Inheritance graph

Public Types

using coords_t = float
 The type of each point XYZ coordinates. More...
 
using Derived = PointCloudAdapter< mrpt::maps::CWeightedPointsMap >
 

Public Member Functions

 PointCloudAdapter (const mrpt::maps::CWeightedPointsMap &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...
 
Derivedderived ()
 
const Derivedderived () const
 
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 float x, const float y, const float z, const float r, const float g, const float b)
 Set XYZ_RGBf coordinates of i'th point. More...
 
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 float x, const float y, const float 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 = 0
 Has any color RGB info? More...
 
static const int HAS_RGBf = 0
 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::CWeightedPointsMapm_obj
 

Member Typedef Documentation

◆ coords_t

The type of each point XYZ coordinates.

Definition at line 171 of file CWeightedPointsMap.h.

◆ Derived

Constructor & Destructor Documentation

◆ PointCloudAdapter()

Constructor (accept a const ref for convenience)

Definition at line 180 of file CWeightedPointsMap.h.

Member Function Documentation

◆ derived() [1/2]

◆ derived() [2/2]

Definition at line 56 of file CColouredPointsMap.h.

◆ getPointRGBf()

void mrpt::mrpt::opengl::detail::PointCloudAdapterHelperNoRGB< mrpt::maps::CWeightedPointsMap , float >::getPointRGBf ( const size_t  idx,
float &  r,
float &  g,
float &  b 
) const
inlineinherited

Get RGBf color of i'th point.

Definition at line 101 of file CColouredPointsMap.h.

◆ getPointRGBu8()

void mrpt::mrpt::opengl::detail::PointCloudAdapterHelperNoRGB< mrpt::maps::CWeightedPointsMap , float >::getPointRGBu8 ( const size_t  idx,
uint8_t r,
uint8_t g,
uint8_t b 
) const
inlineinherited

Get RGBu8 color of i'th point.

Definition at line 118 of file CColouredPointsMap.h.

◆ getPointXYZ()

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

Get XYZ coordinates of i'th point.

Definition at line 194 of file CWeightedPointsMap.h.

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

◆ getPointXYZ_RGBf()

void mrpt::mrpt::opengl::detail::PointCloudAdapterHelperNoRGB< mrpt::maps::CWeightedPointsMap , float >::getPointXYZ_RGBf ( const size_t  idx,
T &  x,
T &  y,
T &  z,
float &  r,
float &  g,
float &  b 
) const
inlineinherited

Get XYZ_RGBf coordinates of i'th point.

Definition at line 63 of file CColouredPointsMap.h.

◆ getPointXYZ_RGBu8()

void mrpt::mrpt::opengl::detail::PointCloudAdapterHelperNoRGB< mrpt::maps::CWeightedPointsMap , float >::getPointXYZ_RGBu8 ( const size_t  idx,
T &  x,
T &  y,
T &  z,
uint8_t r,
uint8_t g,
uint8_t b 
) const
inlineinherited

Get XYZ_RGBu8 coordinates of i'th point.

Definition at line 82 of file CColouredPointsMap.h.

◆ resize()

Set number of points (to uninitialized values)

Definition at line 187 of file CWeightedPointsMap.h.

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

◆ setDimensions()

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

Does nothing as of now.

Definition at line 189 of file CWeightedPointsMap.h.

◆ setPointRGBf()

void mrpt::mrpt::opengl::detail::PointCloudAdapterHelperNoRGB< mrpt::maps::CWeightedPointsMap , float >::setPointRGBf ( const size_t  idx,
const float  r,
const float  g,
const float  b 
)
inlineinherited

Set XYZ_RGBf coordinates of i'th point.

Definition at line 108 of file CColouredPointsMap.h.

◆ setPointRGBu8()

void mrpt::mrpt::opengl::detail::PointCloudAdapterHelperNoRGB< mrpt::maps::CWeightedPointsMap , float >::setPointRGBu8 ( const size_t  idx,
const uint8_t  r,
const uint8_t  g,
const uint8_t  b 
)
inlineinherited

Set RGBu8 coordinates of i'th point.

Definition at line 125 of file CColouredPointsMap.h.

◆ setPointXYZ()

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

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

◆ setPointXYZ_RGBf()

void mrpt::mrpt::opengl::detail::PointCloudAdapterHelperNoRGB< mrpt::maps::CWeightedPointsMap , float >::setPointXYZ_RGBf ( const size_t  idx,
const float  x,
const float  y,
const float  z,
const float  r,
const float  g,
const float  b 
)
inlineinherited

Set XYZ_RGBf coordinates of i'th point.

Definition at line 70 of file CColouredPointsMap.h.

◆ setPointXYZ_RGBu8()

void mrpt::mrpt::opengl::detail::PointCloudAdapterHelperNoRGB< mrpt::maps::CWeightedPointsMap , float >::setPointXYZ_RGBu8 ( const size_t  idx,
const float  x,
const float  y,
const float  z,
const uint8_t  r,
const uint8_t  g,
const uint8_t  b 
)
inlineinherited

Set XYZ_RGBu8 coordinates of i'th point.

Definition at line 90 of file CColouredPointsMap.h.

◆ size()

Get number of points.

Definition at line 185 of file CWeightedPointsMap.h.

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

Member Data Documentation

◆ HAS_RGB

Has any color RGB info?

Definition at line 173 of file CWeightedPointsMap.h.

◆ HAS_RGBf

Has native RGB info (as floats)?

Definition at line 175 of file CWeightedPointsMap.h.

◆ HAS_RGBu8

Has native RGB info (as uint8_t)?

Definition at line 177 of file CWeightedPointsMap.h.

◆ m_obj




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020