103091658b6cfea3f42904330cdabd53d184fb6a
Stefan Schuermans initial version, DXFs can b...

Stefan Schuermans authored 11 years ago

1) /* drawing (DXF) to G-code (NGC) converter
2)  * Copyright 2013 Stefan Schuermans <stefan@schuermans.info>
Stefan Schuermans license CC-BY-SA --> GPL (m...

Stefan Schuermans authored 11 years ago

3)  * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
Stefan Schuermans initial version, DXFs can b...

Stefan Schuermans authored 11 years ago

4)  */
5) 
6) #ifndef DRAWING_H
7) #define DRAWING_H
8) 
9) #include <map>
10) #include <string>
11) 
12) #include "layer.h"
13) 
14) /// drawing, e.g. a loaded DXF file
15) class Drawing {
16) public:
17)   /// type for layers in drawing (key: layer name, value: layer)
18)   typedef std::map<std::string, Layer> Layers;
19) 
20)   /**
21)    * @brief clear all contents of drawing
22)    */
23)   void clear();
24) 
25)   /**
26)    * @brief add a DXF file to this drawing
27)    * @param[in] strFileName name of the DXF file to read
Stefan Schuermans implement finer approximati...

Stefan Schuermans authored 11 years ago

28)    * @param[in] precision precision for entity to lines conversion
Stefan Schuermans initial version, DXFs can b...

Stefan Schuermans authored 11 years ago

29)    * @return if the DXF file could be read
30)    */
Stefan Schuermans implement finer approximati...

Stefan Schuermans authored 11 years ago

31)   bool addDxf(const std::string &strFileName, double precision);
Stefan Schuermans initial version, DXFs can b...

Stefan Schuermans authored 11 years ago

32) 
33)   /**
34)    * @brief load a DXF file to this drawing
35)    * @param[in] strFileName name of the DXF file to read
Stefan Schuermans implement finer approximati...

Stefan Schuermans authored 11 years ago

36)    * @param[in] precision precision for entity to lines conversion
Stefan Schuermans initial version, DXFs can b...

Stefan Schuermans authored 11 years ago

37)    * @return if the DXF file could be read
38)    */
Stefan Schuermans implement finer approximati...

Stefan Schuermans authored 11 years ago

39)   bool loadDxf(const std::string &strFileName, double precision);
Stefan Schuermans initial version, DXFs can b...

Stefan Schuermans authored 11 years ago

40) 
Stefan Schuermans implement joining and impro...

Stefan Schuermans authored 11 years ago

41)   /**
42)    * @brief improve paths in layers
43)    * @param[in] eqDist maximum distance of tho points to be considered equal
44)    */
45)   void improvePaths(double eqDist);
46)