diff options
author | jaseg <git@jaseg.de> | 2021-01-30 00:27:43 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-01-30 00:27:43 +0100 |
commit | eac89409b80c8f61efc98a20b4d742c878cde637 (patch) | |
tree | 469f2188f3930f74ee91d90f627fcedfd4420dfe /include/gerbolyze.hpp | |
parent | 52dcceb87f5847dc235f5b5965f57881f327143c (diff) | |
download | gerbolyze-eac89409b80c8f61efc98a20b4d742c878cde637.tar.gz gerbolyze-eac89409b80c8f61efc98a20b4d742c878cde637.tar.bz2 gerbolyze-eac89409b80c8f61efc98a20b4d742c878cde637.zip |
Add KiCAD sexp output
Diffstat (limited to 'include/gerbolyze.hpp')
-rw-r--r-- | include/gerbolyze.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/gerbolyze.hpp b/include/gerbolyze.hpp index 1d4f9bd..af25571 100644 --- a/include/gerbolyze.hpp +++ b/include/gerbolyze.hpp @@ -220,6 +220,25 @@ namespace gerbolyze { d2p m_offset; }; + class KicadSexpOutput : public StreamPolygonSink { + public: + KicadSexpOutput(std::ostream &out, std::string mod_name, std::string layer, bool only_polys=false, std::string m_ref_text="", std::string m_val_text="G*****", d2p ref_pos={0,10}, d2p val_pos={0,-10}); + virtual ~KicadSexpOutput() {} + virtual KicadSexpOutput &operator<<(const Polygon &poly); + virtual KicadSexpOutput &operator<<(GerberPolarityToken pol); + virtual void header_impl(d2p origin, d2p size); + virtual void footer_impl(); + + private: + std::string m_mod_name; + std::string m_layer; + std::string m_ref_text; + std::string m_val_text; + d2p m_ref_pos; + d2p m_val_pos; + }; + + /* TODO class SExpOutput : public StreamPolygonSink { public: |