BlinkenArea - GitList
Repositories
Blog
Wiki
dxfngc
Code
Commits
Branches
Tags
Search
Tree:
b44cc2a
Branches
Tags
master
dxfngc
src
drawing.h
implement joining and improving paths
Stefan Schuermans
commited
b44cc2a
at 2013-01-26 23:15:34
drawing.h
Blame
History
Raw
/* drawing (DXF) to G-code (NGC) converter * Copyright 2013 Stefan Schuermans <stefan@schuermans.info> * Copyleft: CC-BY-SA http://creativecommons.org/licenses/by-sa/3.0/ */ #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 * @return if the DXF file could be read */ bool addDxf(const std::string &strFileName); /** * @brief load a DXF file to this drawing * @param[in] strFileName name of the DXF file to read * @return if the DXF file could be read */ bool loadDxf(const std::string &strFileName); /** * @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