Main MRPT website > C++ reference for MRPT 1.9.9
PCL_adapters.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef mrpt_maps_PCL_adapters_H
10 #define mrpt_maps_PCL_adapters_H
11 
12 #include <mrpt/config.h>
14 
15 // NOTE: Only include this file if you have PCL installed in your system
16 // and do it only after including MRPT headers...
17 
18 // Make sure the essential PCL headers are included:
19 #include <pcl/point_types.h>
20 #include <pcl/point_cloud.h>
21 
22 namespace mrpt
23 {
24 namespace opengl
25 {
26 /** Specialization
27  * mrpt::opengl::PointCloudAdapter<pcl::PointCloud<pcl::PointXYZ> > for an XYZ
28  * point cloud (without RGB) \ingroup mrpt_adapters_grp */
29 template <>
30 class PointCloudAdapter<pcl::PointCloud<pcl::PointXYZ>>
32  pcl::PointCloud<pcl::PointXYZ>, float>
33 {
34  private:
35  pcl::PointCloud<pcl::PointXYZ>& m_obj;
36 
37  public:
38  /** The type of each point XYZ coordinates */
39  using coords_t = float;
40  /** Has any color RGB info? */
41  static const int HAS_RGB = 0;
42  /** Has native RGB info (as floats)? */
43  static const int HAS_RGBf = 0;
44  /** Has native RGB info (as uint8_t)? */
45  static const int HAS_RGBu8 = 0;
46 
47  /** Constructor (accept a const ref for convenience) */
48  inline PointCloudAdapter(const pcl::PointCloud<pcl::PointXYZ>& obj)
49  : m_obj(*const_cast<pcl::PointCloud<pcl::PointXYZ>*>(&obj))
50  {
51  }
52  /** Get number of points */
53  inline size_t size() const { return m_obj.points.size(); }
54  /** Set number of points (to uninitialized values) */
55  inline void resize(const size_t N) { m_obj.points.resize(N); }
56  /** Get XYZ coordinates of i'th point */
57  template <typename T>
58  inline void getPointXYZ(const size_t idx, T& x, T& y, T& z) const
59  {
60  const pcl::PointXYZ& p = m_obj.points[idx];
61  x = p.x;
62  y = p.y;
63  z = p.z;
64  }
65  /** Set XYZ coordinates of i'th point */
66  inline void setPointXYZ(
67  const size_t idx, const coords_t x, const coords_t y, const coords_t z)
68  {
69  pcl::PointXYZ& p = m_obj.points[idx];
70  p.x = x;
71  p.y = y;
72  p.z = z;
73  }
74 
75  /** Set Invalid Point */
76  inline void setInvalidPoint(const size_t idx)
77  {
78  pcl::PointXYZ& p = m_obj.points[idx];
79  p.x = p.y = p.z = std::numeric_limits<float>::quiet_NaN();
80  }
81 }; // end of mrpt::opengl::PointCloudAdapter<pcl::PointCloud<pcl::PointXYZ> >
82 
83 /** Specialization
84  * mrpt::opengl::PointCloudAdapter<pcl::PointCloud<pcl::PointXYZRGB> > for an
85  * XYZ point cloud with RGB \ingroup mrpt_adapters_grp */
86 template <>
87 class PointCloudAdapter<pcl::PointCloud<pcl::PointXYZRGB>>
88 {
89  private:
90  pcl::PointCloud<pcl::PointXYZRGB>& m_obj;
91 
92  public:
93  /** The type of each point XYZ coordinates */
94  using coords_t = float;
95  /** Has any color RGB info? */
96  static const int HAS_RGB = 1;
97  /** Has native RGB info (as floats)? */
98  static const int HAS_RGBf = 0;
99  /** Has native RGB info (as uint8_t)? */
100  static const int HAS_RGBu8 = 1;
101 
102  /** Constructor (accept a const ref for convenience) */
103  inline PointCloudAdapter(const pcl::PointCloud<pcl::PointXYZRGB>& obj)
104  : m_obj(*const_cast<pcl::PointCloud<pcl::PointXYZRGB>*>(&obj))
105  {
106  }
107  /** Get number of points */
108  inline size_t size() const { return m_obj.points.size(); }
109  /** Set number of points (to uninitialized values) */
110  inline void resize(const size_t N) { m_obj.points.resize(N); }
111  /** Get XYZ coordinates of i'th point */
112  template <typename T>
113  inline void getPointXYZ(const size_t idx, T& x, T& y, T& z) const
114  {
115  const pcl::PointXYZRGB& p = m_obj.points[idx];
116  x = p.x;
117  y = p.y;
118  z = p.z;
119  }
120  /** Set XYZ coordinates of i'th point */
121  inline void setPointXYZ(
122  const size_t idx, const coords_t x, const coords_t y, const coords_t z)
123  {
124  pcl::PointXYZRGB& p = m_obj.points[idx];
125  p.x = x;
126  p.y = y;
127  p.z = z;
128  p.r = p.g = p.b = 255;
129  }
130 
131  /** Get XYZ_RGBf coordinates of i'th point */
132  template <typename T>
133  inline void getPointXYZ_RGBf(
134  const size_t idx, T& x, T& y, T& z, float& r, float& g, float& b) const
135  {
136  const pcl::PointXYZRGB& p = m_obj.points[idx];
137  x = p.x;
138  y = p.y;
139  z = p.z;
140  r = p.r / 255.f;
141  g = p.g / 255.f;
142  b = p.b / 255.f;
143  }
144  /** Set XYZ_RGBf coordinates of i'th point */
145  inline void setPointXYZ_RGBf(
146  const size_t idx, const coords_t x, const coords_t y, const coords_t z,
147  const float r, const float g, const float b)
148  {
149  pcl::PointXYZRGB& p = m_obj.points[idx];
150  p.x = x;
151  p.y = y;
152  p.z = z;
153  p.r = r * 255;
154  p.g = g * 255;
155  p.b = b * 255;
156  }
157 
158  /** Get XYZ_RGBu8 coordinates of i'th point */
159  template <typename T>
160  inline void getPointXYZ_RGBu8(
161  const size_t idx, T& x, T& y, T& z, uint8_t& r, uint8_t& g,
162  uint8_t& b) const
163  {
164  const pcl::PointXYZRGB& p = m_obj.points[idx];
165  x = p.x;
166  y = p.y;
167  z = p.z;
168  r = p.r;
169  g = p.g;
170  b = p.b;
171  }
172  /** Set XYZ_RGBu8 coordinates of i'th point */
173  inline void setPointXYZ_RGBu8(
174  const size_t idx, const coords_t x, const coords_t y, const coords_t z,
175  const uint8_t r, const uint8_t g, const uint8_t b)
176  {
177  pcl::PointXYZRGB& p = m_obj.points[idx];
178  p.x = x;
179  p.y = y;
180  p.z = z;
181  p.r = r;
182  p.g = g;
183  p.b = b;
184  }
185 
186  /** Get RGBf color of i'th point */
187  inline void getPointRGBf(
188  const size_t idx, float& r, float& g, float& b) const
189  {
190  const pcl::PointXYZRGB& p = m_obj.points[idx];
191  r = p.r / 255.f;
192  g = p.g / 255.f;
193  b = p.b / 255.f;
194  }
195  /** Set XYZ_RGBf coordinates of i'th point */
196  inline void setPointRGBf(
197  const size_t idx, const float r, const float g, const float b)
198  {
199  pcl::PointXYZRGB& p = m_obj.points[idx];
200  p.r = r * 255;
201  p.g = g * 255;
202  p.b = b * 255;
203  }
204 
205  /** Get RGBu8 color of i'th point */
206  inline void getPointRGBu8(
207  const size_t idx, uint8_t& r, uint8_t& g, uint8_t& b) const
208  {
209  const pcl::PointXYZRGB& p = m_obj.points[idx];
210  r = p.r;
211  g = p.g;
212  b = p.b;
213  }
214  /** Set RGBu8 coordinates of i'th point */
215  inline void setPointRGBu8(
216  const size_t idx, const uint8_t r, const uint8_t g, const uint8_t b)
217  {
218  pcl::PointXYZRGB& p = m_obj.points[idx];
219  p.r = r;
220  p.g = g;
221  p.b = b;
222  }
223 
224 }; // end of mrpt::opengl::PointCloudAdapter<pcl::PointCloud<pcl::PointXYZRGB>
225 // >
226 
227 /** Specialization
228  * mrpt::opengl::PointCloudAdapter<pcl::PointCloud<pcl::PointXYZRGBA> > for an
229  * XYZ point cloud with RGB \ingroup mrpt_adapters_grp */
230 template <>
231 class PointCloudAdapter<pcl::PointCloud<pcl::PointXYZRGBA>>
232 {
233  private:
234  pcl::PointCloud<pcl::PointXYZRGBA>& m_obj;
235 
236  public:
237  /** The type of each point XYZ coordinates */
238  using coords_t = float;
239  /** Has any color RGB info? */
240  static const int HAS_RGB = 1;
241  /** Has native RGB info (as floats)? */
242  static const int HAS_RGBf = 0;
243  /** Has native RGB info (as uint8_t)? */
244  static const int HAS_RGBu8 = 1;
245 
246  /** Constructor (accept a const ref for convenience) */
247  inline PointCloudAdapter(const pcl::PointCloud<pcl::PointXYZRGBA>& obj)
248  : m_obj(*const_cast<pcl::PointCloud<pcl::PointXYZRGBA>*>(&obj))
249  {
250  }
251  /** Get number of points */
252  inline size_t size() const { return m_obj.points.size(); }
253  /** Set number of points (to uninitialized values) */
254  inline void resize(const size_t N) { m_obj.points.resize(N); }
255  /** Get XYZ coordinates of i'th point */
256  template <typename T>
257  inline void getPointXYZ(const size_t idx, T& x, T& y, T& z) const
258  {
259  const pcl::PointXYZRGBA& p = m_obj.points[idx];
260  x = p.x;
261  y = p.y;
262  z = p.z;
263  }
264  /** Set XYZ coordinates of i'th point */
265  inline void setPointXYZ(
266  const size_t idx, const coords_t x, const coords_t y, const coords_t z)
267  {
268  pcl::PointXYZRGBA& p = m_obj.points[idx];
269  p.x = x;
270  p.y = y;
271  p.z = z;
272  p.r = p.g = p.b = 255;
273  }
274 
275  /** Set Invalid Point */
276  inline void setInvalidPoint(const size_t idx)
277  {
278  pcl::PointXYZRGBA& p = m_obj.points[idx];
279  p.x = p.y = p.z = std::numeric_limits<float>::quiet_NaN();
280  }
281 
282  /** Get XYZ_RGBf coordinates of i'th point */
283  template <typename T>
284  inline void getPointXYZ_RGBf(
285  const size_t idx, T& x, T& y, T& z, float& r, float& g, float& b) const
286  {
287  const pcl::PointXYZRGBA& p = m_obj.points[idx];
288  x = p.x;
289  y = p.y;
290  z = p.z;
291  r = p.r / 255.f;
292  g = p.g / 255.f;
293  b = p.b / 255.f;
294  }
295  /** Set XYZ_RGBf coordinates of i'th point */
296  inline void setPointXYZ_RGBf(
297  const size_t idx, const coords_t x, const coords_t y, const coords_t z,
298  const float r, const float g, const float b)
299  {
300  pcl::PointXYZRGBA& p = m_obj.points[idx];
301  p.x = x;
302  p.y = y;
303  p.z = z;
304  p.r = r * 255;
305  p.g = g * 255;
306  p.b = b * 255;
307  }
308 
309  /** Get XYZ_RGBu8 coordinates of i'th point */
310  template <typename T>
311  inline void getPointXYZ_RGBu8(
312  const size_t idx, T& x, T& y, T& z, uint8_t& r, uint8_t& g,
313  uint8_t& b) const
314  {
315  const pcl::PointXYZRGBA& p = m_obj.points[idx];
316  x = p.x;
317  y = p.y;
318  z = p.z;
319  r = p.r;
320  g = p.g;
321  b = p.b;
322  }
323  /** Set XYZ_RGBu8 coordinates of i'th point */
324  inline void setPointXYZ_RGBu8(
325  const size_t idx, const coords_t x, const coords_t y, const coords_t z,
326  const uint8_t r, const uint8_t g, const uint8_t b)
327  {
328  pcl::PointXYZRGBA& p = m_obj.points[idx];
329  p.x = x;
330  p.y = y;
331  p.z = z;
332  p.r = r;
333  p.g = g;
334  p.b = b;
335  }
336 
337  /** Get RGBf color of i'th point */
338  inline void getPointRGBf(
339  const size_t idx, float& r, float& g, float& b) const
340  {
341  const pcl::PointXYZRGBA& p = m_obj.points[idx];
342  r = p.r / 255.f;
343  g = p.g / 255.f;
344  b = p.b / 255.f;
345  }
346  /** Set XYZ_RGBf coordinates of i'th point */
347  inline void setPointRGBf(
348  const size_t idx, const float r, const float g, const float b)
349  {
350  pcl::PointXYZRGBA& p = m_obj.points[idx];
351  p.r = r * 255;
352  p.g = g * 255;
353  p.b = b * 255;
354  }
355 
356  /** Get RGBu8 color of i'th point */
357  inline void getPointRGBu8(
358  const size_t idx, uint8_t& r, uint8_t& g, uint8_t& b) const
359  {
360  const pcl::PointXYZRGBA& p = m_obj.points[idx];
361  r = p.r;
362  g = p.g;
363  b = p.b;
364  }
365  /** Set RGBu8 coordinates of i'th point */
366  inline void setPointRGBu8(
367  const size_t idx, const uint8_t r, const uint8_t g, const uint8_t b)
368  {
369  pcl::PointXYZRGBA& p = m_obj.points[idx];
370  p.r = r;
371  p.g = g;
372  p.b = b;
373  }
374 
375 }; // end of mrpt::opengl::PointCloudAdapter<pcl::PointCloud<pcl::PointXYZRGBA>
376 // >
377 } // namespace opengl
378 } // namespace mrpt
379 
380 #endif
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >::getPointRGBu8
void getPointRGBu8(const size_t idx, uint8_t &r, uint8_t &g, uint8_t &b) const
Get RGBu8 color of i'th point.
Definition: PCL_adapters.h:206
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >::PointCloudAdapter
PointCloudAdapter(const pcl::PointCloud< pcl::PointXYZRGBA > &obj)
Constructor (accept a const ref for convenience)
Definition: PCL_adapters.h:247
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >::setPointXYZ
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.
Definition: PCL_adapters.h:265
mrpt::opengl::PointCloudAdapter
An adapter to different kinds of point cloud object.
Definition: pointcloud_adapters.h:39
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >::getPointXYZ
void getPointXYZ(const size_t idx, T &x, T &y, T &z) const
Get XYZ coordinates of i'th point.
Definition: PCL_adapters.h:113
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::getPointXYZ
void getPointXYZ(const size_t idx, T &x, T &y, T &z) const
Get XYZ coordinates of i'th point.
Definition: PCL_adapters.h:58
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::setInvalidPoint
void setInvalidPoint(const size_t idx)
Set Invalid Point.
Definition: PCL_adapters.h:76
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >::getPointXYZ_RGBf
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.
Definition: PCL_adapters.h:284
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >::m_obj
pcl::PointCloud< pcl::PointXYZRGBA > & m_obj
Definition: PCL_adapters.h:234
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >::getPointXYZ_RGBu8
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.
Definition: PCL_adapters.h:160
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >::getPointXYZ_RGBu8
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.
Definition: PCL_adapters.h:311
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >::setPointXYZ_RGBu8
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.
Definition: PCL_adapters.h:173
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::setPointXYZ
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.
Definition: PCL_adapters.h:66
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >::resize
void resize(const size_t N)
Set number of points (to uninitialized values)
Definition: PCL_adapters.h:110
obj
GLsizei GLsizei GLuint * obj
Definition: glext.h:4070
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >::getPointRGBf
void getPointRGBf(const size_t idx, float &r, float &g, float &b) const
Get RGBf color of i'th point.
Definition: PCL_adapters.h:338
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >::setPointRGBu8
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.
Definition: PCL_adapters.h:366
g
GLubyte g
Definition: glext.h:6279
uint8_t
unsigned char uint8_t
Definition: rptypes.h:41
p
GLfloat GLfloat p
Definition: glext.h:6305
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::resize
void resize(const size_t N)
Set number of points (to uninitialized values)
Definition: PCL_adapters.h:55
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >::setPointRGBf
void setPointRGBf(const size_t idx, const float r, const float g, const float b)
Set XYZ_RGBf coordinates of i'th point.
Definition: PCL_adapters.h:196
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >::setPointXYZ_RGBf
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.
Definition: PCL_adapters.h:296
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >::PointCloudAdapter
PointCloudAdapter(const pcl::PointCloud< pcl::PointXYZRGB > &obj)
Constructor (accept a const ref for convenience)
Definition: PCL_adapters.h:103
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >::m_obj
pcl::PointCloud< pcl::PointXYZRGB > & m_obj
Definition: PCL_adapters.h:90
r
GLdouble GLdouble GLdouble r
Definition: glext.h:3705
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::m_obj
pcl::PointCloud< pcl::PointXYZ > & m_obj
Definition: PCL_adapters.h:35
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >::getPointRGBf
void getPointRGBf(const size_t idx, float &r, float &g, float &b) const
Get RGBf color of i'th point.
Definition: PCL_adapters.h:187
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >::getPointXYZ_RGBf
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.
Definition: PCL_adapters.h:133
b
GLubyte GLubyte b
Definition: glext.h:6279
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >::getPointRGBu8
void getPointRGBu8(const size_t idx, uint8_t &r, uint8_t &g, uint8_t &b) const
Get RGBu8 color of i'th point.
Definition: PCL_adapters.h:357
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >::coords_t
float coords_t
The type of each point XYZ coordinates.
Definition: PCL_adapters.h:94
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >::setPointXYZ_RGBf
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.
Definition: PCL_adapters.h:145
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::PointCloudAdapter
PointCloudAdapter(const pcl::PointCloud< pcl::PointXYZ > &obj)
Constructor (accept a const ref for convenience)
Definition: PCL_adapters.h:48
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >::resize
void resize(const size_t N)
Set number of points (to uninitialized values)
Definition: PCL_adapters.h:254
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >::setPointRGBf
void setPointRGBf(const size_t idx, const float r, const float g, const float b)
Set XYZ_RGBf coordinates of i'th point.
Definition: PCL_adapters.h:347
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >::setPointRGBu8
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.
Definition: PCL_adapters.h:215
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >::setPointXYZ
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.
Definition: PCL_adapters.h:121
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >::coords_t
float coords_t
The type of each point XYZ coordinates.
Definition: PCL_adapters.h:238
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >::getPointXYZ
void getPointXYZ(const size_t idx, T &x, T &y, T &z) const
Get XYZ coordinates of i'th point.
Definition: PCL_adapters.h:257
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >::size
size_t size() const
Get number of points.
Definition: PCL_adapters.h:252
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::size
size_t size() const
Get number of points.
Definition: PCL_adapters.h:53
pointcloud_adapters.h
mrpt::opengl::detail::PointCloudAdapterHelperNoRGB
A helper base class for those PointCloudAdapter<> which do not handle RGB data; it declares needed in...
Definition: pointcloud_adapters.h:49
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >::setPointXYZ_RGBu8
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.
Definition: PCL_adapters.h:324
z
GLdouble GLdouble z
Definition: glext.h:3872
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >::coords_t
float coords_t
The type of each point XYZ coordinates.
Definition: PCL_adapters.h:39
y
GLenum GLint GLint y
Definition: glext.h:3538
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >::setInvalidPoint
void setInvalidPoint(const size_t idx)
Set Invalid Point.
Definition: PCL_adapters.h:276
mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >::size
size_t size() const
Get number of points.
Definition: PCL_adapters.h:108
x
GLenum GLint x
Definition: glext.h:3538



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST