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

Method initExtension

src/App/Extension.cpp:89–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void Extension::initExtension(ExtensionContainer* obj)
90{
91 if (m_extensionType.isBad()) {
92 throw Base::RuntimeError("Extension: Extension type not set");
93 }
94
95 // all properties are initialised without PropertyContainer father. Now that we know it we can
96 // finally finish the property initialisation
97 std::vector<Property*> list;
98 extensionGetPropertyData().getPropertyList(this, list);
99 for (Property* prop : list) {
100 prop->setContainer(obj);
101 }
102
103 m_base = obj;
104 m_base->registerExtension(m_extensionType, this);
105}
106
107
108PyObject* Extension::getExtensionPyObject()

Callers 3

restoreExtensionsMethod · 0.45
addExtensionMethod · 0.45
getMethod · 0.45

Calls 4

setContainerMethod · 0.80
registerExtensionMethod · 0.80
isBadMethod · 0.45
getPropertyListMethod · 0.45

Tested by

no test coverage detected