Krita Source Code Documentation
Loading...
Searching...
No Matches
KoPathSegmentChangeStrategy.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2009 Jan Hambrecht <jaham@gmx.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KOPATHSEGMENTCHANGESTRATEGY_H
8#define KOPATHSEGMENTCHANGESTRATEGY_H
9
11#include "KoPathSegment.h"
12#include "KoPathPointData.h"
13#include <QPointF>
14
15class KoPathTool;
16class KoPathShape;
17
22{
23public:
24 KoPathSegmentChangeStrategy(KoPathTool *tool, const QPointF &pos, const KoPathPointData &segment, qreal segmentParam);
26 void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override;
27 void finishInteraction(Qt::KeyboardModifiers modifiers) override;
28 KUndo2Command *createCommand() override;
29
30private:
34 QPointF m_move;
45};
46
47#endif // KOPATHSEGMENTCHANGESTRATEGY_H
Describe a KoPathPoint by a KoPathShape and its indices.
Strategy for deforming a segment of a path shape.
KoPathSegmentChangeStrategy(KoPathTool *tool, const QPointF &pos, const KoPathPointData &segment, qreal segmentParam)
KoPathTool * m_tool
pointer to the path tool
QPointF m_move
the accumulated point move amount
void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override
void finishInteraction(Qt::KeyboardModifiers modifiers) override
A KoPathSegment consist of two neighboring KoPathPoints.
The position of a path point within a path shape.
Definition KoPathShape.h:63