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

Method modelIncluded

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

Source from the content-addressed store, hash-verified

67{}
68
69bool MaterialFilter::modelIncluded(const Material& material) const
70{
71 if (_requirePhysical) {
72 if (!material.hasPhysicalProperties()) {
73 return false;
74 }
75 }
76 if (_requireAppearance) {
77 if (!material.hasAppearanceProperties()) {
78 return false;
79 }
80 }
81 for (const auto& complete : _requiredComplete) {
82 if (!material.isModelComplete(complete)) {
83 return false;
84 }
85 }
86 for (const auto& required : _required) {
87 if (!material.hasModel(required)) {
88 return false;
89 }
90 }
91
92 return true;
93}
94
95bool MaterialFilter::modelIncluded(const QString& uuid) const
96{

Callers 5

passFilterMethod · 0.80
getFavoritesMethod · 0.80
getRecentsMethod · 0.80
getFavoritesMethod · 0.80
getRecentsMethod · 0.80

Calls 4

hasPhysicalPropertiesMethod · 0.80
hasModelMethod · 0.80
getMaterialMethod · 0.45

Tested by

no test coverage detected