MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / getUnitDefs

Method getUnitDefs

source/MaterialXCore/Definition.cpp:204–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204vector<UnitDefPtr> UnitTypeDef::getUnitDefs() const
205{
206 vector<UnitDefPtr> unitDefs;
207 for (UnitDefPtr unitDef : getDocument()->getChildrenOfType<UnitDef>())
208 {
209 if (unitDef->getUnitType() == _name)
210 {
211 unitDefs.push_back(unitDef);
212 }
213 }
214 return unitDefs;
215}
216
217ValuePtr AttributeDef::getValue() const
218{

Callers 2

LinearUnitConverterMethod · 0.80
validateMethod · 0.80

Calls 2

getDocumentFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected