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

Method getType

src/Mod/Material/App/ModelPyImp.cpp:87–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87Py::String ModelPy::getType() const
88{
89 auto type = (getModelPtr()->getType() == Model::ModelType_Physical)
90 ? "Physical"
91 : "Appearance";
92
93 return Py::String(type);
94}
95
96void ModelPy::setType(Py::String arg)
97{

Callers 12

getTypeFunction · 0.45
addMaterialsFunction · 0.45
getPhysicalValueMethod · 0.45
getAppearanceValueMethod · 0.45
getModelTreeMethod · 0.45
copyValuePtrMethod · 0.45
getColumnTypeMethod · 0.45
setValueMethod · 0.45
getValueStringMethod · 0.45
hasPhysicalModelMethod · 0.45
hasAppearanceModelMethod · 0.45
MaterialLoader.cppFile · 0.45

Calls 1

StringClass · 0.50

Tested by

no test coverage detected