MRPT  1.9.9
List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Attributes
mrpt::opengl::PointCloudAdapter< mrpt::opengl::CPointCloud > Class Template Reference

Detailed Description

template<>
class mrpt::opengl::PointCloudAdapter< mrpt::opengl::CPointCloud >

Specialization mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloud>

Definition at line 294 of file CPointCloud.h.

#include <mrpt/opengl/CPointCloud.h>

Public Types

using coords_t = float
 The type of each point XYZ coordinates. More...
 

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...
 
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)
 Set XYZ coordinates of i'th point. More...
 

Static Public Attributes

static constexpr bool HAS_RGB = false
 Has any color RGB info? More...
 
static constexpr bool HAS_RGBf = false
 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::CPointCloudm_obj
 

Member Typedef Documentation

◆ coords_t

The type of each point XYZ coordinates.

Definition at line 301 of file CPointCloud.h.

Constructor & Destructor Documentation

◆ PointCloudAdapter()

Constructor (accept a const ref for convenience)

Definition at line 310 of file CPointCloud.h.

Member Function Documentation

◆ getPointXYZ()

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

Get XYZ coordinates of i'th point.

Definition at line 322 of file CPointCloud.h.

◆ resize()

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

Set number of points (to uninitialized values)

Definition at line 317 of file CPointCloud.h.

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

Here is the call graph for this function:

◆ setDimensions()

void mrpt::opengl::PointCloudAdapter< mrpt::opengl::CPointCloud >::setDimensions ( size_t  height,
size_t  width 
)
inline

Does nothing as of now.

Definition at line 319 of file CPointCloud.h.

◆ setInvalidPoint()

void mrpt::opengl::PointCloudAdapter< mrpt::opengl::CPointCloud >::setInvalidPoint ( const size_t  idx)
inline

Set XYZ coordinates of i'th point.

Definition at line 337 of file CPointCloud.h.

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

Here is the call graph for this function:

◆ setPointXYZ()

void mrpt::opengl::PointCloudAdapter< mrpt::opengl::CPointCloud >::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 330 of file CPointCloud.h.

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

Here is the call graph for this function:

◆ size()

Get number of points.

Definition at line 315 of file CPointCloud.h.

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

Here is the call graph for this function:

Member Data Documentation

◆ HAS_RGB

constexpr bool mrpt::opengl::PointCloudAdapter< mrpt::opengl::CPointCloud >::HAS_RGB = false
static

Has any color RGB info?

Definition at line 303 of file CPointCloud.h.

◆ HAS_RGBf

constexpr bool mrpt::opengl::PointCloudAdapter< mrpt::opengl::CPointCloud >::HAS_RGBf = false
static

Has native RGB info (as floats)?

Definition at line 305 of file CPointCloud.h.

◆ HAS_RGBu8

constexpr bool mrpt::opengl::PointCloudAdapter< mrpt::opengl::CPointCloud >::HAS_RGBu8 = false
static

Has native RGB info (as uint8_t)?

Definition at line 307 of file CPointCloud.h.

◆ m_obj

Definition at line 297 of file CPointCloud.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 3a26b90fd Wed Mar 25 20:17:03 2020 +0100 at miƩ mar 25 23:05:41 CET 2020