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

Method read

io/PlyReader.cpp:383–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381
382
383void PlyReader::SimpleProperty::read(std::istream *stream,
384 PlyReader::Format format, PointRef& point)
385{
386 if (format == Format::Ascii)
387 {
388 double d;
389 *stream >> d;
390 point.setField(m_dim, d);
391 }
392 else if (format == Format::BinaryLe)
393 {
394 ILeStream in(stream);
395 Everything e = Utils::extractDim(in, m_type);
396 point.setField(m_dim, m_type, &e);
397 }
398 else if (format == Format::BinaryBe)
399 {
400 IBeStream in(stream);
401 Everything e = Utils::extractDim(in, m_type);
402 point.setField(m_dim, m_type, &e);
403 }
404}
405
406
407// Right now we don't support list properties for point data. We just

Callers 1

readPropertyMethod · 0.45

Calls 8

extractDimFunction · 0.85
toDoubleFunction · 0.85
processOneFunction · 0.85
pointMethod · 0.80
setPointIdMethod · 0.80
sizeFunction · 0.50
setFieldMethod · 0.45
seekMethod · 0.45

Tested by

no test coverage detected