![]() |
KiCad PCB EDA Suite
|
Works with Eagle 6.x XML board files and footprints to implement the Pcbnew PLUGIN API or a portion of it. More...
#include <eagle_plugin.h>
Public Types | |
typedef int | BIU |
Public Member Functions | |
const wxString | PluginName () const override |
Return a brief hard coded name for this PLUGIN. More... | |
BOARD * | Load (const wxString &aFileName, BOARD *aAppendToMe, const PROPERTIES *aProperties=nullptr, PROJECT *aProject=nullptr) override |
Load information from some input file format that this PLUGIN implementation knows about into either a new BOARD or an existing one. More... | |
std::vector< FOOTPRINT * > | GetImportedCachedLibraryFootprints () override |
Return a container with the cached library footprints generated in the last call to Load. More... | |
const wxString | GetFileExtension () const override |
Returns the file extension for the PLUGIN. More... | |
void | FootprintEnumerate (wxArrayString &aFootprintNames, const wxString &aLibraryPath, bool aBestEfforts, const PROPERTIES *aProperties=nullptr) override |
Return a list of footprint names contained within the library at aLibraryPath. More... | |
FOOTPRINT * | FootprintLoad (const wxString &aLibraryPath, const wxString &aFootprintName, bool aKeepUUID=false, const PROPERTIES *aProperties=nullptr) override |
Load a footprint having aFootprintName from the aLibraryPath containing a library format that this PLUGIN knows about. More... | |
long long | GetLibraryTimestamp (const wxString &aLibraryPath) const override |
Generate a timestamp representing all the files in the library (including the library directory). More... | |
bool | IsFootprintLibWritable (const wxString &aLibraryPath) override |
Return true if the library at aLibraryPath is writable. More... | |
void | FootprintLibOptions (PROPERTIES *aProperties) const override |
Append supported PLUGIN options to aListToAppenTo along with internationalized descriptions. More... | |
EAGLE_PLUGIN () | |
~EAGLE_PLUGIN () | |
std::map< wxString, PCB_LAYER_ID > | DefaultLayerMappingCallback (const std::vector< INPUT_LAYER_DESC > &aInputLayerDescriptionVector) |
Return the automapped layers. More... | |
virtual void | Save (const wxString &aFileName, BOARD *aBoard, const PROPERTIES *aProperties=nullptr) |
Write aBoard to a storage file in a format that this PLUGIN implementation knows about or it can be used to write a portion of aBoard to a special kind of export file. More... | |
virtual void | PrefetchLib (const wxString &aLibraryPath, const PROPERTIES *aProperties=nullptr) |
If possible, prefetches the specified library (e.g. More... | |
virtual const FOOTPRINT * | GetEnumeratedFootprint (const wxString &aLibraryPath, const wxString &aFootprintName, const PROPERTIES *aProperties=nullptr) |
A version of FootprintLoad() for use after FootprintEnumerate() for more efficient cache management. More... | |
virtual bool | FootprintExists (const wxString &aLibraryPath, const wxString &aFootprintName, const PROPERTIES *aProperties=nullptr) |
Check for the existence of a footprint. More... | |
virtual void | FootprintSave (const wxString &aLibraryPath, const FOOTPRINT *aFootprint, const PROPERTIES *aProperties=nullptr) |
Write aFootprint to an existing library located at aLibraryPath. More... | |
virtual void | FootprintDelete (const wxString &aLibraryPath, const wxString &aFootprintName, const PROPERTIES *aProperties=nullptr) |
Delete aFootprintName from the library at aLibraryPath. More... | |
virtual void | FootprintLibCreate (const wxString &aLibraryPath, const PROPERTIES *aProperties=nullptr) |
Create a new empty footprint library at aLibraryPath empty. More... | |
virtual bool | FootprintLibDelete (const wxString &aLibraryPath, const PROPERTIES *aProperties=nullptr) |
Delete an existing footprint library and returns true, or if library does not exist returns false, or throws an exception if library exists but is read only or cannot be deleted for some other reason. More... | |
virtual void | RegisterLayerMappingCallback (LAYER_MAPPING_HANDLER aLayerMappingHandler) |
Register a different handler to be called when mapping of input layers to KiCad layers occurs. More... | |
Protected Attributes | |
LAYER_MAPPING_HANDLER | m_layer_mapping_handler |
Callback to get layer mapping. More... | |
Private Types | |
typedef std::vector< ELAYER > | ELAYERS |
typedef ELAYERS::const_iterator | EITER |
Private Member Functions | |
void | init (const PROPERTIES *aProperties) |
initialize PLUGIN like a constructor would, and futz with fresh BOARD if needed. More... | |
void | clear_cu_map () |
int | kicad_y (const ECOORD &y) const |
Convert an Eagle distance to a KiCad distance. More... | |
int | kicad_x (const ECOORD &x) const |
wxSize | kicad_fontz (const ECOORD &d, int aTextThickness) const |
create a font size (fontz) from an eagle font size scalar and KiCad font thickness More... | |
void | mapEagleLayersToKicad () |
Generate mapping between Eagle na KiCad layers. More... | |
PCB_LAYER_ID | kicad_layer (int aLayer) const |
Convert an Eagle layer to a KiCad layer. More... | |
std::tuple< PCB_LAYER_ID, LSET, bool > | defaultKicadLayer (int aEagleLayer) const |
Get default KiCad layer corresponding to an Eagle layer of the board, a set of sensible layer mapping options and required flag. More... | |
const wxString & | eagle_layer_name (int aLayer) const |
Get Eagle layer name by its number. More... | |
int | eagle_layer_id (const wxString &aLayerName) const |
Get Eagle layer number by its name. More... | |
void | cacheLib (const wxString &aLibraryPath) |
This PLUGIN only caches one footprint library, this determines which one. More... | |
void | loadAllSections (wxXmlNode *aDocument) |
void | loadDesignRules (wxXmlNode *aDesignRules) |
void | loadLayerDefs (wxXmlNode *aLayers) |
void | loadPlain (wxXmlNode *aPlain) |
void | loadSignals (wxXmlNode *aSignals) |
void | loadLibrary (wxXmlNode *aLib, const wxString *aLibName) |
Load the Eagle "library" XML element, which can occur either under a "libraries" element (if a *.brd file) or under a "drawing" element if a *.lbr file. More... | |
void | loadLibraries (wxXmlNode *aLibs) |
void | loadElements (wxXmlNode *aElements) |
ZONE * | loadPolygon (wxXmlNode *aPolyNode) |
Load a copper or keepout polygon and adds it to the board. More... | |
void | orientFootprintAndText (FOOTPRINT *aFootprint, const EELEMENT &e, const EATTR *aNameAttr, const EATTR *aValueAttr) |
void | orientFPText (FOOTPRINT *aFootprint, const EELEMENT &e, FP_TEXT *aFPText, const EATTR *aAttr) |
void | centerBoard () |
move the BOARD into the center of the page More... | |
FOOTPRINT * | makeFootprint (wxXmlNode *aPackage, const wxString &aPkgName) |
Create a FOOTPRINT from an Eagle package. More... | |
void | packageWire (FOOTPRINT *aFootprint, wxXmlNode *aTree) const |
void | packagePad (FOOTPRINT *aFootprint, wxXmlNode *aTree) |
void | packageText (FOOTPRINT *aFootprint, wxXmlNode *aTree) const |
void | packageRectangle (FOOTPRINT *aFootprint, wxXmlNode *aTree) const |
void | packagePolygon (FOOTPRINT *aFootprint, wxXmlNode *aTree) const |
void | packageCircle (FOOTPRINT *aFootprint, wxXmlNode *aTree) const |
void | packageHole (FOOTPRINT *aFootprint, wxXmlNode *aTree, bool aCenter) const |
void | packageSMD (FOOTPRINT *aFootprint, wxXmlNode *aTree) const |
Handles common pad properties. More... | |
void | transferPad (const EPAD_COMMON &aEaglePad, PAD *aPad) const |
Deletes the footprint templates list. More... | |
void | deleteTemplates () |
Static Private Member Functions | |
static wxDateTime | getModificationTime (const wxString &aPath) |
get a file's or dir's modification time. More... | |
Private Attributes | |
int | m_cu_map [17] |
map eagle to KiCad, cu layers only. More... | |
std::map< int, ELAYER > | m_eagleLayers |
Eagle layer data stored by layer number. More... | |
std::map< wxString, int > | m_eagleLayersIds |
Eagle layer ids stored by layer name. More... | |
std::map< wxString, PCB_LAYER_ID > | m_layer_map |
Map of Eagle layers to KiCad layers. More... | |
ERULES * | m_rules |
Eagle design rules. More... | |
XPATH * | m_xpath |
keeps track of what we are working on within XML document during a Load(). More... | |
int | m_hole_count |
generates unique footprint names from eagle "hole"s. More... | |
NET_MAP | m_pads_to_nets |
net list More... | |
FOOTPRINT_MAP | m_templates |
is part of a FOOTPRINT factory that operates using copy construction. More... | |
const PROPERTIES * | m_props |
passed via Save() or Load(), no ownership, may be NULL. More... | |
BOARD * | m_board |
which BOARD is being worked on, no ownership here More... | |
int | m_min_trace |
smallest trace we find on Load(), in BIU. More... | |
int | m_min_hole |
smallest diameter hole we find on Load(), in BIU. More... | |
int | m_min_via |
smallest via we find on Load(), in BIU. More... | |
int | m_min_annulus |
smallest via annulus we find on Load(), in BIU. More... | |
wxString | m_lib_path |
wxDateTime | m_mod_time |
Works with Eagle 6.x XML board files and footprints to implement the Pcbnew PLUGIN API or a portion of it.
Definition at line 128 of file eagle_plugin.h.
typedef int EAGLE_PLUGIN::BIU |
Definition at line 159 of file eagle_plugin.h.
|
private |
Definition at line 279 of file eagle_plugin.h.
|
private |
Definition at line 278 of file eagle_plugin.h.
EAGLE_PLUGIN::EAGLE_PLUGIN | ( | ) |
Definition at line 270 of file eagle_plugin.cpp.
References clear_cu_map(), DefaultLayerMappingCallback(), init(), NULL, and LAYER_REMAPPABLE_PLUGIN::RegisterLayerMappingCallback().
EAGLE_PLUGIN::~EAGLE_PLUGIN | ( | ) |
Definition at line 284 of file eagle_plugin.cpp.
References deleteTemplates(), m_rules, and m_xpath.
|
private |
This PLUGIN only caches one footprint library, this determines which one.
Definition at line 2746 of file eagle_plugin.cpp.
References _, clear_cu_map(), deleteTemplates(), Format(), getModificationTime(), library, loadLayerDefs(), loadLibrary(), m_lib_path, m_mod_time, m_xpath, MapChildren(), NULL, XPATH::pop(), XPATH::push(), and THROW_IO_ERROR.
Referenced by FootprintEnumerate(), and FootprintLoad().
|
private |
move the BOARD into the center of the page
Definition at line 2707 of file eagle_plugin.cpp.
References UTF8::c_str(), BOARD::GetBoardEdgesBoundingBox(), EDA_RECT::GetHeight(), EDA_RECT::GetWidth(), EDA_RECT::GetX(), EDA_RECT::GetY(), m_board, m_props, BOARD::Move(), and PROPERTIES::Value().
Referenced by Load().
|
private |
Definition at line 438 of file eagle_plugin.cpp.
References arrayDim(), and m_cu_map.
Referenced by cacheLib(), and EAGLE_PLUGIN().
|
private |
Get default KiCad layer corresponding to an Eagle layer of the board, a set of sensible layer mapping options and required flag.
Definition at line 2563 of file eagle_plugin.cpp.
References arrayDim(), B_Adhes, B_CrtYd, B_Fab, B_Mask, B_Paste, B_SilkS, EAGLE_LAYER::BCREAM, EAGLE_LAYER::BDOCU, EAGLE_LAYER::BFINISH, EAGLE_LAYER::BGLUE, EAGLE_LAYER::BKEEPOUT, EAGLE_LAYER::BNAMES, EAGLE_LAYER::BPLACE, EAGLE_LAYER::BSTOP, EAGLE_LAYER::BTEST, EAGLE_LAYER::BVALUES, Cmts_User, EAGLE_LAYER::DIMENSION, EAGLE_LAYER::DOCUMENT, Dwgs_User, Eco1_User, Eco2_User, Edge_Cuts, F_Adhes, F_CrtYd, F_Fab, F_Mask, F_Paste, F_SilkS, EAGLE_LAYER::HOLES, m_cu_map, EAGLE_LAYER::MILLING, EAGLE_LAYER::REFERENCELC, EAGLE_LAYER::REFERENCELS, EAGLE_LAYER::TCREAM, EAGLE_LAYER::TDOCU, EAGLE_LAYER::TFINISH, EAGLE_LAYER::TGLUE, EAGLE_LAYER::TKEEPOUT, EAGLE_LAYER::TNAMES, EAGLE_LAYER::TPLACE, EAGLE_LAYER::TSTOP, EAGLE_LAYER::TTEST, EAGLE_LAYER::TVALUES, EAGLE_LAYER::UNROUTED, UNSELECTED_LAYER, EAGLE_LAYER::USERLAYER1, and EAGLE_LAYER::USERLAYER2.
Referenced by DefaultLayerMappingCallback(), and mapEagleLayersToKicad().
std::map< wxString, PCB_LAYER_ID > EAGLE_PLUGIN::DefaultLayerMappingCallback | ( | const std::vector< INPUT_LAYER_DESC > & | aInputLayerDescriptionVector | ) |
Return the automapped layers.
The callback needs to have the context of the current board so it can correctly determine copper layer mapping. Thus, it is not static and is expected to be bind to an instance of EAGLE_PLUGIN.
aInputLayerDescriptionVector |
Definition at line 2520 of file eagle_plugin.cpp.
References defaultKicadLayer(), and eagle_layer_id().
Referenced by EAGLE_PLUGIN().
|
private |
Definition at line 2279 of file eagle_plugin.cpp.
References m_templates.
Referenced by cacheLib(), and ~EAGLE_PLUGIN().
|
private |
Get Eagle layer number by its name.
Definition at line 2699 of file eagle_plugin.cpp.
References m_eagleLayersIds, and unknown.
Referenced by DefaultLayerMappingCallback().
|
private |
Get Eagle layer name by its number.
Definition at line 2691 of file eagle_plugin.cpp.
References m_eagleLayers, and unknown.
Referenced by kicad_layer(), loadPolygon(), packageCircle(), packagePolygon(), packageRectangle(), packageText(), and packageWire().
|
virtualinherited |
Delete aFootprintName from the library at aLibraryPath.
aLibraryPath | is a locator for the "library", usually a directory, file, or URL containing several footprints. |
aFootprintName | is the name of a footprint to delete from the specified library. |
aProperties | is an associative array that can be used to tell the library delete function anything special, because it can take any number of additional named tuning arguments that the plugin is known to support. The caller continues to own this object (plugin may not delete it), and plugins should expect it to be optionally NULL. |
IO_ERROR | if there is a problem finding the footprint or the library, or deleting it. |
Reimplemented in PCB_IO, and GPCB_PLUGIN.
Definition at line 118 of file plugin.cpp.
References not_implemented().
|
overridevirtual |
Return a list of footprint names contained within the library at aLibraryPath.
aLibraryPath | is a locator for the "library", usually a directory, file, or URL containing several footprints. |
aProperties | is an associative array that can be used to tell the plugin anything needed about how to perform with respect to aLibraryPath. The caller continues to own this object (plugin may not delete it), and plugins should expect it to be optionally NULL. |
aFootprintNames | is the array of available footprint names inside a library. |
aBestEfforts | if true, don't throw on errors, just return an empty list. |
IO_ERROR | if the library cannot be found, or footprint cannot be loaded. |
Reimplemented from PLUGIN.
Definition at line 2826 of file eagle_plugin.cpp.
References cacheLib(), FROM_UTF8(), init(), m_templates, THROW_IO_ERROR, and IO_ERROR::What().
|
virtualinherited |
Check for the existence of a footprint.
Reimplemented in PCB_IO.
Definition at line 91 of file plugin.cpp.
References PLUGIN::FootprintLoad().
|
virtualinherited |
Create a new empty footprint library at aLibraryPath empty.
It is an error to attempt to create an existing library or to attempt to create on a "read only" location.
aLibraryPath | is a locator for the "library", usually a directory, file, or URL containing several footprints. |
aProperties | is an associative array that can be used to tell the library create function anything special, because it can take any number of additional named tuning arguments that the plugin is known to support. The caller continues to own this object (plugin may not delete it), and plugins should expect it to be optionally NULL. |
IO_ERROR | if there is a problem finding the library, or creating it. |
Reimplemented in PCB_IO.
Definition at line 126 of file plugin.cpp.
References not_implemented().
|
virtualinherited |
Delete an existing footprint library and returns true, or if library does not exist returns false, or throws an exception if library exists but is read only or cannot be deleted for some other reason.
aLibraryPath | is a locator for the "library", usually a directory or file which will contain footprints. |
aProperties | is an associative array that can be used to tell the library delete implementation function anything special, because it can take any number of additional named tuning arguments that the plugin is known to support. The caller continues to own this object (plugin may not delete it), and plugins should expect it to be optionally NULL. |
IO_ERROR | if there is a problem deleting an existing library. |
Reimplemented in PCB_IO, LEGACY_PLUGIN, and GPCB_PLUGIN.
Definition at line 133 of file plugin.cpp.
References not_implemented().
|
overridevirtual |
Append supported PLUGIN options to aListToAppenTo along with internationalized descriptions.
Options are typically appended so that a derived PLUGIN can call its base class function by the same name first, thus inheriting options declared there. Some base class options could pertain to all Footprint*() functions in all derived PLUGINs.
aListToAppendTo | holds a tuple of
In the future perhaps aListToAppendTo evolves to something capable of also holding a wxValidator for the cells in said dialog: http://forums.wxwidgets.org/viewtopic.php?t=23277&p=104180. This would require a 3 column list, and introducing wx GUI knowledge to PLUGIN, which has been avoided to date. |
Reimplemented from PLUGIN.
Definition at line 2872 of file eagle_plugin.cpp.
References PLUGIN::FootprintLibOptions().
|
overridevirtual |
Load a footprint having aFootprintName from the aLibraryPath containing a library format that this PLUGIN knows about.
aLibraryPath | is a locator for the "library", usually a directory, file, or URL containing several footprints. |
aFootprintName | is the name of the footprint to load. |
aProperties | is an associative array that can be used to tell the loader implementation to do something special, because it can take any number of additional named tuning arguments that the plugin is known to support. The caller continues to own this object (plugin may not delete it), and plugins should expect it to be optionally NULL. |
aKeepUUID | = true to keep initial items UUID, false to set new UUID normally true if loaded in the footprint editor, false if loaded in the board editor. Make sense only in kicad_plugin |
IO_ERROR | if the library cannot be found or read. No exception is thrown in the case where aFootprintName cannot be found. |
Reimplemented from PLUGIN.
Definition at line 2853 of file eagle_plugin.cpp.
References cacheLib(), copy, init(), m_templates, and NULL.
|
virtualinherited |
Write aFootprint to an existing library located at aLibraryPath.
If a footprint by the same name already exists, it is replaced.
aLibraryPath | is a locator for the "library", usually a directory, file, or URL containing several footprints. |
aFootprint | is what to store in the library. The caller continues to own the footprint after this call. |
aProperties | is an associative array that can be used to tell the saver how to save the footprint, because it can take any number of additional named tuning arguments that the plugin is known to support. The caller continues to own this object (plugin may not delete it), and plugins should expect it to be optionally NULL. |
IO_ERROR | if there is a problem saving. |
Reimplemented in PCB_IO.
Definition at line 110 of file plugin.cpp.
References not_implemented().
|
virtualinherited |
A version of FootprintLoad() for use after FootprintEnumerate() for more efficient cache management.
Reimplemented in PCB_IO, and GPCB_PLUGIN.
Definition at line 82 of file plugin.cpp.
References PLUGIN::FootprintLoad().
|
overridevirtual |
Returns the file extension for the PLUGIN.
Implements PLUGIN.
Definition at line 298 of file eagle_plugin.cpp.
|
overridevirtual |
Return a container with the cached library footprints generated in the last call to Load.
This function is intended to be used ONLY by the non-KiCad board importers for the purpose of obtaining the footprint library of the design and creating a project-specific library.
Reimplemented from PLUGIN.
Definition at line 406 of file eagle_plugin.cpp.
References m_templates.
|
inlineoverridevirtual |
Generate a timestamp representing all the files in the library (including the library directory).
Timestamps should not be considered ordered, they either match or they don't.
Implements PLUGIN.
Definition at line 147 of file eagle_plugin.h.
References getModificationTime().
|
staticprivate |
get a file's or dir's modification time.
Definition at line 2731 of file eagle_plugin.cpp.
Referenced by cacheLib(), and GetLibraryTimestamp().
|
private |
initialize PLUGIN like a constructor would, and futz with fresh BOARD if needed.
Definition at line 419 of file eagle_plugin.cpp.
References XPATH::clear(), m_board, m_hole_count, m_min_annulus, m_min_hole, m_min_trace, m_min_via, m_pads_to_nets, m_props, m_rules, m_xpath, and NULL.
Referenced by EAGLE_PLUGIN(), FootprintEnumerate(), FootprintLoad(), and Load().
|
inlineoverridevirtual |
Return true if the library at aLibraryPath is writable.
The system libraries are typically read only because of where they are installed..
aLibraryPath | is a locator for the "library", usually a directory, file, or URL containing several footprints. |
IO_ERROR | if no library at aLibraryPath exists. |
Reimplemented from PLUGIN.
Definition at line 152 of file eagle_plugin.h.
|
inlineprivate |
create a font size (fontz) from an eagle font size scalar and KiCad font thickness
Definition at line 303 of file eagle_plugin.cpp.
References ECOORD::ToPcbUnits().
Referenced by loadPlain(), orientFPText(), and packageText().
|
private |
Convert an Eagle layer to a KiCad layer.
Definition at line 2557 of file eagle_plugin.cpp.
References eagle_layer_name(), m_layer_map, and UNDEFINED_LAYER.
Referenced by loadLayerDefs(), loadPlain(), loadPolygon(), loadSignals(), packageCircle(), packagePolygon(), packageRectangle(), packageSMD(), packageText(), and packageWire().
|
inlineprivate |
Definition at line 185 of file eagle_plugin.h.
References ECOORD::ToPcbUnits().
Referenced by loadElements(), loadPlain(), loadPolygon(), loadSignals(), orientFPText(), packageCircle(), packageHole(), packagePolygon(), packageRectangle(), packageText(), packageWire(), and transferPad().
|
inlineprivate |
Convert an Eagle distance to a KiCad distance.
Definition at line 184 of file eagle_plugin.h.
References ECOORD::ToPcbUnits().
Referenced by loadElements(), loadPlain(), loadPolygon(), loadSignals(), orientFPText(), packageCircle(), packageHole(), packagePolygon(), packageRectangle(), packageText(), packageWire(), and transferPad().
|
overridevirtual |
Load information from some input file format that this PLUGIN implementation knows about into either a new BOARD or an existing one.
This may be used to load an entire new BOARD, or to augment an existing one if aAppendToMe is not NULL.
aFileName | is the name of the file to use as input and may be foreign in nature or native in nature. |
aAppendToMe | is an existing BOARD to append to, but if NULL then this means "do not append, rather load anew". |
aProperties | is an associative array that can be used to tell the loader how to load the file, because it can take any number of additional named arguments that the plugin is known to support. These are tuning parameters for the import or load. The caller continues to own this object (plugin may not delete it), and plugins should expect it to be optionally NULL. |
aProject | is the optional PROJECT object primarily used by third party importers. |
IO_ERROR | if there is a problem loading, and its contents should say what went wrong, using line number and character offsets of the input file if possible. |
Reimplemented from PLUGIN.
Definition at line 311 of file eagle_plugin.cpp.
References _, centerBoard(), XPATH::Contents(), Format(), BOARD::GetCopperLayerCount(), BOARD_DESIGN_SETTINGS::GetDefault(), BOARD::GetDesignSettings(), init(), KiROUND(), loadAllSections(), m_board, m_min_annulus, m_min_hole, m_min_trace, m_min_via, BOARD_DESIGN_SETTINGS::m_MinThroughDrill, m_rules, BOARD_DESIGN_SETTINGS::m_TrackMinWidth, BOARD_DESIGN_SETTINGS::m_ViasMinAnnulus, BOARD_DESIGN_SETTINGS::m_ViasMinSize, m_xpath, ERULES::mdWireWire, NULL, NETCLASS::SetClearance(), BOARD::SetCopperLayerCount(), BOARD::SetFileName(), and THROW_IO_ERROR.
|
private |
Definition at line 447 of file eagle_plugin.cpp.
References loadDesignRules(), loadElements(), loadLayerDefs(), loadLibraries(), loadPlain(), loadSignals(), m_xpath, MapChildren(), mapEagleLayersToKicad(), XPATH::pop(), and XPATH::push().
Referenced by Load().
|
private |
Definition at line 498 of file eagle_plugin.cpp.
References m_rules, m_xpath, ERULES::parse(), XPATH::pop(), and XPATH::push().
Referenced by loadAllSections().
|
private |
Definition at line 998 of file eagle_plugin.cpp.
References _, BOARD::Add(), APPEND, EATTR::BOTH, EATTR::display, Format(), FROM_UTF8(), FOOTPRINT::GetReference(), FOOTPRINT::GetValue(), kicad_x(), kicad_y(), EELEMENT::library, m_board, m_pads_to_nets, m_templates, m_xpath, makeKey(), name, EATTR::name, EATTR::NAME, EELEMENT::name, ENET::netcode, EATTR::Off, orientFootprintAndText(), EELEMENT::package, pad, FOOTPRINT::Pads(), XPATH::pop(), XPATH::push(), FOOTPRINT::Reference(), FP_TEXT::SetLocalCoord(), FOOTPRINT::SetPosition(), FOOTPRINT::SetReference(), FOOTPRINT::SetValue(), EDA_TEXT::SetVisible(), EELEMENT::smashed, THROW_IO_ERROR, XPATH::Value(), FOOTPRINT::Value(), EATTR::value, EATTR::VALUE, EELEMENT::value, EELEMENT::x, and EELEMENT::y.
Referenced by loadAllSections().
|
private |
Definition at line 509 of file eagle_plugin.cpp.
References ELAYER::active, B_Cu, F_Cu, FROM_UTF8(), kicad_layer(), LT_SIGNAL, m_board, m_cu_map, m_eagleLayers, m_eagleLayersIds, ELAYER::name, ELAYER::number, PCB_LAYER_ID_COUNT, BOARD::SetCopperLayerCount(), BOARD::SetLayerName(), and BOARD::SetLayerType().
Referenced by cacheLib(), and loadAllSections().
|
private |
Definition at line 975 of file eagle_plugin.cpp.
References library, loadLibrary(), m_xpath, XPATH::pop(), XPATH::push(), and XPATH::Value().
Referenced by loadAllSections().
|
private |
Load the Eagle "library" XML element, which can occur either under a "libraries" element (if a *.brd file) or under a "drawing" element if a *.lbr file.
aLib | is the portion of the loaded XML document tree that is the "library" element. |
aLibName | is a pointer to the library name or NULL. If NULL this means we are loading a *.lbr not a *.brd file and the key used in m_templates is to exclude the library name. |
Definition at line 920 of file eagle_plugin.cpp.
References _, Format(), m_lib_path, m_templates, m_xpath, makeFootprint(), makeKey(), MapChildren(), XPATH::pop(), XPATH::push(), ReplaceIllegalFileNameChars(), THROW_IO_ERROR, and XPATH::Value().
Referenced by cacheLib(), and loadLibraries().
|
private |
Definition at line 576 of file eagle_plugin.cpp.
References BOARD::Add(), ETEXT::align, PNS::angle(), APPEND, ZONE::AppendCorner(), ETEXT::BOTTOM_CENTER, ETEXT::BOTTOM_LEFT, ETEXT::BOTTOM_RIGHT, EAGLE_LAYER::BRESTRICT, ETEXT::CENTER, ETEXT::CENTER_LEFT, ETEXT::CENTER_RIGHT, ConvertArcCenter(), EWIRE::curve, EROT::degrees, DIAGONAL_EDGE, DIMENSION_PRECISION, EDIMENSION::dimensionType, Format(), FROM_UTF8(), ZONE::GetDefaultHatchPitch(), BOARD::GetDesignSettings(), BOARD_DESIGN_SETTINGS::GetLineThickness(), ZONE::GetPosition(), BOARD_DESIGN_SETTINGS::GetTextSize(), BOARD_DESIGN_SETTINGS::GetTextThickness(), GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_HJUSTIFY_RIGHT, GR_TEXT_VJUSTIFY_BOTTOM, GR_TEXT_VJUSTIFY_TOP, interpret_text(), IsCopperLayer(), kicad_fontz(), kicad_layer(), kicad_x(), kicad_y(), KiROUND(), EWIRE::layer, ECIRCLE::layer, ERECT::layer, EDIMENSION::layer, ETEXT::layer, loadPolygon(), m_board, m_hole_count, m_xpath, MILLIMETRES, EROT::mirror, ZONE::NewHole(), packageHole(), XPATH::pop(), XPATH::push(), ECIRCLE::radius, ETEXT::ratio, FOOTPRINT::Reference(), ERECT::rot, ETEXT::rot, ZONE::Rotate(), RotatePoint(), S_ARC, S_CIRCLE, PCB_SHAPE::SetAngle(), ZONE::SetBorderDisplayStyle(), DIMENSION_BASE::SetEnd(), PCB_SHAPE::SetEnd(), PCB_SHAPE::SetFilled(), ALIGNED_DIMENSION::SetHeight(), EDA_TEXT::SetHorizJustify(), setKeepoutSettingsToZone(), ZONE::SetLayer(), DIMENSION_BASE::SetLayer(), BOARD_ITEM::SetLayer(), DIMENSION_BASE::SetLineThickness(), EDA_TEXT::SetMirrored(), BOARD_CONNECTED_ITEM::SetNetCode(), DIMENSION_BASE::SetPrecision(), FOOTPRINT::SetReference(), PCB_SHAPE::SetShape(), DIMENSION_BASE::SetStart(), PCB_SHAPE::SetStart(), EDA_TEXT::SetText(), PCB_TEXT::SetTextAngle(), EDA_TEXT::SetTextPos(), EDA_TEXT::SetTextSize(), EDA_TEXT::SetTextThickness(), DIMENSION_BASE::SetUnits(), EDA_TEXT::SetVertJustify(), EDA_TEXT::SetVisible(), PCB_SHAPE::SetWidth(), sign(), ETEXT::size, EROT::spin, DIMENSION_BASE::Text(), ETEXT::text, ETEXT::TOP_CENTER, ETEXT::TOP_LEFT, ETEXT::TOP_RIGHT, ECOORD::ToPcbUnits(), EAGLE_LAYER::TRESTRICT, NETINFO_LIST::UNCONNECTED, UNDEFINED_LAYER, EAGLE_LAYER::VRESTRICT, EWIRE::width, ECIRCLE::width, ECIRCLE::x, ETEXT::x, EWIRE::x1, ERECT::x1, EDIMENSION::x1, EWIRE::x2, ERECT::x2, EDIMENSION::x2, EDIMENSION::x3, ECIRCLE::y, ETEXT::y, EWIRE::y1, ERECT::y1, EDIMENSION::y1, EWIRE::y2, ERECT::y2, EDIMENSION::y2, and EDIMENSION::y3.
Referenced by loadAllSections().
|
private |
Load a copper or keepout polygon and adds it to the board.
Definition at line 1249 of file eagle_plugin.cpp.
References _, BOARD::Add(), ZONE::AddPolygon(), SHAPE_POLY_SET::ALLOW_ACUTE_CORNERS, PNS::angle(), APPEND, SHAPE_POLY_SET::Append(), EAGLE_LAYER::BRESTRICT, ConvertArcCenter(), SHAPE_POLY_SET::COutline(), EVERTEX::curve, EPOLYGON::CUTOUT, DEG2RAD(), eagle_layer_name(), Format(), SHAPE_POLY_SET::Fracture(), FULL, GetArcToSegmentCount(), EPOLYGON::HATCH, HATCH_PATTERN, SHAPE_POLY_SET::Inflate(), IsCopperLayer(), EPOLYGON::isolate, IU_PER_MILS, kicad_layer(), kicad_x(), kicad_y(), KiROUND(), EPOLYGON::layer, m_board, EPOLYGON::max_priority, SHAPE_POLY_SET::NewOutline(), NO_HATCH, SHAPE_POLY_SET::PM_STRICTLY_SIMPLE, EPOLYGON::pour, EPOLYGON::rank, ZONE::SetDoNotAllowCopperPour(), ZONE::SetDoNotAllowFootprints(), ZONE::SetDoNotAllowPads(), ZONE::SetDoNotAllowTracks(), ZONE::SetDoNotAllowVias(), ZONE::SetFillMode(), ZONE::SetHatchGap(), ZONE::SetHatchOrientation(), ZONE::SetHatchStyle(), ZONE::SetHatchThickness(), ZONE::SetIsRuleArea(), setKeepoutSettingsToZone(), ZONE::SetLayer(), ZONE::SetLocalClearance(), ZONE::SetMinThickness(), ZONE::SetPadConnection(), ZONE::SetPriority(), ZONE::SetThermalReliefGap(), ZONE::SetThermalReliefSpokeWidth(), EPOLYGON::spacing, THERMAL, EPOLYGON::thermals, ECOORD::ToPcbUnits(), EAGLE_LAYER::TRESTRICT, UNDEFINED_LAYER, v2, EAGLE_LAYER::VRESTRICT, EPOLYGON::width, VECTOR2< T >::x, EVERTEX::x, VECTOR2< T >::y, EVERTEX::y, and ZONE_THICKNESS_MIN_VALUE_MIL.
Referenced by loadPlain(), and loadSignals().
|
private |
Definition at line 2288 of file eagle_plugin.cpp.
References BOARD::Add(), PNS::angle(), B_Cu, BLIND_BURIED, ConvertArcCenter(), EWIRE::curve, DEG2RAD(), EVIA::diam, EVIA::drill, eagleClamp(), escapeName(), F_Cu, GetArcToSegmentCount(), IsCopperLayer(), kicad_layer(), kicad_x(), kicad_y(), KiROUND(), EWIRE::layer, EVIA::layer_back_most, EVIA::layer_front_most, loadPolygon(), m_board, m_min_annulus, m_min_hole, m_min_trace, m_min_via, m_pads_to_nets, m_rules, m_xpath, makeKey(), MICROVIA, pad, XPATH::pop(), XPATH::push(), ERULES::rlMaxViaOuter, ERULES::rlMinViaOuter, ERULES::rvViaOuter, TRACK::SetEnd(), BOARD_ITEM::SetLayer(), BOARD_CONNECTED_ITEM::SetNetCode(), TRACK::SetPosition(), TRACK::SetWidth(), THROUGH, ECOORD::ToPcbUnits(), TRACK, NETINFO_LIST::UNCONNECTED, XPATH::Value(), VIA, via, EWIRE::width, EVIA::x, EWIRE::x1, EWIRE::x2, EVIA::y, EWIRE::y1, and EWIRE::y2.
Referenced by loadAllSections().
|
private |
Create a FOOTPRINT from an Eagle package.
Definition at line 1550 of file eagle_plugin.cpp.
References FROM_UTF8(), m_board, packageCircle(), packageHole(), packagePad(), packagePolygon(), packageRectangle(), packageSMD(), packageText(), packageWire(), and LIB_ID::Parse().
Referenced by loadLibrary().
|
private |
Generate mapping between Eagle na KiCad layers.
Definition at line 2534 of file eagle_plugin.cpp.
References INPUT_LAYER_DESC::AutoMapLayer, defaultKicadLayer(), m_eagleLayers, m_layer_map, LAYER_REMAPPABLE_PLUGIN::m_layer_mapping_handler, INPUT_LAYER_DESC::Name, ELAYER::name, ELAYER::number, INPUT_LAYER_DESC::PermittedLayers, INPUT_LAYER_DESC::Required, and UNDEFINED_LAYER.
Referenced by loadAllSections().
|
private |
Definition at line 1394 of file eagle_plugin.cpp.
References EROT::degrees, FOOTPRINT::Flip(), FOOTPRINT::GetPosition(), EROT::mirror, orientFPText(), FOOTPRINT::Reference(), EELEMENT::rot, FOOTPRINT::SetOrientation(), and FOOTPRINT::Value().
Referenced by loadElements().
|
private |
Definition at line 1416 of file eagle_plugin.cpp.
References EATTR::align, ETEXT::BOTTOM_CENTER, ETEXT::BOTTOM_LEFT, ETEXT::BOTTOM_RIGHT, EROT::degrees, FROM_UTF8(), FOOTPRINT::GetOrientation(), EDA_TEXT::GetTextAngle(), EDA_TEXT::GetTextSize(), GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_HJUSTIFY_RIGHT, GR_TEXT_VJUSTIFY_BOTTOM, GR_TEXT_VJUSTIFY_TOP, EDA_TEXT::IsMirrored(), kicad_fontz(), kicad_x(), kicad_y(), KiROUND(), EROT::mirror, EATTR::ratio, EATTR::rot, EDA_TEXT::SetHorizJustify(), EDA_TEXT::SetMirrored(), EDA_TEXT::SetText(), FP_TEXT::SetTextAngle(), EDA_TEXT::SetTextPos(), EDA_TEXT::SetTextSize(), EDA_TEXT::SetTextThickness(), EDA_TEXT::SetVertJustify(), sign(), EATTR::size, EROT::spin, ETEXT::TOP_CENTER, ETEXT::TOP_LEFT, ETEXT::TOP_RIGHT, EATTR::value, EATTR::x, and EATTR::y.
Referenced by orientFootprintAndText().
|
private |
Definition at line 2058 of file eagle_plugin.cpp.
References _, FOOTPRINT::Add(), PNS::angle(), APPEND, ZONE::AppendCorner(), EAGLE_LAYER::BRESTRICT, Cmts_User, DIAGONAL_EDGE, eagle_layer_name(), Format(), ZONE::GetDefaultHatchPitch(), kicad_layer(), kicad_x(), kicad_y(), ECIRCLE::layer, ZONE::NewHole(), ECIRCLE::radius, RotatePoint(), S_CIRCLE, ZONE::SetBorderDisplayStyle(), FP_SHAPE::SetDrawCoord(), FP_SHAPE::SetEnd0(), setKeepoutSettingsToZone(), BOARD_ITEM::SetLayer(), FP_SHAPE::SetStart0(), PCB_SHAPE::SetWidth(), ECOORD::ToPcbUnits(), EAGLE_LAYER::TRESTRICT, UNDEFINED_LAYER, EAGLE_LAYER::VRESTRICT, ECIRCLE::width, ECIRCLE::x, and ECIRCLE::y.
Referenced by makeFootprint().
|
private |
aFootprint | The KiCad footprint to which to assign the hole. |
aTree | The Eagle XML node that is of type "hole". |
aCenter | If true, center the hole in the footprint and offset the footprint position. |
Definition at line 2141 of file eagle_plugin.cpp.
References FOOTPRINT::Add(), LSET::AllCuMask(), B_Mask, EHOLE::drill, F_Mask, FOOTPRINT::GetPosition(), kicad_x(), kicad_y(), PAD, pad, PAD_ATTRIB_NPTH, PAD_SHAPE_CIRCLE, FOOTPRINT::SetPosition(), ECOORD::ToPcbUnits(), EHOLE::x, and EHOLE::y.
Referenced by loadPlain(), and makeFootprint().
|
private |
Definition at line 1673 of file eagle_plugin.cpp.
References FOOTPRINT::Add(), LSET::AllCuMask(), B_Cu, B_Mask, EROT::degrees, EPAD::diameter, EPAD::drill, eagleClamp(), F_Cu, F_Mask, EPAD::first, BOARD_ITEM::GetLayer(), KiROUND(), EPAD::LONG, m_min_hole, m_rules, EPAD::OCTAGON, EPAD::OFFSET, PAD, pad, PAD_SHAPE_CHAMFERED_RECT, PAD_SHAPE_CIRCLE, PAD_SHAPE_OVAL, PAD_SHAPE_RECT, ERULES::psBottom, ERULES::psElongationLong, ERULES::psFirst, ERULES::psTop, RECT_CHAMFER_ALL, ERULES::rlMaxPadTop, ERULES::rlMinPadTop, EPAD_COMMON::rot, EPAD::ROUND, ERULES::rvPadTop, EPAD::shape, EPAD::SQUARE, EPAD_COMMON::stop, ECOORD::ToPcbUnits(), transferPad(), and EPAD::UNDEF.
Referenced by makeFootprint().
|
private |
Definition at line 1955 of file eagle_plugin.cpp.
References _, FOOTPRINT::Add(), SHAPE_POLY_SET::AddOutline(), SHAPE_POLY_SET::ALLOW_ACUTE_CORNERS, PNS::angle(), APPEND, EAGLE_LAYER::BRESTRICT, ConvertArcCenter(), EVERTEX::curve, DEG2RAD(), DIAGONAL_EDGE, eagle_layer_name(), Format(), GetArcToSegmentCount(), ZONE::GetDefaultHatchPitch(), PCB_SHAPE::GetPolyShape(), SHAPE_POLY_SET::Inflate(), kicad_layer(), kicad_x(), kicad_y(), KiROUND(), EPOLYGON::layer, ZONE::Outline(), S_POLYGON, ZONE::SetBorderDisplayStyle(), SHAPE_LINE_CHAIN::SetClosed(), FP_SHAPE::SetDrawCoord(), FP_SHAPE::SetEnd0(), setKeepoutSettingsToZone(), BOARD_ITEM::SetLayer(), PCB_SHAPE::SetPolyPoints(), FP_SHAPE::SetStart0(), PCB_SHAPE::SetWidth(), ECOORD::ToPcbUnits(), EAGLE_LAYER::TRESTRICT, UNDEFINED_LAYER, v2, EAGLE_LAYER::VRESTRICT, EPOLYGON::width, VECTOR2< T >::x, EVERTEX::x, VECTOR2< T >::y, and EVERTEX::y.
Referenced by makeFootprint().
|
private |
Definition at line 1886 of file eagle_plugin.cpp.
References _, FOOTPRINT::Add(), APPEND, ZONE::AppendCorner(), EAGLE_LAYER::BRESTRICT, EROT::degrees, DIAGONAL_EDGE, eagle_layer_name(), Format(), PCB_SHAPE::GetCenter(), ZONE::GetDefaultHatchPitch(), kicad_layer(), kicad_x(), kicad_y(), ERECT::layer, ERECT::rot, FP_SHAPE::Rotate(), ZONE::Rotate(), S_POLYGON, ZONE::SetBorderDisplayStyle(), FP_SHAPE::SetEnd0(), setKeepoutSettingsToZone(), BOARD_ITEM::SetLayer(), PCB_SHAPE::SetPolyPoints(), FP_SHAPE::SetStart0(), PCB_SHAPE::SetWidth(), EAGLE_LAYER::TRESTRICT, UNDEFINED_LAYER, EAGLE_LAYER::VRESTRICT, ERECT::x1, ERECT::x2, ERECT::y1, and ERECT::y2.
Referenced by makeFootprint().
|
private |
Handles common pad properties.
Definition at line 2180 of file eagle_plugin.cpp.
References FOOTPRINT::Add(), B_Cu, B_Mask, B_Paste, ESMD::cream, EROT::degrees, ESMD::dx, ESMD::dy, eagleClamp(), F_Cu, F_Mask, F_Paste, IsCopperLayer(), kicad_layer(), ESMD::layer, m_rules, ERULES::mlMaxCreamFrame, ERULES::mlMinCreamFrame, ERULES::mvCreamFrame, PAD, pad, PAD_ATTRIB_SMD, PAD_SHAPE_RECT, PAD_SHAPE_ROUNDRECT, EPAD_COMMON::rot, ESMD::roundness, ERULES::srMaxRoundness, ERULES::srMinRoundness, ERULES::srRoundness, EPAD_COMMON::stop, ECOORD::ToPcbUnits(), and transferPad().
Referenced by makeFootprint().
|
private |
Definition at line 1775 of file eagle_plugin.cpp.
References _, FOOTPRINT::Add(), ETEXT::align, ETEXT::BOTTOM_CENTER, ETEXT::BOTTOM_LEFT, ETEXT::BOTTOM_RIGHT, ETEXT::CENTER, ETEXT::CENTER_LEFT, ETEXT::CENTER_RIGHT, EROT::degrees, eagle_layer_name(), Format(), FROM_UTF8(), FOOTPRINT::GetPosition(), GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_HJUSTIFY_RIGHT, GR_TEXT_VJUSTIFY_BOTTOM, GR_TEXT_VJUSTIFY_TOP, kicad_fontz(), kicad_layer(), kicad_x(), kicad_y(), KiROUND(), ETEXT::layer, EROT::mirror, ETEXT::ratio, FOOTPRINT::Reference(), ETEXT::rot, EDA_TEXT::SetHorizJustify(), BOARD_ITEM::SetLayer(), EDA_TEXT::SetMirrored(), FP_TEXT::SetPos0(), EDA_TEXT::SetText(), FP_TEXT::SetTextAngle(), EDA_TEXT::SetTextPos(), EDA_TEXT::SetTextSize(), EDA_TEXT::SetTextThickness(), EDA_TEXT::SetVertJustify(), sign(), ETEXT::size, EROT::spin, ETEXT::text, ETEXT::TOP_CENTER, ETEXT::TOP_LEFT, ETEXT::TOP_RIGHT, ECOORD::ToPcbUnits(), UNDEFINED_LAYER, FOOTPRINT::Value(), ETEXT::x, and ETEXT::y.
Referenced by makeFootprint().
|
private |
Definition at line 1599 of file eagle_plugin.cpp.
References _, FOOTPRINT::Add(), B_CrtYd, B_SilkS, ConvertArcCenter(), EWIRE::curve, DEFAULT_COURTYARD_WIDTH, DEFAULT_EDGE_WIDTH, DEFAULT_LINE_WIDTH, DEFAULT_SILK_LINE_WIDTH, eagle_layer_name(), Edge_Cuts, F_CrtYd, F_SilkS, Format(), BOARD_ITEM::GetBoard(), BOARD::GetDesignSettings(), BOARD_DESIGN_SETTINGS::GetLineThickness(), kicad_layer(), kicad_x(), kicad_y(), EWIRE::layer, Millimeter2iu(), S_ARC, S_SEGMENT, FP_SHAPE::SetAngle(), FP_SHAPE::SetDrawCoord(), FP_SHAPE::SetEnd0(), BOARD_ITEM::SetLayer(), FP_SHAPE::SetStart0(), PCB_SHAPE::SetWidth(), ECOORD::ToPcbUnits(), UNDEFINED_LAYER, EWIRE::width, EWIRE::x1, EWIRE::x2, EWIRE::y1, and EWIRE::y2.
Referenced by makeFootprint().
|
overridevirtual |
Return a brief hard coded name for this PLUGIN.
Implements PLUGIN.
Definition at line 292 of file eagle_plugin.cpp.
|
virtualinherited |
If possible, prefetches the specified library (e.g.
performing downloads). Does not parse. Threadsafe.
This is a no-op for libraries that cannot be prefetched. Plugins that cannot prefetch need not override this; a default no-op is provided.
aLibraryPath | is a locator for the "library", usually a directory, file, or URL containing several footprints. |
aProperties | is an associative array that can be used to tell the plugin anything needed about how to perform with respect to aLibraryPath. The caller continues to own this object (plugin may not delete it), and plugins should expect it to be optionally NULL. |
IO_ERROR | if there is an error prefetching the library. |
Definition at line 75 of file plugin.cpp.
|
inlinevirtualinherited |
Register a different handler to be called when mapping of input layers to KiCad layers occurs.
The function is marked as virtual, so the plugins can implement extra logic (e.g., enable warnings or checks)
aLayerMappingHandler |
Reimplemented in CADSTAR_PCB_ARCHIVE_PLUGIN.
Definition at line 72 of file plugin_common_layer_mapping.h.
References LAYER_REMAPPABLE_PLUGIN::m_layer_mapping_handler.
Referenced by CADSTAR_PCB_ARCHIVE_PLUGIN::CADSTAR_PCB_ARCHIVE_PLUGIN(), EAGLE_PLUGIN(), PCB_EDIT_FRAME::OpenProjectFiles(), and CADSTAR_PCB_ARCHIVE_PLUGIN::RegisterLayerMappingCallback().
|
virtualinherited |
Write aBoard to a storage file in a format that this PLUGIN implementation knows about or it can be used to write a portion of aBoard to a special kind of export file.
aFileName | is the name of a file to save to on disk. |
aBoard | is the class BOARD in memory document tree from which to extract information when writing to aFileName. The caller continues to own the BOARD, and the plugin should refrain from modifying the BOARD if possible. |
aProperties | is an associative array that can be used to tell the saver how to save the file, because it can take any number of additional named tuning arguments that the plugin is known to support. The caller continues to own this object (plugin may not delete it) and plugins should expect it to be optionally NULL. |
IO_ERROR | if there is a problem saving or exporting. |
Reimplemented in PCB_IO, and CLIPBOARD_IO.
Definition at line 60 of file plugin.cpp.
References not_implemented().
Referenced by IO_MGR::Save().
|
private |
Deletes the footprint templates list.
Definition at line 2252 of file eagle_plugin.cpp.
References eagleClamp(), FROM_UTF8(), FULL, FOOTPRINT::GetOrientation(), PAD::GetParent(), FOOTPRINT::GetPosition(), PAD::GetSize(), kicad_x(), kicad_y(), m_rules, ERULES::mlMaxStopFrame, ERULES::mlMinStopFrame, ERULES::mvStopFrame, EPAD_COMMON::name, RotatePoint(), PAD::SetLocalSolderMaskMargin(), PAD::SetName(), PAD::SetPos0(), PAD::SetPosition(), PAD::SetZoneConnection(), EPAD_COMMON::thermals, EPAD_COMMON::x, and EPAD_COMMON::y.
Referenced by packagePad(), and packageSMD().
|
private |
which BOARD is being worked on, no ownership here
Definition at line 300 of file eagle_plugin.h.
Referenced by centerBoard(), init(), Load(), loadElements(), loadLayerDefs(), loadPlain(), loadPolygon(), loadSignals(), and makeFootprint().
|
private |
map eagle to KiCad, cu layers only.
Definition at line 281 of file eagle_plugin.h.
Referenced by clear_cu_map(), defaultKicadLayer(), and loadLayerDefs().
|
private |
Eagle layer data stored by layer number.
Definition at line 282 of file eagle_plugin.h.
Referenced by eagle_layer_name(), loadLayerDefs(), and mapEagleLayersToKicad().
|
private |
Eagle layer ids stored by layer name.
Definition at line 283 of file eagle_plugin.h.
Referenced by eagle_layer_id(), and loadLayerDefs().
|
private |
generates unique footprint names from eagle "hole"s.
Definition at line 290 of file eagle_plugin.h.
Referenced by init(), and loadPlain().
|
private |
Map of Eagle layers to KiCad layers.
Definition at line 284 of file eagle_plugin.h.
Referenced by kicad_layer(), and mapEagleLayersToKicad().
|
protectedinherited |
Callback to get layer mapping.
Definition at line 77 of file plugin_common_layer_mapping.h.
Referenced by CADSTAR_PCB_ARCHIVE_PLUGIN::Load(), mapEagleLayersToKicad(), and LAYER_REMAPPABLE_PLUGIN::RegisterLayerMappingCallback().
|
private |
Definition at line 307 of file eagle_plugin.h.
Referenced by cacheLib(), and loadLibrary().
|