MRPT  1.9.9
mrpt::opengl::PointCloudAdapter< mrpt::obs::CObservation3DRangeScan > Class Template Reference

Detailed Description

template<>
class mrpt::opengl::PointCloudAdapter< mrpt::obs::CObservation3DRangeScan >

Specialization mrpt::opengl::PointCloudAdapter<CObservation3DRangeScan>

Definition at line 798 of file CObservation3DRangeScan.h.

#include <mrpt/obs/CObservation3DRangeScan.h>

Public Types

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

Public Member Functions

 PointCloudAdapter (const mrpt::obs::CObservation3DRangeScan &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 (const size_t &height, const 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::obs::CObservation3DRangeScanm_obj
 

Member Typedef Documentation

◆ coords_t

The type of each point XYZ coordinates.

Definition at line 805 of file CObservation3DRangeScan.h.

Constructor & Destructor Documentation

◆ PointCloudAdapter()

Constructor (accept a const ref for convenience)

Definition at line 814 of file CObservation3DRangeScan.h.

Member Function Documentation

◆ getPointXYZ()

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

◆ resize()

Set number of points (to uninitialized values)

Definition at line 821 of file CObservation3DRangeScan.h.

References mrpt::obs::CObservation3DRangeScan::hasPoints3D, and mrpt::obs::CObservation3DRangeScan::resizePoints3DVectors().

Here is the call graph for this function:

◆ setDimensions()

void mrpt::opengl::PointCloudAdapter< mrpt::obs::CObservation3DRangeScan >::setDimensions ( const size_t &  height,
const size_t &  width 
)
inline

Does nothing as of now.

Definition at line 827 of file CObservation3DRangeScan.h.

◆ setInvalidPoint()

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

Set XYZ coordinates of i'th point.

Definition at line 845 of file CObservation3DRangeScan.h.

References THROW_EXCEPTION.

◆ setPointXYZ()

void mrpt::opengl::PointCloudAdapter< mrpt::obs::CObservation3DRangeScan >::setPointXYZ ( const size_t  idx,
const coords_t  x,
const coords_t  y,
const coords_t  z 
)
inline

◆ size()

Get number of points.

Definition at line 819 of file CObservation3DRangeScan.h.

References mrpt::obs::CObservation3DRangeScan::points3D_x.

Member Data Documentation

◆ HAS_RGB

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

Has any color RGB info?

Definition at line 807 of file CObservation3DRangeScan.h.

◆ HAS_RGBf

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

Has native RGB info (as floats)?

Definition at line 809 of file CObservation3DRangeScan.h.

◆ HAS_RGBu8

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

Has native RGB info (as uint8_t)?

Definition at line 811 of file CObservation3DRangeScan.h.

◆ m_obj




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019