26#ifndef SVG_IMPORT_PLUGIN_H
27#define SVG_IMPORT_PLUGIN_H
50 return "Scalable Vector Graphics";
55 static std::vector<std::string> exts = {
"svg" };
68 bool Load(
const wxString& aFileName )
override;
74 void DrawPath(
const float* aPoints,
int aNumPoints,
bool aClosedPath,
bool aFilled,
double aLineWidth );
77 std::vector< VECTOR2D >& aGeneratedPoints );
80 std::vector< VECTOR2D >& aGeneratedPoints );
82 void DrawPolygon(
const std::vector< VECTOR2D >& aPoints,
double aWidth );
83 void DrawLineSegments(
const std::vector< VECTOR2D >& aPoints,
double aWidth );
Interface for vector graphics import plugins.
const wxString & GetMessages() const override
void DrawCubicBezierPath(const float *aPoints, int aNumPoints, std::vector< VECTOR2D > &aGeneratedPoints)
void DrawLineSegments(const std::vector< VECTOR2D > &aPoints, double aWidth)
GRAPHICS_IMPORTER_BUFFER m_internalImporter
struct NSVGimage * m_parsedImage
void DrawPath(const float *aPoints, int aNumPoints, bool aClosedPath, bool aFilled, double aLineWidth)
bool Import() override
Actually imports the file.
const std::vector< std::string > GetFileExtensions() const override
Return a vector of the file extensions handled by this plugin.
virtual double GetImageWidth() const override
Return image width from original imported file.
bool Load(const wxString &aFileName) override
Load file for import.
const wxString GetName() const override
Return the plugin name.
void DrawCubicBezierCurve(const float *aPoints, std::vector< VECTOR2D > &aGeneratedPoints)
virtual double GetImageHeight() const override
Return image height from original imported file.
void DrawPolygon(const std::vector< VECTOR2D > &aPoints, double aWidth)
Definition of file extensions used in Kicad.