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

Method addPoint

pdal/ColumnPointTable.cpp:55–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55PointId ColumnPointTable::addPoint()
56{
57 if (m_numPts % m_blockPtCnt == 0)
58 {
59 for (Dimension::Id id : m_layoutRef.dims())
60 {
61 const Dimension::Detail *detail = m_layoutRef.dimDetail(id);
62
63 // Make a block that holds m_blockPtCnt values of a dimension.
64 size_t size = m_blockPtCnt * Dimension::size(detail->type());
65 char *buf = new char[size];
66 memset(buf, 0, size);
67 DimBlockList& dimBlocks = m_blocks[detail->order()];
68 dimBlocks.push_back(buf);
69 }
70 }
71 return m_numPts++;
72}
73
74namespace
75{

Callers

nothing calls this directly

Calls 3

orderMethod · 0.80
sizeFunction · 0.70
typeMethod · 0.45

Tested by

no test coverage detected