~ubuntu-branches/ubuntu/utopic/slic3r/utopic

« back to all changes in this revision

Viewing changes to xs/src/GCode.hpp

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2014-06-17 01:27:26 UTC
  • Revision ID: package-import@ubuntu.com-20140617012726-2wrs4zdo251nr4vg
Tags: upstream-1.1.4+dfsg
ImportĀ upstreamĀ versionĀ 1.1.4+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef slic3r_GCode_hpp_
 
2
#define slic3r_GCode_hpp_
 
3
 
 
4
#include <myinit.h>
 
5
#include <string>
 
6
 
 
7
namespace Slic3r {
 
8
 
 
9
// draft for a binary representation of a G-code line
 
10
 
 
11
enum GCodeCmdType {
 
12
    gcctSyncMotion,
 
13
    gcctExtrude,
 
14
    gcctResetE,
 
15
    gcctSetTemp,
 
16
    gcctSetTempWait,
 
17
    gcctToolchange,
 
18
    gcctCustom
 
19
};
 
20
 
 
21
class GCodeCmd {
 
22
    public:
 
23
    GCodeCmdType type;
 
24
    float X, Y, Z, E, F;
 
25
    unsigned short T, S;
 
26
    std::string custom, comment;
 
27
    float xy_dist; // cache
 
28
    
 
29
    GCodeCmd(GCodeCmdType type)
 
30
        : type(type), X(0), Y(0), Z(0), E(0), F(0), T(-1), S(0), xy_dist(-1) {};
 
31
};
 
32
 
 
33
}
 
34
 
 
35
#endif