ImagingTools Core SDK
dummy.h
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QJsonObject>
7#include <QtCore/QJsonArray>
8#include <QtCore/QJsonValue>
9
10
12
13
15{
16
17
18class CPoint2d
19{
20public:
21 double m_x = 0.;
22 double m_y = 0.;
23
24 [[nodiscard]] double GetX() const;
25 virtual void SetX(double newX);
26 [[nodiscard]] double GetY() const;
27 virtual void SetY(double newY);
28};
29
30
31class CLine2d
32{
33
34public:
35 CPoint2d m_point1;
36 CPoint2d m_point2;
37
38 [[nodiscard]] CPoint2d GetPoint1() const;
39 virtual void SetPoint1(CPoint2d newPoint1);
40 [[nodiscard]] CPoint2d GetPoint2() const;
41 virtual void SetPoint2(CPoint2d newPoint2);
42};
43
44
45class CPolyline2d
46{
47public:
48 QList<CPoint2d> m_points;
49
50 [[nodiscard]] QList<CPoint2d> GetPoints() const;
51 virtual void SetPoints(const QList<CPoint2d>& newPoints);
52};
53
54
55class CPolygon2d
56{
57public:
58 QList<CPoint2d> m_points;
59 bool m_isClosed = false;
60
61 [[nodiscard]] QList<CPoint2d> GetPoints() const;
62 virtual void SetPoints(const QList<CPoint2d>& newPoints);
63 [[nodiscard]] bool GetIsClosed() const;
64 virtual void SetIsClosed(bool newIsClosed);
65};
66
67
68class CRectangle2d
69{
70public:
71 CPoint2d m_topLeft;
72 CPoint2d m_bottomRight;
73
74 [[nodiscard]] CPoint2d GetTopLeft() const;
75 virtual void SetTopLeft(CPoint2d newTopLeft);
76 [[nodiscard]] CPoint2d GetBottomRight() const;
77 virtual void SetBottomRight(CPoint2d newBottomRight);
78};
79
80
81class CCircle
82{
83public:
84 CPoint2d m_center;
85 double m_radius = 0.;
86
87 [[nodiscard]] CPoint2d GetCenter() const;
88 virtual void SetCenter(CPoint2d newCenter);
89 [[nodiscard]] double GetRadius() const;
90 virtual void SetRadius(double newRadius);
91};
92
93
94class CAnnulus
95{
96public:
97 CPoint2d m_center;
98 double m_innerRadius = 0.;
99 double m_outerRadius = 0.;
100
101 [[nodiscard]] CPoint2d GetCenter() const;
102 virtual void SetCenter(CPoint2d newCenter);
103 [[nodiscard]] double GetInnerRadius() const;
104 virtual void SetInnerRadius(double newInnerRadius);
105 [[nodiscard]] double GetOuterRadius() const;
106 virtual void SetOuterRadius(double newOuterRadius);
107};
108
109inline double CPoint2d::GetY() const
110{
111 return m_y;
112}
113
114inline void CPoint2d::SetY(double newY)
115{
116 m_y = newY;
117}
118
119inline double CPoint2d::GetX() const
120{
121 return m_x;
122}
123
124inline void CPoint2d::SetX(double newX)
125{
126 m_x = newX;
127}
128
129inline CPoint2d CLine2d::GetPoint2() const
130{
131 return m_point2;
132}
133
134inline void CLine2d::SetPoint2(CPoint2d newPoint2)
135{
136 m_point2 = newPoint2;
137}
138
139inline CPoint2d CLine2d::GetPoint1() const
140{
141 return m_point1;
142}
143
144inline void CLine2d::SetPoint1(CPoint2d newPoint1)
145{
146 m_point1 = newPoint1;
147}
148
149inline QList<CPoint2d> CPolyline2d::GetPoints() const
150{
151 return m_points;
152}
153
154inline void CPolyline2d::SetPoints(const QList<CPoint2d>& newPoints)
155{
156 m_points = newPoints;
157}
158
159inline bool CPolygon2d::GetIsClosed() const
160{
161 return m_isClosed;
162}
163
164inline void CPolygon2d::SetIsClosed(bool newIsClosed)
165{
166 m_isClosed = newIsClosed;
167}
168
169inline QList<CPoint2d> CPolygon2d::GetPoints() const
170{
171 return m_points;
172}
173
174inline void CPolygon2d::SetPoints(const QList<CPoint2d>& newPoints)
175{
176 m_points = newPoints;
177}
178
179inline CPoint2d CRectangle2d::GetBottomRight() const
180{
181 return m_bottomRight;
182}
183
184inline void CRectangle2d::SetBottomRight(CPoint2d newBottomRight)
185{
186 m_bottomRight = newBottomRight;
187}
188
189inline CPoint2d CRectangle2d::GetTopLeft() const
190{
191 return m_topLeft;
192}
193
194inline void CRectangle2d::SetTopLeft(CPoint2d newTopLeft)
195{
196 m_topLeft = newTopLeft;
197}
198
199inline double CCircle::GetRadius() const
200{
201 return m_radius;
202}
203
204inline void CCircle::SetRadius(double newRadius)
205{
206 m_radius = newRadius;
207}
208
209inline CPoint2d CCircle::GetCenter() const
210{
211 return m_center;
212}
213
214inline void CCircle::SetCenter(CPoint2d newCenter)
215{
216 m_center = newCenter;
217}
218
219inline double CAnnulus::GetInnerRadius() const
220{
221 return m_innerRadius;
222}
223
224inline void CAnnulus::SetInnerRadius(double newInnerRadius)
225{
226 m_innerRadius = newInnerRadius;
227}
228
229inline double CAnnulus::GetOuterRadius() const
230{
231 return m_outerRadius;
232}
233
234inline void CAnnulus::SetOuterRadius(double newOuterRadius)
235{
236 m_outerRadius = newOuterRadius;
237}
238
239inline CPoint2d CAnnulus::GetCenter() const
240{
241 return m_center;
242}
243
244inline void CAnnulus::SetCenter(CPoint2d newCenter)
245{
246 m_center = newCenter;
247}
248
249
250}
These are useless classes that were created as expected from the generator.
Definition dummy.h:15