Specialization mrpt::utils::PointCloudAdapter<mrpt::opengl::CPointCloudColoured>
Definition at line 267 of file CPointCloudColoured.h.
#include <mrpt/opengl/CPointCloudColoured.h>
Public Types | |
| typedef float | coords_t |
| The type of each point XYZ coordinates. | |
Public Member Functions | |
| PointCloudAdapter (const mrpt::opengl::CPointCloudColoured &obj) | |
| Constructor (accept a const ref for convenience) | |
| size_t | size () const |
| Get number of points. | |
| void | resize (const size_t N) |
| Set number of points (to uninitialized values) | |
| template<typename T > | |
| void | getPointXYZ (const size_t idx, T &x, T &y, T &z) const |
| Get XYZ coordinates of i'th point. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| void | getPointRGBf (const size_t idx, float &r, float &g, float &b) const |
| Get RGBf color of i'th point. | |
| void | setPointRGBf (const size_t idx, const float r, const float g, const float b) |
| Set XYZ_RGBf coordinates of i'th point. | |
| void | getPointRGBu8 (const size_t idx, uint8_t &r, uint8_t &g, uint8_t &b) const |
| Get RGBu8 color of i'th point. | |
| 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. | |
Static Public Attributes | |
| static const int | HAS_RGB = 1 |
| Has any color RGB info? | |
| static const int | HAS_RGBf = 1 |
| Has native RGB info (as floats)? | |
| static const int | HAS_RGBu8 = 0 |
| Has native RGB info (as uint8_t)? | |
Private Attributes | |
| mrpt::opengl::CPointCloudColoured & | m_obj |
| typedef float mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::coords_t |
The type of each point XYZ coordinates.
Definition at line 272 of file CPointCloudColoured.h.
| mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::PointCloudAdapter | ( | const mrpt::opengl::CPointCloudColoured & | obj | ) | [inline] |
Constructor (accept a const ref for convenience)
Definition at line 278 of file CPointCloudColoured.h.
| 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 322 of file CPointCloudColoured.h.
| 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 327 of file CPointCloudColoured.h.
| void mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::getPointXYZ | ( | const size_t | idx, |
| T & | x, | ||
| T & | y, | ||
| T & | z | ||
| ) | const [inline] |
Get XYZ coordinates of i'th point.
Definition at line 286 of file CPointCloudColoured.h.
References mrpt::opengl::CPointCloudColoured::TPointColour::x, mrpt::opengl::CPointCloudColoured::TPointColour::y, and mrpt::opengl::CPointCloudColoured::TPointColour::z.
| 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] |
Get XYZ_RGBf coordinates of i'th point.
Definition at line 299 of file CPointCloudColoured.h.
References mrpt::opengl::CPointCloudColoured::TPointColour::B, mrpt::opengl::CPointCloudColoured::TPointColour::G, mrpt::opengl::CPointCloudColoured::TPointColour::R, mrpt::opengl::CPointCloudColoured::TPointColour::x, mrpt::opengl::CPointCloudColoured::TPointColour::y, and mrpt::opengl::CPointCloudColoured::TPointColour::z.
| 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] |
Get XYZ_RGBu8 coordinates of i'th point.
Definition at line 311 of file CPointCloudColoured.h.
References mrpt::opengl::CPointCloudColoured::TPointColour::B, mrpt::opengl::CPointCloudColoured::TPointColour::G, mrpt::opengl::CPointCloudColoured::TPointColour::R, mrpt::opengl::CPointCloudColoured::TPointColour::x, mrpt::opengl::CPointCloudColoured::TPointColour::y, and mrpt::opengl::CPointCloudColoured::TPointColour::z.
| void mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::resize | ( | const size_t | N | ) | [inline] |
Set number of points (to uninitialized values)
Definition at line 282 of file CPointCloudColoured.h.
| 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 324 of file CPointCloudColoured.h.
| 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 333 of file CPointCloudColoured.h.
| 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 293 of file CPointCloudColoured.h.
| 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 305 of file CPointCloudColoured.h.
| 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 317 of file CPointCloudColoured.h.
| size_t mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::size | ( | ) | const [inline] |
Get number of points.
Definition at line 280 of file CPointCloudColoured.h.
const int mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::HAS_RGB = 1 [static] |
Has any color RGB info?
Definition at line 273 of file CPointCloudColoured.h.
const int mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::HAS_RGBf = 1 [static] |
Has native RGB info (as floats)?
Definition at line 274 of file CPointCloudColoured.h.
const int mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::HAS_RGBu8 = 0 [static] |
Has native RGB info (as uint8_t)?
Definition at line 275 of file CPointCloudColoured.h.
mrpt::opengl::CPointCloudColoured& mrpt::utils::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::m_obj [private] |
Definition at line 270 of file CPointCloudColoured.h.
| Page generated by Doxygen 1.7.4 for MRPT 0.9.5 SVN:2717 at Sun Oct 16 16:08:03 PDT 2011 | Hosted on: |