5 #include "BufferWrite.hh"
14 Command(uint16_t cmd, double x, double y);
15 /*************************************************************************/
17 part for to file directly
20 static void G0_high(std::ostream& s, double z);
21 static void resetE(std::ostream& s);
22 friend std::ostream& operator<<(std::ostream& s, const Command& c);
23 /*************************************************************************/
24 /*************************************************************************/
26 part for to writing buffer
28 static void G0_high(BufferWrite& buf, double z);
29 static void resetE(BufferWrite& buf);
30 friend BufferWrite& operator<<(BufferWrite& buf, const Command& c);
31 /*************************************************************************/
43 std::vector<Loop> loops;
44 std::vector<Command> commands;
45 std::vector<std::vector<Cross>> parts;
51 std::vector<Loop>& getLoops();
52 std::vector<Command>& getCommands();
53 std::vector<std::vector<Cross>>& getParts();
54 void commandsOut(std::ostream& s) const; // output to gcode file
55 void commandsOut(BufferWrite& buf) const; // output to writing buffer
56 void generateDe(); // Calculate how much to extrude