| 58 | using namespace TechDraw; |
| 59 | |
| 60 | DrawViewDimension* DrawDimHelper::makeExtentDim(DrawViewPart* dvp, |
| 61 | const std::string& dimType, ReferenceVector references2d) |
| 62 | { |
| 63 | std::vector<std::string> edgeNames; |
| 64 | for (auto& ref : references2d) { |
| 65 | if (ref.getSubName().empty()) { |
| 66 | continue; |
| 67 | } |
| 68 | std::string geomType = DrawUtil::getGeomTypeFromName(ref.getSubName()); |
| 69 | if (geomType == "Edge") { |
| 70 | edgeNames.push_back(ref.getSubName()); |
| 71 | } |
| 72 | } |
| 73 | int direction = dimType == "DistanceX" ? 0 : dimType == "DistanceY" ? 1 : 2; |
| 74 | |
| 75 | return makeExtentDim(dvp, edgeNames, direction); |
| 76 | } |
| 77 | |
| 78 | DrawViewDimension* DrawDimHelper::makeExtentDim(DrawViewPart* dvp, std::vector<std::string> edgeNames, |
| 79 | int direction) |
nothing calls this directly
no test coverage detected