Engauge Digitizer 2
Loading...
Searching...
No Matches
GuidelineProjectorConstantT.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_CONSTANT_T_H
8#define GUIDELINE_PROJECTOR_CONSTANT_T_H
9
11#include <QLineF>
12#include <QList>
13#include <QPointF>
14
15class QRectF;
16class Transformation;
17
21{
22public:
26
28 QLineF fromCoordinateT (const Transformation &transformation,
29 const QRectF &sceneRect,
30 double tGraph);
31
33 QLineF fromPosScreen (const Transformation &transformation,
34 const QRectF &sceneRect,
35 const QPointF &posScreen);
36
37private:
38 QLineF intersect (const Transformation &transformation,
39 double thetaGraphDegrees,
40 const QPointF &p1,
41 const QPointF &p2) const;
42};
43
44#endif // GUIDELINE_PROJECTOR_CONSTANT_T_H
GuidelineProjectorAbstract()
Single constructor.
QLineF fromPosScreen(const Transformation &transformation, const QRectF &sceneRect, const QPointF &posScreen)
Return line through point in screen coordinates.
QLineF fromCoordinateT(const Transformation &transformation, const QRectF &sceneRect, double tGraph)
Return line through theta in graph coordinates.
Affine transformation between screen and graph coordinates, based on digitized axis points.