MCPcopy Create free account
hub / github.com/PDAL/PDAL / getPackedPoint

Function getPackedPoint

pdal/PointView.hpp:295–302  ·  view source on GitHub ↗

Fill a buffer with point data specified by the dimension list. \param[in] dims List of dimensions/types to retrieve. \param[in] idx Index of point to get. \param[in] buf Pointer to buffer to fill.

Source from the content-addressed store, hash-verified

293 /// \param[in] idx Index of point to get.
294 /// \param[in] buf Pointer to buffer to fill.
295 void getPackedPoint(const DimTypeList& dims, PointId idx, char *buf) const
296 {
297 for (auto di = dims.begin(); di != dims.end(); ++di)
298 {
299 m_pointTable.getFieldInternal(di->m_id, m_index[idx], buf);
300 buf += Dimension::size(di->m_type);
301 }
302 }
303
304 /// Load the point buffer from memory whose arrangement is specified
305 /// by the dimension list.

Callers

nothing calls this directly

Calls 4

sizeFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
getFieldInternalMethod · 0.45

Tested by

no test coverage detected