Main MRPT website > C++ reference for MRPT 1.3.2
List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Attributes
mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured > Class Template Reference

Detailed Description

template<>
class mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >

Specialization mrpt::utils::PointCloudAdapter<mrpt::opengl::CPointCloudColoured>

Definition at line 255 of file CPointCloudColoured.h.

#include <mrpt/opengl/CPointCloudColoured.h>

Public Types

typedef float coords_t
 The type of each point XYZ coordinates. More...
 

Public Member Functions

 PointCloudAdapter (const mrpt::opengl::CPointCloudColoured &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::opengl::CPointCloudColouredm_obj
 

Member Typedef Documentation

§ coords_t

The type of each point XYZ coordinates.

Definition at line 260 of file CPointCloudColoured.h.

Constructor & Destructor Documentation

§ PointCloudAdapter()

Constructor (accept a const ref for convenience)

Definition at line 266 of file CPointCloudColoured.h.

Member Function Documentation

§ getPointRGBf()

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

Get RGBf color of i'th point.

Definition at line 310 of file CPointCloudColoured.h.

References mrpt::opengl::CPointCloudColoured::getPointColor_fast().

§ getPointRGBu8()

void mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::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 315 of file CPointCloudColoured.h.

References mrpt::opengl::CPointCloudColoured::getPointColor_fast().

§ getPointXYZ()

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

§ getPointXYZ_RGBf()

template<typename T >
void mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::getPointXYZ_RGBf ( const size_t  idx,
T &  x,
T &  y,
T &  z,
float &  r,
float &  g,
float &  b 
) const
inline

§ getPointXYZ_RGBu8()

template<typename T >
void mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::getPointXYZ_RGBu8 ( const size_t  idx,
T &  x,
T &  y,
T &  z,
uint8_t &  r,
uint8_t &  g,
uint8_t &  b 
) const
inline

§ resize()

void mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::resize ( const size_t  N)
inline

Set number of points (to uninitialized values)

Definition at line 270 of file CPointCloudColoured.h.

References mrpt::opengl::CPointCloudColoured::resize().

§ setPointRGBf()

void mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::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 312 of file CPointCloudColoured.h.

References mrpt::opengl::CPointCloudColoured::setPointColor_fast().

§ setPointRGBu8()

void mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::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 321 of file CPointCloudColoured.h.

References mrpt::opengl::CPointCloudColoured::setPointColor_fast().

§ setPointXYZ()

void mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::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 281 of file CPointCloudColoured.h.

References mrpt::opengl::CPointCloudColoured::setPoint_fast().

§ setPointXYZ_RGBf()

void mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::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 293 of file CPointCloudColoured.h.

References mrpt::opengl::CPointCloudColoured::setPoint_fast().

§ setPointXYZ_RGBu8()

void mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::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 305 of file CPointCloudColoured.h.

References mrpt::opengl::CPointCloudColoured::setPoint_fast().

§ size()

Get number of points.

Definition at line 268 of file CPointCloudColoured.h.

References mrpt::opengl::CPointCloudColoured::size().

Member Data Documentation

§ HAS_RGB

Has any color RGB info?

Definition at line 261 of file CPointCloudColoured.h.

§ HAS_RGBf

Has native RGB info (as floats)?

Definition at line 262 of file CPointCloudColoured.h.

§ HAS_RGBu8

Has native RGB info (as uint8_t)?

Definition at line 263 of file CPointCloudColoured.h.

§ m_obj

Definition at line 258 of file CPointCloudColoured.h.




Page generated by Doxygen 1.8.12 for MRPT 1.3.2 SVN: at Thu Nov 10 13:22:34 UTC 2016