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