Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_perspective_transform_strategy.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_PERSPECTIVE_TRANSFORM_STRATEGY_H
8#define __KIS_PERSPECTIVE_TRANSFORM_STRATEGY_H
9
10#include <QObject>
11#include <QScopedPointer>
12
14
15class QPointF;
16class QPainter;
20class QCursor;
21
23{
24 Q_OBJECT
25public:
27 KoSnapGuide *snapGuide,
28 ToolTransformArgs &currentArgs,
31
32 void setTransformFunction(const QPointF &mousePos, bool perspectiveModifierActive, bool shiftModifierActive, bool altModifierActive) override;
33 void paint(QPainter &gc) override;
34 QCursor getCurrentCursor() const override;
35
36 void externalConfigChanged() override;
37
41
42 bool beginPrimaryAction(const QPointF &pt) override;
43 void continuePrimaryAction(const QPointF &pt, bool shiftModifierActive, bool altModifierActive) override;
44 bool endPrimaryAction() override;
45
46Q_SIGNALS:
50
51private:
52 struct Private;
53 const QScopedPointer<Private> m_d;
54};
55
56#endif /* __KIS_PERSPECTIVE_TRANSFORM_STRATEGY_H */
float value(const T *src, size_t ch)
KisPerspectiveTransformStrategy(const KisCoordinatesConverter *converter, KoSnapGuide *snapGuide, ToolTransformArgs &currentArgs, TransformTransactionProperties &transaction)
void requestShowImageTooBig(bool value)
void setTransformFunction(const QPointF &mousePos, bool perspectiveModifierActive, bool shiftModifierActive, bool altModifierActive) override
void continuePrimaryAction(const QPointF &pt, bool shiftModifierActive, bool altModifierActive) override
bool beginPrimaryAction(const QPointF &pt) override
virtual void continuePrimaryAction(KoPointerEvent *event)=0
virtual bool endPrimaryAction(KoPointerEvent *event)=0
virtual bool beginPrimaryAction(KoPointerEvent *event)=0