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

Method getScale

src/Mod/TechDraw/App/DrawView.cpp:554–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552}
553
554double DrawView::getScale() const
555{
556 auto result = Scale.getValue();
557 if (ScaleType.isValue("Page")) {
558 auto page = findParentPage();
559 if (page) {
560 result = page->Scale.getValue();
561 }
562 }
563 if (!(result > 0.0)) {
564 result = 1.0;
565 }
566 return result;
567}
568
569//return list of Leaders which reference this DV
570std::vector<TechDraw::DrawLeaderLine*> DrawView::getLeaders() const

Callers 15

add1CVToGVMethod · 0.45
add1CEToGEMethod · 0.45
executeMethod · 0.45
onDocumentRestoredMethod · 0.45
projectMethod · 0.45
toDisplayFormMethod · 0.45
toCanonicalFormMethod · 0.45
makeSectionLineWireMethod · 0.45
getEdgeByIndexMethod · 0.45
getVertexByIndexMethod · 0.45

Calls 2

getValueMethod · 0.45
isValueMethod · 0.45

Tested by

no test coverage detected