Read the next batch of m_defaultChunkSize. This returns number of points aquired. Returns 0 after finished reading of all scans.
| 271 | /// This returns number of points aquired. |
| 272 | /// Returns 0 after finished reading of all scans. |
| 273 | point_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. |
| 296 | bool E57Reader::fillPoint(PointRef& point) |
nothing calls this directly
no test coverage detected