Engauge Digitizer 2
Loading...
Searching...
No Matches
GuidelineProjectorAbstract.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_PROJECTOR_ABSTRACT_H
8#define GUIDELINE_PROJECTOR_ABSTRACT_H
9
10class QPointF;
11class QRectF;
12class Transformation;
13
16{
17public:
21
22protected:
23
25 void calculateCorners (const Transformation &transformation,
26 const QRectF &sceneRect,
27 QPointF &posGraphBL,
28 QPointF &posGraphTL,
29 QPointF &posGraphTR,
30 QPointF &posGraphBR) const;
31
33 bool isOutside (const QRectF &sceneRect,
34 const QPointF &posScreen) const;
35};
36
37#endif // GUIDELINE_PROJECTOR_ABSTRACT_H
bool isOutside(const QRectF &sceneRect, const QPointF &posScreen) const
Return true if point is outside of the scene.
void calculateCorners(const Transformation &transformation, const QRectF &sceneRect, QPointF &posGraphBL, QPointF &posGraphTL, QPointF &posGraphTR, QPointF &posGraphBR) const
Conpute four corners of scene in graph coordinates.
GuidelineProjectorAbstract()
Single constructor.
Affine transformation between screen and graph coordinates, based on digitized axis points.