| 87 | } |
| 88 | |
| 89 | MeasureElementType |
| 90 | MeasureManager::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 | |
| 101 | void MeasureManager::addMeasureType(MeasureType* measureType) |
| 102 | { |
nothing calls this directly
no test coverage detected