BlinkenArea - GitList
Repositories
Blog
Wiki
dxfngc
Code
Commits
Branches
Tags
Search
Tree:
1030916
Branches
Tags
master
dxfngc
src
drawing.h
license CC-BY-SA --> GPL (more suitable for source code)
Stefan Schuermans
commited
1030916
at 2013-05-27 17:35:02
drawing.h
Blame
History
Raw
/* drawing (DXF) to G-code (NGC) converter * Copyright 2013 Stefan Schuermans <stefan@schuermans.info> * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html */ #ifndef DRAWING_H #define DRAWING_H #include <map> #include <string> #include "layer.h" /// drawing, e.g. a loaded DXF file class Drawing { public: /// type for layers in drawing (key: layer name, value: layer) typedef std::map<std::string, Layer> Layers; /** * @brief clear all contents of drawing */ void clear(); /** * @brief add a DXF file to this drawing * @param[in] strFileName name of the DXF file to read * @param[in] precision precision for entity to lines conversion * @return if the DXF file could be read */ bool addDxf(const std::string &strFileName, double precision); /** * @brief load a DXF file to this drawing * @param[in] strFileName name of the DXF file to read * @param[in] precision precision for entity to lines conversion * @return if the DXF file could be read */ bool loadDxf(const std::string &strFileName, double precision); /** * @brief improve paths in layers * @param[in] eqDist maximum distance of tho points to be considered equal */ void improvePaths(double eqDist); Layers mLayers; ///< layers in drawing }; #endif // #ifndef DRAWING_H