-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgcodesimpler.h
More file actions
42 lines (31 loc) · 904 Bytes
/
Copy pathgcodesimpler.h
File metadata and controls
42 lines (31 loc) · 904 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
#ifndef GCODESIMPLER_H
#define GCODESIMPLER_H
#include <QObject>
static const QString inSuffix = "gcode";
static const QString outSuffix = "xj3dp";
class GCodeSimpler : public QObject
{
Q_OBJECT
public:
explicit GCodeSimpler(QObject *parent = 0);
const QString simplify(const QString & reference);
static void consoleWrite(const QString & message);
void processingResult(bool status, const QString &message);
signals:
void processing(const QString & filepath);
void finished(bool status, const QString & filepath);
public slots:
void processGCode(const QStringList &filelist);
void clearPosition();
private slots:
void processLayerChange(QStringList &outList, QStringList &list);
private:
double x,y,z,e,f;
double last_z;
double ref_z;
int data_count;
int layer_count;
bool first;
bool z_ground;
};
#endif // GCODESIMPLER_H