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

Method getProjVertexByIndex

src/Mod/TechDraw/App/DrawViewPart.cpp:904–914  ·  view source on GitHub ↗

returns existing geometry of 2D Vertex(idx)

Source from the content-addressed store, hash-verified

902
903//! returns existing geometry of 2D Vertex(idx)
904TechDraw::VertexPtr DrawViewPart::getProjVertexByIndex(int idx) const
905{
906 const std::vector<TechDraw::VertexPtr>& geoms = getVertexGeometry();
907 if (geoms.empty()) {
908 return nullptr;
909 }
910 if ((unsigned)idx >= geoms.size()) {
911 return nullptr;
912 }
913 return geoms.at(idx);
914}
915
916TechDraw::VertexPtr DrawViewPart::getProjVertexByCosTag(std::string cosTag)
917{

Callers 15

getVertexByIndexMethod · 0.80
getVertexBySelectionMethod · 0.80
hasGeometry2dMethod · 0.80
calcEndPoints2PointsMethod · 0.80
getPointsTwoVertsMethod · 0.80
getPointsEdgeVertMethod · 0.80
checkReferences2DMethod · 0.80
getAngleFromSelectionMethod · 0.80
execLine2PointsFunction · 0.80
activatedMethod · 0.80

Calls 3

atMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected