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

Function setPackedPoint

pdal/PointView.hpp:309–318  ·  view source on GitHub ↗

Load the point buffer from memory whose arrangement is specified by the dimension list. \param[in] dims Dimension/types of data in packed order \param[in] idx Index of point to write. \param[in] buf Packed data buffer.

Source from the content-addressed store, hash-verified

307 /// \param[in] idx Index of point to write.
308 /// \param[in] buf Packed data buffer.
309 void setPackedPoint(const DimTypeList& dims, PointId idx, const char *buf)
310 {
311 if (idx == m_index.size())
312 addPoint();
313 for (auto di = dims.begin(); di != dims.end(); ++di)
314 {
315 m_pointTable.setFieldInternal(di->m_id, idx, (const void *)buf);
316 buf += Dimension::size(di->m_type);
317 }
318 }
319
320 /// Provides access to the memory storing the point data. Though this
321 /// function is public, other access methods are safer and preferred.

Callers

nothing calls this directly

Calls 6

addPointFunction · 0.85
sizeFunction · 0.70
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
setFieldInternalMethod · 0.45

Tested by

no test coverage detected