-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdialog.h
More file actions
59 lines (40 loc) · 1017 Bytes
/
Copy pathdialog.h
File metadata and controls
59 lines (40 loc) · 1017 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef DIALOG_H
#define DIALOG_H
#include <QDialog>
#include <QImage>
#include <QByteArray>
#include <QVector2D>
namespace Ui {
class Dialog;
}
class Dialog : public QDialog
{
Q_OBJECT
public:
explicit Dialog(QWidget *parent = nullptr);
~Dialog();
private slots:
void on_bLoad_clicked();
void on_bGenerate_clicked();
private:
Ui::Dialog *ui;
float mE=0;
QByteArray mGCode;
QImage mImage;
float mZ = 0.0f;
QVector2D mCenter;
QString mDefaultPath;
void heating();
void g21();
void g28();
void g90();
void g92(const float e=0.0f);
void g(const QString &str);
void g0(const QVector3D v);
void g1(const QVector3D v, const float e);
QString toStr(const float val);
QVector2D calcPos(const float angle, const float radius);
bool checkImage();
void generateGCODE(const QImage &image, const float radius, const float amplitude);
};
#endif // DIALOG_H