Definition at line 16 of file KoPathPointMoveCommand.cpp.
◆ KoPathPointMoveCommandPrivate()
| KoPathPointMoveCommandPrivate::KoPathPointMoveCommandPrivate |
( |
| ) |
|
|
inline |
◆ applyOffset()
| void KoPathPointMoveCommandPrivate::applyOffset |
( |
qreal | factor | ) |
|
Definition at line 101 of file KoPathPointMoveCommand.cpp.
102{
104 std::copy(
paths.begin(),
paths.end(), std::back_inserter(shapes));
105
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
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.
static void bulkShapesUpdate(const UpdatesList &updates)
QPointF documentToShape(const QPointF &point) const
Transforms point from document coordinates to shape coordinates.
References KoShapeBulkActionLock::bulkShapesUpdate(), KoShape::documentToShape(), KoPathPoint::map(), p, paths, points, and KoShapeBulkActionLock::unlock().
◆ paths
| QSet<KoPathShape*> KoPathPointMoveCommandPrivate::paths |
◆ points
The documentation for this class was generated from the following file: