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

Method getMeasureElementType

src/App/MeasureManager.cpp:89–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89MeasureElementType
90MeasureManager::getMeasureElementType(const App::MeasureSelectionItem& selectionItem)
91{
92 auto handler = getMeasureHandler(selectionItem);
93 if (handler.module.empty()) {
94 return App::MeasureElementType::INVALID;
95 }
96
97 auto objT = selectionItem.object;
98 return handler.typeCb(objT.getObject(), objT.getSubName().c_str());
99}
100
101void MeasureManager::addMeasureType(MeasureType* measureType)
102{

Callers

nothing calls this directly

Calls 4

emptyMethod · 0.45
getObjectMethod · 0.45
c_strMethod · 0.45
getSubNameMethod · 0.45

Tested by

no test coverage detected