Engauge Digitizer
2
Loading...
Searching...
No Matches
Guideline
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
10
class
QPointF;
11
class
QRectF;
12
class
Transformation
;
13
15
class
GuidelineProjectorAbstract
16
{
17
public
:
19
GuidelineProjectorAbstract
();
20
~GuidelineProjectorAbstract
();
21
22
protected
:
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
GuidelineProjectorAbstract::isOutside
bool isOutside(const QRectF &sceneRect, const QPointF &posScreen) const
Return true if point is outside of the scene.
Definition
GuidelineProjectorAbstract.cpp:39
GuidelineProjectorAbstract::~GuidelineProjectorAbstract
~GuidelineProjectorAbstract()
Definition
GuidelineProjectorAbstract.cpp:16
GuidelineProjectorAbstract::calculateCorners
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.
Definition
GuidelineProjectorAbstract.cpp:20
GuidelineProjectorAbstract::GuidelineProjectorAbstract
GuidelineProjectorAbstract()
Single constructor.
Definition
GuidelineProjectorAbstract.cpp:12
Transformation
Affine transformation between screen and graph coordinates, based on digitized axis points.
Definition
Transformation.h:32
Generated on
for Engauge Digitizer by
1.14.0