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

Method inspect

plugins/e57/io/E57Reader.cpp:223–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223QuickInfo E57Reader::inspect()
224{
225 QuickInfo qi;
226 std::unique_ptr<PointLayout> layout(new PointLayout());
227 initialize();
228 addDimensions(layout.get());
229
230 Dimension::IdList dims = layout->dims();
231 for (auto di = dims.begin(); di != dims.end(); ++di)
232 qi.m_dimNames.push_back(layout->dimName(*di));
233 qi.m_pointCount = e57plugin::numPoints(*m_data3D);
234
235 auto numScans = m_data3D->childCount();
236 for (int i = 0; i < numScans; ++i)
237 {
238 Scan scan((StructureNode)m_data3D->get(i));
239 qi.m_bounds.grow(scan.getBoundingBox());
240 }
241
242 qi.m_valid = true;
243 return qi;
244}
245
246/// Setup reader to read next scan if available.
247void E57Reader::setupReader()

Callers

nothing calls this directly

Calls 10

initializeFunction · 0.85
addDimensionsFunction · 0.85
dimNameMethod · 0.80
numPointsFunction · 0.70
getMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
childCountMethod · 0.45
growMethod · 0.45
getBoundingBoxMethod · 0.45

Tested by

no test coverage detected