MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / SaveDocFile

Method SaveDocFile

src/App/PropertyGeo.cpp:330–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void PropertyVectorList::SaveDocFile(Base::Writer& writer) const
331{
332 Base::OutputStream str(writer.Stream());
333 uint32_t uCt = (uint32_t)getSize();
334 str << uCt;
335 if (!isSinglePrecision()) {
336 for (const auto& it : _lValueList) {
337 str << it.x << it.y << it.z;
338 }
339 }
340 else {
341 for (const auto& it : _lValueList) {
342 float x = (float)it.x;
343 float y = (float)it.y;
344 float z = (float)it.z;
345 str << x << y << z;
346 }
347 }
348}
349
350void PropertyVectorList::RestoreDocFile(Base::Reader& reader)
351{

Callers

nothing calls this directly

Calls 4

isSinglePrecisionFunction · 0.85
getSizeFunction · 0.50
getPositionMethod · 0.45
getRotationMethod · 0.45

Tested by

no test coverage detected