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

Method makeExtentDim

src/Mod/TechDraw/App/DrawDimHelper.cpp:60–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58using namespace TechDraw;
59
60DrawViewDimension* 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
78DrawViewDimension* DrawDimHelper::makeExtentDim(DrawViewPart* dvp, std::vector<std::string> edgeNames,
79 int direction)

Callers

nothing calls this directly

Calls 13

runStringArgMethod · 0.80
setReferences2dMethod · 0.80
emptyMethod · 0.45
getSubNameMethod · 0.45
push_backMethod · 0.45
findParentPageMethod · 0.45
getNameInDocumentMethod · 0.45
getDocumentMethod · 0.45
getUniqueObjectNameMethod · 0.45
c_strMethod · 0.45
getObjectMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected