Engauge Digitizer 2
Loading...
Searching...
No Matches
GuidelineOffset.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2019 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef GUIDELINE_OFFSET_H
8#define GUIDELINE_OFFSET_H
9
10#include <QPointF>
11
12class QGraphicsView;
13class Transformation;
14
17{
18public:
20
22 QPointF XT (const QGraphicsView &view,
23 const Transformation &transformation) const;
24
26 QPointF YR (const QGraphicsView &view,
27 const Transformation &transformation) const;
28};
29
30#endif // GUIDELINE_OFFSET_H
QPointF YR(const QGraphicsView &view, const Transformation &transformation) const
Compute UR offset for point in center of scene, and returns point in graph coordinates.
QPointF XT(const QGraphicsView &view, const Transformation &transformation) const
Compute XT offset for point in center of scene, and returns point in graph coordinates.
Affine transformation between screen and graph coordinates, based on digitized axis points.