52 const qreal grab =
tool->grabSensitivityInPt()*4;
53 QRectF roi = QRect(0, 0, grab, grab);
61 QList<KoPathSegment> segments = path->segmentsAt(path->outlineRect().adjusted(-grab, -grab, grab, grab));
70 const QLineF l = QLineF(segment.
pointAt(t), mouseInShape).unitVector();
71 const QVector2D
p1(l.p2()-l.p1());
73 const QVector2D normal(-tangent.y(), tangent.x());
74 float dot = QVector2D::dotProduct(
p1, normal);
The KoSvgTextNodeIndex class.
KoSvgText::TextOnPathInfo * textPathInfo()
textPathInfo the text path info for this node as a pointer.
KoSvgTextNodeIndex topLevelNodeForPos(int pos) const
topLevelNodeForPos Get, if possible, an index for the child element of the root at pos....
KUndo2Command * createCommand() override
KoSvgText::TextOnPathInfo m_oldInfo
void cancelInteraction() override
SvgChangeTextPathInfoStrategy(SvgTextTool *tool, KoSvgTextShape *shape, const QPointF &clicked, int textCursorPos)
void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override
void finishInteraction(Qt::KeyboardModifiers modifiers) override