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

Method transform

src/core/objects/object.cpp:1114–1127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1112
1113
1114void PathObject::transform(const QTransform& t)
1115{
1116 if (t.isIdentity())
1117 return;
1118
1119 for (auto& coord : coords)
1120 {
1121 const auto p = t.map(MapCoordF{coord});
1122 coord.setX(p.x());
1123 coord.setY(p.y());
1124 }
1125 pattern_origin = MapCoord{t.map(MapCoordF{getPatternOrigin()})};
1126 setOutputDirty();
1127}
1128
1129
1130

Callers 7

updateStateMethod · 0.45
gradientBrushMethod · 0.45
updateStateMethod · 0.45
gradientBrushMethod · 0.45
operator()Method · 0.45
importPartMethod · 0.45

Calls 5

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

Tested by

no test coverage detected