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

Method getPhysicalProperties

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

Source from the content-addressed store, hash-verified

419}
420
421Py::Dict MaterialPy::getPhysicalProperties() const
422{
423 Py::Dict dict;
424
425 auto properties = getMaterialPtr()->getPhysicalProperties();
426 for (auto& it : properties) {
427 QString key = it.first;
428 auto materialProperty = it.second;
429
430 if (!materialProperty->isNull()) {
431 auto value = materialProperty->getDictionaryString();
432 dict.setItem(Py::String(key.toStdString()), Py::String(value.toStdString()));
433 }
434 }
435
436 return dict;
437}
438
439Py::Dict MaterialPy::getAppearanceProperties() const
440{

Callers 5

getPropertiesMethod · 0.80
getPropertyObjectsMethod · 0.80
dereferenceMethod · 0.80
addMaterialDetailsMethod · 0.80
TEST_FFunction · 0.80

Calls 4

getDictionaryStringMethod · 0.80
toStdStringMethod · 0.80
StringClass · 0.50
isNullMethod · 0.45

Tested by 2

addMaterialDetailsMethod · 0.64
TEST_FFunction · 0.64