New methods in Slic3r::SVG C++ class

This commit is contained in:
Alessandro Ranellucci 2015-01-06 16:26:15 +01:00
parent f0de57cbe4
commit 713fcb5e8e
2 changed files with 68 additions and 12 deletions

View file

@ -2,6 +2,7 @@
#define slic3r_SVG_hpp_
#include <myinit.h>
#include "ExPolygon.hpp"
#include "Line.hpp"
#include "TriangleMesh.hpp"
@ -9,15 +10,24 @@ namespace Slic3r {
class SVG
{
private:
FILE* f;
float coordinate(long c);
public:
bool arrows;
std::string fill, stroke;
SVG(const char* filename);
void AddLine(const Line &line);
void AddLine(const IntersectionLine &line);
void draw(const ExPolygon &expolygon);
void draw(const Polygon &polygon);
void draw(const Polyline &polyline);
void Close();
private:
std::string filename;
FILE* f;
void path(const std::string &d, bool fill);
std::string get_path_d(const MultiPoint &polygon) const;
};
}