18#ifndef OVERLAYMANAGER_H
19#define OVERLAYMANAGER_H
23#include "basemanager.h"
27#include "preferencesdef.h"
43 void settingsUpdated(SETTING setting,
bool state);
45 void workingLayerChanged(
Layer *)
override;
48 double selectionTolerance();
50 void updatePerspective(
const QPointF& point);
52 MoveMode getMoveMode()
const {
return mMoveMode; }
53 void setMoveMode(MoveMode mode) { mMoveMode = mode; }
54 QPointF getSinglePerspectivePoint()
const {
return mSinglePerspectivePoint; }
55 QPointF getLeftPerspectivePoint()
const {
return mLeftPerspectivePoint; }
56 QPointF getRightPerspectivePoint()
const {
return mRightPerspectivePoint; }
57 QPointF getMiddlePerspectivePoint()
const {
return mMiddlePerspectivePoint; }
59 bool anyOverlayEnabled()
const {
return mSinglePerspectiveEnabled || mTwoPointPerspectiveEnabled || mThreePointPerspectiveEnabled; }
64 QPointF mSinglePerspectivePoint;
67 QPointF mMiddlePerspectivePoint;
69 MoveMode mMoveMode = MoveMode::NONE;
71 bool mSinglePerspectiveEnabled =
false;
72 bool mTwoPointPerspectiveEnabled =
false;
73 bool mThreePointPerspectiveEnabled =
false;
75 const qreal mSelectionTolerance = 8.0;