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

Method getFirstParent

src/App/DocumentObject.cpp:1321–1330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1319}
1320
1321App::DocumentObject* DocumentObject::getFirstParent() const
1322{
1323 for (auto obj : getInList()) {
1324 if (obj->hasExtension(App::GroupExtension::getExtensionClassTypeId(), true)) {
1325 return obj;
1326 }
1327 }
1328
1329 return nullptr;
1330}
1331
1332DocumentObject* DocumentObject::getLinkedObject(bool recursive,
1333 Base::Matrix4D* mat,

Callers 4

getParentMethod · 0.80
setReferences3dMethod · 0.80
setAll3DMeasurementMethod · 0.80
isVisibleUpToFunction · 0.80

Calls 1

hasExtensionMethod · 0.45

Tested by

no test coverage detected