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

Method getAppearanceProperties

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

Source from the content-addressed store, hash-verified

437}
438
439Py::Dict MaterialPy::getAppearanceProperties() const
440{
441 Py::Dict dict;
442
443 auto properties = getMaterialPtr()->getAppearanceProperties();
444 for (auto& it : properties) {
445 QString key = it.first;
446 auto materialProperty = it.second;
447
448 if (!materialProperty->isNull()) {
449 auto value = materialProperty->getDictionaryString();
450 dict.setItem(Py::String(key.toStdString()), Py::String(value.toStdString()));
451 }
452 }
453
454 return dict;
455}
456
457Py::Dict MaterialPy::getLegacyProperties() const
458{

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