Specialization mrpt::utils::PointCloudAdapter<mrpt::opengl::CPointCloud>
Definition at line 255 of file CPointCloud.h.
#include <mrpt/opengl/CPointCloud.h>
Public Types | |
typedef float | coords_t |
The type of each point XYZ coordinates. More... | |
typedef PointCloudAdapter< mrpt::opengl::CPointCloud > | Derived |
Public Member Functions | |
PointCloudAdapter (const mrpt::opengl::CPointCloud &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... | |
void | setInvalidPoint (const size_t idx) |
Set XYZ coordinates of i'th point. More... | |
Derived & | derived () |
const Derived & | derived () 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::opengl::CPointCloud & | m_obj |
typedef float mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloud >::coords_t |
The type of each point XYZ coordinates.
Definition at line 260 of file CPointCloud.h.
|
inherited |
Definition at line 51 of file maps/CColouredPointsMap.h.
|
inline |
Constructor (accept a const ref for convenience)
Definition at line 266 of file CPointCloud.h.
|
inlineinherited |
Definition at line 53 of file maps/CColouredPointsMap.h.
|
inlineinherited |
Definition at line 54 of file maps/CColouredPointsMap.h.
|
inlineinherited |
Get RGBf color of i'th point.
Definition at line 81 of file maps/CColouredPointsMap.h.
|
inlineinherited |
Get RGBu8 color of i'th point.
Definition at line 91 of file maps/CColouredPointsMap.h.
|
inline |
Get XYZ coordinates of i'th point.
Definition at line 274 of file CPointCloud.h.
References mrpt::opengl::CPointCloud::getArrayX(), mrpt::opengl::CPointCloud::getArrayY(), and mrpt::opengl::CPointCloud::getArrayZ().
|
inlineinherited |
Get XYZ_RGBf coordinates of i'th point.
Definition at line 58 of file maps/CColouredPointsMap.h.
|
inlineinherited |
Get XYZ_RGBu8 coordinates of i'th point.
Definition at line 70 of file maps/CColouredPointsMap.h.
|
inline |
Set number of points (to uninitialized values)
Definition at line 270 of file CPointCloud.h.
References mrpt::opengl::CPointCloud::resize().
|
inline |
Set XYZ coordinates of i'th point.
Definition at line 285 of file CPointCloud.h.
References THROW_EXCEPTION.
|
inlineinherited |
Set XYZ_RGBf coordinates of i'th point.
Definition at line 86 of file maps/CColouredPointsMap.h.
|
inlineinherited |
Set RGBu8 coordinates of i'th point.
Definition at line 96 of file maps/CColouredPointsMap.h.
|
inline |
Set XYZ coordinates of i'th point.
Definition at line 280 of file CPointCloud.h.
References mrpt::opengl::CPointCloud::setPoint_fast().
|
inlineinherited |
Set XYZ_RGBf coordinates of i'th point.
Definition at line 63 of file maps/CColouredPointsMap.h.
|
inlineinherited |
Set XYZ_RGBu8 coordinates of i'th point.
Definition at line 75 of file maps/CColouredPointsMap.h.
|
inline |
Get number of points.
Definition at line 268 of file CPointCloud.h.
References mrpt::opengl::CPointCloud::size().
|
static |
Has any color RGB info?
Definition at line 261 of file CPointCloud.h.
|
static |
Has native RGB info (as floats)?
Definition at line 262 of file CPointCloud.h.
|
static |
Has native RGB info (as uint8_t)?
Definition at line 263 of file CPointCloud.h.
|
private |
Definition at line 258 of file CPointCloud.h.
Page generated by Doxygen 1.8.14 for MRPT 1.5.5 Git: e06b63dbf Fri Dec 1 14:41:11 2017 +0100 at lun oct 28 01:31:35 CET 2019 |