Main MRPT website > C++ reference
MRPT logo
List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Attributes
mrpt::utils::PointCloudAdapter< mrpt::slam::CSimplePointsMap > Class Template Reference

Detailed Description

template<>
class mrpt::utils::PointCloudAdapter< mrpt::slam::CSimplePointsMap >

Specialization mrpt::utils::PointCloudAdapter<mrpt::slam::CSimplePointsMap>

Definition at line 153 of file CSimplePointsMap.h.

#include <mrpt/slam/CSimplePointsMap.h>

Inheritance diagram for mrpt::utils::PointCloudAdapter< mrpt::slam::CSimplePointsMap >:
Inheritance graph
[legend]

Public Types

typedef float coords_t
 The type of each point XYZ coordinates. More...
 
typedef PointCloudAdapter
< mrpt::slam::CSimplePointsMap
Derived
 

Public Member Functions

 PointCloudAdapter (const mrpt::slam::CSimplePointsMap &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...
 
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 floatx, const floaty, const floatz, 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 floatx, const floaty, const floatz, 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::slam::CSimplePointsMapm_obj
 

Member Typedef Documentation

The type of each point XYZ coordinates.

Definition at line 158 of file CSimplePointsMap.h.

Definition at line 51 of file CColouredPointsMap.h.

Constructor & Destructor Documentation

Constructor (accept a const ref for convenience)

Definition at line 164 of file CSimplePointsMap.h.

Member Function Documentation

Definition at line 53 of file CColouredPointsMap.h.

Definition at line 54 of file CColouredPointsMap.h.

void mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< mrpt::slam::CSimplePointsMap , float >::getPointRGBf ( const size_t  idx,
float &  r,
float &  g,
float &  b 
) const
inlineinherited

Get RGBf color of i'th point.

Definition at line 81 of file CColouredPointsMap.h.

void mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< mrpt::slam::CSimplePointsMap , 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 91 of file CColouredPointsMap.h.

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

Get XYZ coordinates of i'th point.

Definition at line 172 of file CSimplePointsMap.h.

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

void mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< mrpt::slam::CSimplePointsMap , 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 58 of file CColouredPointsMap.h.

void mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< mrpt::slam::CSimplePointsMap , 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 70 of file CColouredPointsMap.h.

void mrpt::utils::PointCloudAdapter< mrpt::slam::CSimplePointsMap >::resize ( const size_t  N)
inline

Set number of points (to uninitialized values)

Definition at line 168 of file CSimplePointsMap.h.

References mrpt::slam::CSimplePointsMap::resize().

void mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< mrpt::slam::CSimplePointsMap , 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 86 of file CColouredPointsMap.h.

void mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< mrpt::slam::CSimplePointsMap , 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 96 of file CColouredPointsMap.h.

void mrpt::utils::PointCloudAdapter< mrpt::slam::CSimplePointsMap >::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 176 of file CSimplePointsMap.h.

References mrpt::slam::CSimplePointsMap::setPointFast().

void mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< mrpt::slam::CSimplePointsMap , 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 63 of file CColouredPointsMap.h.

void mrpt::mrpt::utils::detail::PointCloudAdapterHelperNoRGB< mrpt::slam::CSimplePointsMap , 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 75 of file CColouredPointsMap.h.

Get number of points.

Definition at line 166 of file CSimplePointsMap.h.

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

Member Data Documentation

Has any color RGB info?

Definition at line 159 of file CSimplePointsMap.h.

Has native RGB info (as floats)?

Definition at line 160 of file CSimplePointsMap.h.

Has native RGB info (as uint8_t)?

Definition at line 161 of file CSimplePointsMap.h.

Definition at line 156 of file CSimplePointsMap.h.




Page generated by Doxygen 1.8.8 for MRPT 1.2.2 SVN:Unversioned directory at Tue Oct 14 02:14:08 UTC 2014