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

Method readNextBatch

plugins/e57/io/E57Reader.cpp:273–293  ·  view source on GitHub ↗

Read the next batch of m_defaultChunkSize. This returns number of points aquired. Returns 0 after finished reading of all scans.

Source from the content-addressed store, hash-verified

271/// This returns number of points aquired.
272/// Returns 0 after finished reading of all scans.
273point_count_t E57Reader::readNextBatch()
274{
275 m_currentIndex = 0;
276
277 // Are we done with reading all scans?
278 if (m_currentScan >= m_data3D->childCount())
279 return 0;
280
281 point_count_t gotPoints = m_reader->read(m_destBuffers);
282
283 if (!gotPoints)
284 {
285 // Finished reading all points in current scan.
286 // Its time to setup reader at next scan.
287 m_reader->close();
288 setupReader();
289 return readNextBatch();
290 }
291
292 return gotPoints;
293}
294
295/// Fill the point information.
296bool E57Reader::fillPoint(PointRef& point)

Callers

nothing calls this directly

Calls 3

childCountMethod · 0.45
readMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected