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

Method canDropObjectEx

src/Gui/ViewProviderDocumentObject.cpp:579–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577}
578
579bool ViewProviderDocumentObject::canDropObjectEx(
580 App::DocumentObject* obj,
581 App::DocumentObject* owner,
582 const char* subname,
583 const std::vector<std::string>& elements
584) const
585{
586 auto vector = getExtensionsDerivedFromType<Gui::ViewProviderExtension>();
587 for (Gui::ViewProviderExtension* ext : vector) {
588 if (ext->extensionCanDropObjectEx(obj, owner, subname, elements)) {
589 return true;
590 }
591 }
592 if (obj && obj->getDocument() != getObject()->getDocument()) {
593 return false;
594 }
595 return canDropObject(obj);
596}
597
598int ViewProviderDocumentObject::replaceObject(App::DocumentObject* oldObj, App::DocumentObject* newObj)
599{

Callers

nothing calls this directly

Calls 3

getObjectFunction · 0.70
getDocumentMethod · 0.45

Tested by

no test coverage detected