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

Method getLibrary

src/Mod/Material/App/ModelManager.cpp:169–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169std::shared_ptr<ModelLibrary> ModelManager::getLibrary(const QString& name) const
170{
171#if defined(BUILD_MATERIAL_EXTERNAL)
172 if (_useExternal) {
173 auto library = _externalManager->getLibrary(name);
174 if (library) {
175 return library;
176 }
177 }
178#endif
179 return _localManager->getLibrary(name);
180}
181
182void ModelManager::createLocalLibrary(const QString& libraryName,
183 const QString& directory,

Callers 15

saveMethod · 0.45
getLibraryNameMethod · 0.45
getLibraryRootMethod · 0.45
getLibraryIconMethod · 0.45
getLibraryNameMethod · 0.45
getLibraryRootMethod · 0.45
getLibraryIconMethod · 0.45
isLocalLibraryMethod · 0.45
addToTreeMethod · 0.45
addRecentsMethod · 0.45
addFavoritesMethod · 0.45
addModelDetailsMethod · 0.45

Calls

no outgoing calls

Tested by 4

addModelDetailsMethod · 0.36
addMaterialDetailsMethod · 0.36
SetUpMethod · 0.36
TEST_FFunction · 0.36