forked from apsystems/GrblHoming
-
Notifications
You must be signed in to change notification settings - Fork 182
Expand file tree
/
Copy patharcitem.h
More file actions
39 lines (30 loc) · 714 Bytes
/
Copy patharcitem.h
File metadata and controls
39 lines (30 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef ARCITEM_H
#define ARCITEM_H
#include <QtCore>
#include "itemtobase.h"
#define TWO_PI (2 * 3.1415926)
class ArcItem : public ItemToBase
{
public:
ArcItem(double sx1, double sy1, double ex1, double ey1, double centx1, double centy1, bool cw, int index);
void moveToFirst(QPainterPath& path);
void addToPath(QPainterPath& path);
PosItem computeExtents();
double getXScr();
double getYScr();
double getXRaw();
double getYRaw();
double toDegrees(double rad);
private:
double sx;
double sy;
double ex;
double ey;
double centx;
double centy;
bool cw;
double radius;
double angleStart;
double angleDelta;
};
#endif // ARCITEM_H