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

Method write

io/private/copcwriter/Processor.cpp:85–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void Processor::write()
86{
87 OctantInfo& parent = m_vi.octant();
88
89 for (int i = 0; i < 8; ++i)
90 {
91 OctantInfo& child = m_vi.child(i);
92 PointViewPtr& v = child.source();
93 if (v->size() || child.mustWrite())
94 {
95 writeCompressed(child.key(), child.source());
96 parent.setMustWrite(true);
97 }
98 }
99 if (m_vi.key() == VoxelKey(0, 0, 0, 0))
100 writeCompressed(parent.key(), parent.source());
101}
102
103
104void Processor::sample()

Callers 5

writeCompressedMethod · 0.45
writeHeaderMethod · 0.45
writeVlrDataMethod · 0.45
writeHierarchyMethod · 0.45
writeEvlrsMethod · 0.45

Calls 6

VoxelKeyClass · 0.85
childMethod · 0.80
mustWriteMethod · 0.80
setMustWriteMethod · 0.80
sizeMethod · 0.45
keyMethod · 0.45

Tested by

no test coverage detected