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

Method getLibraryName

src/Mod/Material/App/MaterialPyImp.cpp:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69Py::String MaterialPy::getLibraryName() const
70{
71 auto library = getMaterialPtr()->getLibrary();
72 if (library->isLocal()) {
73 auto materialLibrary =
74 std::dynamic_pointer_cast<Materials::MaterialLibraryLocal>(library);
75 return {materialLibrary ? materialLibrary->getName().toStdString() : ""};
76 }
77 return "";
78}
79
80Py::String MaterialPy::getLibraryRoot() const
81{

Callers

nothing calls this directly

Calls 4

isLocalMethod · 0.80
toStdStringMethod · 0.80
getLibraryMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected