101{
102 QMap<KoShape*, QRectF> oldDirtyRects;
103
105 oldDirtyRects[path] = path->boundingRect();
106 }
107
108 QMap<KoPathPointData, QPointF>::iterator it(
points.begin());
109 for (; it !=
points.end(); ++it) {
111
112 QPointF shapeOffset = path->
documentToShape(factor*it.value()) - path->documentToShape(QPointF());
113 QTransform matrix;
114 matrix.translate(shapeOffset.x(), shapeOffset.y());
115
116 KoPathPoint *
p = path->pointByIndex(it.key().pointIndex);
119 }
120
122 path->normalize();
123
124 path->updateAbsolute(oldDirtyRects[path] | path->boundingRect());
125 }
126}
QSet< KoPathShape * > paths
QMap< KoPathPointData, QPointF > points
A KoPathPoint represents a point in a path.
void map(const QTransform &matrix)
apply matrix on the point
The position of a path point within a path shape.
QPointF documentToShape(const QPointF &point) const
Transforms point from document coordinates to shape coordinates.