MRPT
2.0.1
|
Specialization mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloudColoured> mrpt_adapters_grp.
Definition at line 236 of file CPointCloudColoured.h.
#include <mrpt/opengl/CPointCloudColoured.h>
Public Types | |
using | coords_t = float |
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... | |
void | setDimensions (size_t height, 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... | |
void | setInvalidPoint (const size_t idx) |
template<typename T > | |
void | getPointXYZ_RGBAf (const size_t idx, T &x, T &y, T &z, float &Rf, float &Gf, float &Bf, float &Af) const |
Get XYZ_RGBf coordinates of i'th point. More... | |
void | setPointXYZ_RGBAf (const size_t idx, const coords_t x, const coords_t y, const coords_t z, const float Rf, const float Gf, const float Bf, const float Af) |
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, const uint8_t a=0xff) |
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 constexpr bool | HAS_RGB = true |
Has any color RGB info? More... | |
static constexpr bool | HAS_RGBf = true |
Has native RGB info (as floats)? More... | |
static constexpr bool | HAS_RGBu8 = false |
Has native RGB info (as uint8_t)? More... | |
Private Attributes | |
mrpt::opengl::CPointCloudColoured & | m_obj |
using mrpt::opengl::PointCloudAdapter< mrpt::opengl::CPointCloudColoured >::coords_t = float |
The type of each point XYZ coordinates.
Definition at line 243 of file CPointCloudColoured.h.
|
inline |
Constructor (accept a const ref for convenience)
Definition at line 252 of file CPointCloudColoured.h.
|
inline |
Get RGBf color of i'th point.
Definition at line 335 of file CPointCloudColoured.h.
References mrpt::opengl::CPointCloudColoured::getPointColor_fast().
|
inline |
Get RGBu8 color of i'th point.
Definition at line 348 of file CPointCloudColoured.h.
References mrpt::opengl::CPointCloudColoured::getPointColor_fast().
|
inline |
Get XYZ coordinates of i'th point.
Definition at line 264 of file CPointCloudColoured.h.
References mrpt::opengl::CPointCloudColoured::getPoint3Df(), and mrpt::math::TPoint3D_data< T >::x.
|
inline |
Get XYZ_RGBf coordinates of i'th point.
Definition at line 285 of file CPointCloudColoured.h.
References mrpt::opengl::CPointCloudColoured::getPoint3Df(), mrpt::opengl::CPointCloudColoured::getPointColor(), and mrpt::u8tof().
|
inline |
Get XYZ_RGBu8 coordinates of i'th point.
Definition at line 311 of file CPointCloudColoured.h.
References mrpt::opengl::CPointCloudColoured::getPoint3Df(), mrpt::opengl::CPointCloudColoured::getPointColor(), and mrpt::img::TColor::R.
|
inline |
Set number of points (to uninitialized values)
Definition at line 259 of file CPointCloudColoured.h.
References mrpt::opengl::CPointCloudColoured::resize().
|
inline |
Does nothing as of now.
Definition at line 261 of file CPointCloudColoured.h.
|
inline |
Definition at line 278 of file CPointCloudColoured.h.
References mrpt::opengl::CPointCloudColoured::setPoint_fast().
|
inline |
Set XYZ_RGBf coordinates of i'th point.
Definition at line 341 of file CPointCloudColoured.h.
References mrpt::opengl::CPointCloudColoured::setPointColor_fast().
|
inline |
Set RGBu8 coordinates of i'th point.
Definition at line 354 of file CPointCloudColoured.h.
References mrpt::opengl::CPointCloudColoured::setPointColor_u8_fast().
|
inline |
Set XYZ coordinates of i'th point.
Definition at line 272 of file CPointCloudColoured.h.
References mrpt::opengl::CPointCloudColoured::setPoint_fast().
|
inline |
Set XYZ_RGBf coordinates of i'th point.
Definition at line 300 of file CPointCloudColoured.h.
References mrpt::f2u8(), and mrpt::opengl::CPointCloudColoured::setPoint().
|
inline |
Set XYZ_RGBu8 coordinates of i'th point.
Definition at line 325 of file CPointCloudColoured.h.
References mrpt::opengl::CPointCloudColoured::setPoint_fast().
|
inline |
Get number of points.
Definition at line 257 of file CPointCloudColoured.h.
References mrpt::opengl::CPointCloudColoured::size().
|
static |
Has any color RGB info?
Definition at line 245 of file CPointCloudColoured.h.
|
static |
Has native RGB info (as floats)?
Definition at line 247 of file CPointCloudColoured.h.
|
static |
Has native RGB info (as uint8_t)?
Definition at line 249 of file CPointCloudColoured.h.
|
private |
Definition at line 239 of file CPointCloudColoured.h.
Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |