KiCad PCB EDA Suite
Loading...
Searching...
No Matches
GRAPHICS_IMPORT_MGR Class Reference

Manage vector graphics importers. More...

#include <graphics_import_mgr.h>

Public Types

enum  GFX_FILE_T { DXF , SVG }
 < List of handled file types. More...
 
using TYPE_LIST = std::vector< GFX_FILE_T >
 

Public Member Functions

 GRAPHICS_IMPORT_MGR (const TYPE_LIST &aBlacklist)
 Construct an import plugin manager, with a specified list of filetypes that are not permitted (can be used for when some file type support is not available due to config or other reasons) More...
 
TYPE_LIST GetImportableFileTypes () const
 Returns a plugin that handles a specific file extension. More...
 
std::unique_ptr< GRAPHICS_IMPORT_PLUGINGetPluginByExt (const wxString &aExtension) const
 Returns a plugin instance for a specific file type. More...
 
std::unique_ptr< GRAPHICS_IMPORT_PLUGINGetPlugin (GFX_FILE_T aType) const
 

Private Attributes

TYPE_LIST m_importableTypes
 

Detailed Description

Manage vector graphics importers.

Definition at line 39 of file graphics_import_mgr.h.

Member Typedef Documentation

◆ TYPE_LIST

Definition at line 49 of file graphics_import_mgr.h.

Member Enumeration Documentation

◆ GFX_FILE_T

< List of handled file types.

Enumerator
DXF 
SVG 

Definition at line 43 of file graphics_import_mgr.h.

Constructor & Destructor Documentation

◆ GRAPHICS_IMPORT_MGR()

GRAPHICS_IMPORT_MGR::GRAPHICS_IMPORT_MGR ( const TYPE_LIST aBlacklist)

Construct an import plugin manager, with a specified list of filetypes that are not permitted (can be used for when some file type support is not available due to config or other reasons)

Vector containing all GFX_FILE_T values that can be imported.

Definition at line 34 of file graphics_import_mgr.cpp.

References DXF, m_importableTypes, and SVG.

Member Function Documentation

◆ GetImportableFileTypes()

TYPE_LIST GRAPHICS_IMPORT_MGR::GetImportableFileTypes ( ) const
inline

Returns a plugin that handles a specific file extension.

Definition at line 59 of file graphics_import_mgr.h.

References m_importableTypes.

Referenced by GetPluginByExt().

◆ GetPlugin()

std::unique_ptr< GRAPHICS_IMPORT_PLUGIN > GRAPHICS_IMPORT_MGR::GetPlugin ( GFX_FILE_T  aType) const

Definition at line 50 of file graphics_import_mgr.cpp.

References DXF, and SVG.

Referenced by BOOST_AUTO_TEST_CASE(), and GetPluginByExt().

◆ GetPluginByExt()

std::unique_ptr< GRAPHICS_IMPORT_PLUGIN > GRAPHICS_IMPORT_MGR::GetPluginByExt ( const wxString &  aExtension) const

Returns a plugin instance for a specific file type.

Definition at line 67 of file graphics_import_mgr.cpp.

References compareFileExtensions(), fileType(), GetImportableFileTypes(), and GetPlugin().

Referenced by BOOST_AUTO_TEST_CASE().

Member Data Documentation

◆ m_importableTypes

TYPE_LIST GRAPHICS_IMPORT_MGR::m_importableTypes
private

Definition at line 71 of file graphics_import_mgr.h.

Referenced by GetImportableFileTypes(), and GRAPHICS_IMPORT_MGR().


The documentation for this class was generated from the following files: