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

Method elementType

src/App/ComplexGeoData.cpp:366–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366char ComplexGeoData::elementType(const Data::MappedName& name) const
367{
368 if (!name) {
369 return 0;
370 }
371 auto indexedName = getIndexedName(name);
372 if (indexedName) {
373 return elementType(indexedName);
374 }
375 char element_type = 0;
376 if (name.findTagInElementName(nullptr, nullptr, nullptr, &element_type) < 0) {
377 return elementType(name.toIndexedName());
378 }
379 return element_type;
380}
381
382char ComplexGeoData::elementType(const Data::IndexedName& element) const
383{

Callers 5

setElementNameMethod · 0.80
getElementSourceFunction · 0.80
getElementHistoryMethod · 0.80
getRelatedElementsMethod · 0.80
TEST_FFunction · 0.80

Calls 5

equalsFunction · 0.85
fromRawDataFunction · 0.85
findTagInElementNameMethod · 0.80
MappedNameFunction · 0.70
getTypeMethod · 0.45

Tested by

no test coverage detected