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

Method scale

src/core/objects/object.cpp:545–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545void Object::scale(const MapCoordF& center, double factor)
546{
547 for (MapCoord& coord : coords)
548 {
549 coord.setX(center.x() + (coord.x() - center.x()) * factor);
550 coord.setY(center.y() + (coord.y() - center.y()) * factor);
551 }
552
553 setOutputDirty();
554}
555
556void Object::scale(double factor_x, double factor_y)
557{

Callers 9

updateTransformationMethod · 0.45
drawPageMethod · 0.45
drawSeparationPagesMethod · 0.45
printMapMethod · 0.45
changeScaleMethod · 0.45
scaleAllSymbolsMethod · 0.45
operator()Method · 0.45
TextRenderableMethod · 0.45
renderCommonMethod · 0.45

Calls 4

setXMethod · 0.80
xMethod · 0.80
setYMethod · 0.80
yMethod · 0.80

Tested by

no test coverage detected