25 #ifndef DIGIKAM_EDITOR_PERSPECTIVE_WIDGET_H
26 #define DIGIKAM_EDITOR_PERSPECTIVE_WIDGET_H
31 #include <QResizeEvent>
32 #include <QMouseEvent>
33 #include <QPaintEvent>
58 QRect getTargetSize()
const;
59 QPoint getTopLeftCorner()
const;
60 QPoint getTopRightCorner()
const;
61 QPoint getBottomLeftCorner()
const;
62 QPoint getBottomRightCorner()
const;
64 float getAngleTopLeft()
const;
65 float getAngleTopRight()
const;
66 float getAngleBottomLeft()
const;
67 float getAngleBottomRight()
const;
71 void setBackgroundColor(
const QColor& bg);
72 void applyPerspectiveAdjustment();
77 void slotToggleAntiAliasing(
bool a);
78 void slotToggleDrawWhileMoving(
bool draw);
79 void slotToggleDrawGrid(
bool grid);
81 void slotChangeGuideColor(
const QColor& color);
82 void slotChangeGuideSize(
int size);
83 void slotInverseTransformationChanged(
bool isEnabled);
88 float bottomLeftAngle,
float bottomRightAngle,
bool valid);
92 void paintEvent(QPaintEvent*)
override;
93 void resizeEvent(QResizeEvent*)
override;
94 void mousePressEvent(QMouseEvent*)
override;
95 void mouseReleaseEvent(QMouseEvent*)
override;
96 void mouseMoveEvent(QMouseEvent*)
override;
102 void transformAffine(
DImg*
const orgImage,
DImg*
const destImage,
105 QPoint buildPerspective(
const QPoint& orignTopLeft,
const QPoint& orignBottomRight,
106 const QPoint& transTopLeft,
const QPoint& transTopRight,
107 const QPoint& transBottomLeft,
const QPoint& transBottomRight,
108 DImg*
const orgImage=
nullptr,
DImg*
const destImage=
nullptr,
Definition: imageiface.h:47
MetaEngineRotation matrix(MetaEngineRotation::TransformationAction action)
Definition: metaengine_rotation.cpp:81
Definition: datefolderview.cpp:43