BlinkenArea - GitList
Repositories
Blog
Wiki
dxfngc
Code
Commits
Branches
Tags
Search
Tree:
1030916
Branches
Tags
master
dxfngc
src
layer.h
license CC-BY-SA --> GPL (more suitable for source code)
Stefan Schuermans
commited
1030916
at 2013-05-27 17:35:02
layer.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 LAYER_H #define LAYER_H #include <list> #include "gcode.h" #include "path.h" #include "settings.h" /// layer of drawing class Layer { public: typedef std::list<Path> Paths; ///< type for paths in layer /** * @brief add a new empty path to the layer * @return reference to new empty path */ Path & addPath(); /** * @brief improve paths * @param[in] eqDist maximum distance of two points to be considered equal */ void improvePaths(double eqDist); /** * @brief convert layer to G-code * @param[in] settings G-code creation settings * @param[in,out] gcode new G-code is appended to existing G-code */ void toGCode(const Settings &settings, GCode &gcode) const; Paths mPaths; ///< paths in layer }; #endif // #ifndef LAYER_H