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

Method libraryModels

src/Mod/Material/App/ModelManagerLocal.cpp:157–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157std::shared_ptr<std::vector<LibraryObject>>
158ModelManagerLocal::libraryModels(const QString& libraryName)
159{
160 auto models = std::make_shared<std::vector<LibraryObject>>();
161
162 for (auto& it : *_modelMap) {
163 // This is needed to resolve cyclic dependencies
164 if (it.second->getLibrary()->isName(libraryName)) {
165 models->push_back(
166 LibraryObject(it.first, it.second->getDirectory(), it.second->getName()));
167 }
168 }
169
170 return models;
171}
172
173std::shared_ptr<Model> ModelManagerLocal::getModel(const QString& uuid) const
174{

Callers

nothing calls this directly

Calls 5

LibraryObjectFunction · 0.70
getLibraryMethod · 0.45
push_backMethod · 0.45
getDirectoryMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected