22#include "basemanager.h"
39 qreal getViewScaleInverse()
const;
55 void translate(
float dx,
float dy);
60 void rotate(
float degree);
61 void rotateRelative(
float delta);
65 void scale(qreal scaleValue);
66 void scaleAtOffset(qreal scaleValue,
QPointF offset);
77 void flipHorizontal(
bool b);
78 void flipVertical(
bool b);
80 void setOverlayCenter(
bool b);
81 void setOverlayThirds(
bool b);
82 void setOverlayGoldenRatio(
bool b);
83 void setOverlaySafeAreas(
bool b);
85 bool isFlipHorizontal()
const {
return mIsFlipHorizontal; }
86 bool isFlipVertical()
const {
return mIsFlipVertical; }
87 bool getOverlayCenter()
const {
return mOverlayCenter; }
88 bool getOverlayThirds()
const {
return mOverlayThirds; }
89 bool getOverlayGoldenRatio()
const {
return mOverlayGoldenRatio; }
90 bool getOverlaySafeAreas()
const {
return mOverlaySafeAreas; }
92 void setCanvasSize(
QSize size);
94 QTransform getImportView() {
return mImportView; }
95 void setImportView(
const QTransform& newView) { mImportView = newView; }
97 void setImportFollowsCamera(
bool b) { mImportFollowsCamera = b; }
98 bool getImportFollowsCamera() {
return mImportFollowsCamera; }
100 void forceUpdateViewTransform();
107 void updateViewTransforms();
108 void onCurrentFrameChanged();
118 qreal mScaling = 1.0;
119 qreal mRotation = 0.0;
121 QSize mCanvasSize = { 1, 1 };
123 bool mIsFlipHorizontal =
false;
124 bool mIsFlipVertical =
false;
125 bool mOverlayCenter =
false;
126 bool mOverlayThirds =
false;
127 bool mOverlayGoldenRatio =
false;
128 bool mOverlaySafeAreas =
false;
130 bool mImportFollowsCamera =
false;