27#ifndef GRAPHICS_IMPORT_PLUGIN_H
28#define GRAPHICS_IMPORT_PLUGIN_H
54 virtual const wxString
GetName()
const = 0;
88 virtual bool Load(
const wxString& aFileName ) = 0;
Interface that creates objects representing shapes for a given data model.
Interface for vector graphics import plugins.
virtual bool LoadFromMemory(const wxMemoryBuffer &aMemBuffer)=0
Set memory buffer with content for import.
virtual void ReportMsg(const wxString &aMessage)=0
virtual bool Load(const wxString &aFileName)=0
Load file for import.
virtual double GetImageHeight() const =0
Return image height from original imported file.
virtual const std::vector< std::string > GetFileExtensions() const =0
Return a vector of the file extensions handled by this plugin.
virtual void SetLineWidthMM(double aLineWidth)
virtual BOX2D GetImageBBox() const =0
Return image bounding box from original imported file.
GRAPHICS_IMPORTER * m_importer
< Importer used to create objects representing the imported shapes.
virtual const wxString & GetMessages() const =0
Collect warning and error messages after loading/importing.
wxString GetWildcards() const
Return a list of wildcards that contains the file extensions handled by this plugin,...
virtual double GetImageWidth() const =0
Return image width from original imported file.
virtual void SetImporter(GRAPHICS_IMPORTER *aImporter)
Set the receiver of the imported shapes.
virtual bool Import()=0
Actually imports the file.
virtual const wxString GetName() const =0
Return the plugin name.
virtual ~GRAPHICS_IMPORT_PLUGIN()
wxString formatWildcardExt(const wxString &aWildcard)
Format wildcard extension to support case sensitive file dialogs.
Definition of file extensions used in Kicad.