Engauge Digitizer
2
Toggle main menu visibility
Loading...
Searching...
No Matches
Centipede
CentipedeEndpointsCartesian.h
Go to the documentation of this file.
1
/******************************************************************************************************
2
* (C) 2020 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 CENTIPEDE_ENDPOINTS_CARTESIAN_H
8
#define CENTIPEDE_ENDPOINTS_CARTESIAN_H
9
10
#include "
CentipedeEndpointsAbstract.h
"
11
#include "
CentipedeIntersectionType.h
"
12
#include "
DocumentModelGuideline.h
"
13
#include <QPointF>
14
#include "
Transformation.h
"
15
17
class
CentipedeEndpointsCartesian
:
public
CentipedeEndpointsAbstract
18
{
19
public
:
21
CentipedeEndpointsCartesian
(
const
DocumentModelGuideline
&
modelGuideline
,
22
const
Transformation
&
transformation
,
23
const
QPointF &
posClickScreen
);
24
virtual
~CentipedeEndpointsCartesian
();
25
27
QPointF
posScreenConstantXForHighY
(
double
radius)
const
;
28
30
QPointF
posScreenConstantXForLowY
(
double
radius)
const
;
31
33
QPointF
posScreenConstantYForHighX
(
double
radius)
const
;
34
36
QPointF
posScreenConstantYForLowX
(
double
radius)
const
;
37
38
private
:
39
CentipedeEndpointsCartesian
();
40
42
void
generatePreviousAndNextPoints (
double
radius,
43
int
i,
44
QPointF &posGraphPrevious,
45
QPointF &posGraphNext,
46
QPointF &posScreen)
const
;
47
49
QPointF posScreenConstantXCommon (
double
radius,
50
CentipedeIntersectionType
intersectionType)
const
;
51
53
QPointF posScreenConstantYCommon (
double
radius,
54
CentipedeIntersectionType
intersectionType)
const
;
55
56
};
57
58
#endif
// CENTIPEDE_ENDPOINTS_CARTESIAN_H
CentipedeEndpointsAbstract.h
CentipedeIntersectionType.h
CentipedeIntersectionType
CentipedeIntersectionType
Intersect with one of the following XT or YT coordinates for constant YR or XT respectively.
Definition
CentipedeIntersectionType.h:11
DocumentModelGuideline.h
Transformation.h
CentipedeEndpointsAbstract::posClickScreen
QPointF posClickScreen() const
Center of circle in screen coordinates.
Definition
CentipedeEndpointsAbstract.cpp:32
CentipedeEndpointsAbstract::modelGuideline
const DocumentModelGuideline & modelGuideline() const
Settings.
Definition
CentipedeEndpointsAbstract.cpp:27
CentipedeEndpointsAbstract::transformation
const Transformation & transformation() const
Transformation which is static through the entire lifetime of the Centipede class instances.
Definition
CentipedeEndpointsAbstract.cpp:37
CentipedeEndpointsAbstract::CentipedeEndpointsAbstract
CentipedeEndpointsAbstract(const DocumentModelGuideline &modelGuideline, const Transformation &transformation, const QPointF &posClickScreen)
Constructor with individual coordinates.
Definition
CentipedeEndpointsAbstract.cpp:14
CentipedeEndpointsCartesian::posScreenConstantYForLowX
QPointF posScreenConstantYForLowX(double radius) const
Screen point for Y value of circle/coordinate intersection in the decreasing X direction.
Definition
CentipedeEndpointsCartesian.cpp:179
CentipedeEndpointsCartesian::~CentipedeEndpointsCartesian
virtual ~CentipedeEndpointsCartesian()
Definition
CentipedeEndpointsCartesian.cpp:25
CentipedeEndpointsCartesian::posScreenConstantXForLowY
QPointF posScreenConstantXForLowY(double radius) const
Screen point for X value of circle/coordinate intersection in the decreasing Y direction.
Definition
CentipedeEndpointsCartesian.cpp:111
CentipedeEndpointsCartesian::CentipedeEndpointsCartesian
CentipedeEndpointsCartesian(const DocumentModelGuideline &modelGuideline, const Transformation &transformation, const QPointF &posClickScreen)
Constructor with individual coordinates.
Definition
CentipedeEndpointsCartesian.cpp:16
CentipedeEndpointsCartesian::posScreenConstantYForHighX
QPointF posScreenConstantYForHighX(double radius) const
Screen point for Y value of circle/coordinate intersection in the increasing X direction.
Definition
CentipedeEndpointsCartesian.cpp:173
CentipedeEndpointsCartesian::posScreenConstantXForHighY
QPointF posScreenConstantXForHighY(double radius) const
Screen point for X value of circle/coordinate intersection in the increasing Y direction.
Definition
CentipedeEndpointsCartesian.cpp:105
DocumentModelGuideline
Model for managing the coordinate values corresponding Guidelines.
Definition
DocumentModelGuideline.h:22
Transformation
Affine transformation between screen and graph coordinates, based on digitized axis points.
Definition
Transformation.h:32
Generated on
for Engauge Digitizer by
1.17.0