MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / boundingRect

Method boundingRect

src/templates/template.cpp:746–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746QRectF Template::boundingRect() const
747{
748 auto const extent = getTemplateExtent();
749 auto rect = QRectF { templateToMap(extent.topLeft()), QSizeF{} };
750 rectInclude(rect, templateToMap(extent.topRight()));
751 rectInclude(rect, templateToMap(extent.bottomRight()));
752 rectInclude(rect, templateToMap(extent.bottomLeft()));
753 return rect;
754}
755
756void Template::scale(double factor, const MapCoord& center)
757{

Callers 9

worldFileTemplateTestMethod · 0.45
ogrTemplateTestMethod · 0.45
AzimuthInfoHelperMethod · 0.45
paintClickedMethod · 0.45
refreshTemplateMenuMethod · 0.45
drawWaypointsMethod · 0.45
prepareLineInfosMethod · 0.45
attachMethod · 0.45
calculateLetterHeightMethod · 0.45

Calls 1

rectIncludeFunction · 0.85

Tested by

no test coverage detected