KiCad PCB EDA Suite
|
#include <pcad_footprint.h>
Public Member Functions | |
PCAD_FOOTPRINT (PCAD_CALLBACKS *aCallbacks, BOARD *aBoard) | |
~PCAD_FOOTPRINT () | |
XNODE * | FindModulePatternDefName (XNODE *aNode, const wxString &aName) |
void | DoLayerContentsObjects (XNODE *aNode, PCAD_FOOTPRINT *aFootprint, PCAD_COMPONENTS_ARRAY *aList, wxStatusBar *aStatusBar, const wxString &aDefaultMeasurementUnit, const wxString &aActualConversion) |
void | SetName (const wxString &aPin, const wxString &aName) |
virtual void | Parse (XNODE *aNode, wxStatusBar *aStatusBar, const wxString &aDefaultMeasurementUnit, const wxString &aActualConversion) |
virtual void | Flip () override |
void | AddToBoard (FOOTPRINT *aFootprint=nullptr) override |
virtual void | SetPosOffset (int aX_offs, int aY_offs) |
PCB_LAYER_ID | GetKiCadLayer () const |
int | GetNetCode (const wxString &aNetName) const |
Public Attributes | |
TTEXTVALUE | m_Value |
PCAD_COMPONENTS_ARRAY | m_FootprintItems |
int | m_Mirror |
VERTICES_ARRAY | m_BoardOutline |
char | m_ObjType |
int | m_PCadLayer |
PCB_LAYER_ID | m_KiCadLayer |
KIID | m_Uuid |
int | m_PositionX |
int | m_PositionY |
EDA_ANGLE | m_Rotation |
TTEXTVALUE | m_Name |
wxString | m_Net |
int | m_NetCode |
wxString | m_CompRef |
wxString | m_PatGraphRefName |
Protected Attributes | |
PCAD_CALLBACKS * | m_callbacks |
BOARD * | m_board |
Private Member Functions | |
XNODE * | FindPatternMultilayerSection (XNODE *aNode, wxString *aPatGraphRefName) |
Definition at line 41 of file pcad_footprint.h.
PCAD2KICAD::PCAD_FOOTPRINT::PCAD_FOOTPRINT | ( | PCAD_CALLBACKS * | aCallbacks, |
BOARD * | aBoard | ||
) |
Definition at line 48 of file pcad_footprint.cpp.
References F_SilkS, PCAD2KICAD::InitTTextValue(), PCAD2KICAD::PCAD_PCB_COMPONENT::m_KiCadLayer, m_Mirror, PCAD2KICAD::PCAD_PCB_COMPONENT::m_ObjType, and m_Value.
PCAD2KICAD::PCAD_FOOTPRINT::~PCAD_FOOTPRINT | ( | ) |
Definition at line 58 of file pcad_footprint.cpp.
References m_FootprintItems.
|
overridevirtual |
Implements PCAD2KICAD::PCAD_PCB_COMPONENT.
Reimplemented in PCAD2KICAD::PCAD_PCB.
Definition at line 479 of file pcad_footprint.cpp.
References BOARD::Add(), AddToBoard(), B_Cu, PCAD2KICAD::TTEXTVALUE::correctedPositionX, PCAD2KICAD::TTEXTVALUE::correctedPositionY, PCAD2KICAD::CorrectTextPosition(), F_Cu, BOARD::FlipLayer(), PCAD2KICAD::TTEXTVALUE::isItalic, PCAD2KICAD::TTEXTVALUE::isTrueType, PCAD2KICAD::PCAD_PCB_COMPONENT::m_board, PCAD2KICAD::PCAD_PCB_COMPONENT::m_CompRef, m_FootprintItems, PCAD2KICAD::PCAD_PCB_COMPONENT::m_KiCadLayer, m_Mirror, PCAD2KICAD::PCAD_PCB_COMPONENT::m_Name, PCAD2KICAD::PCAD_PCB_COMPONENT::m_ObjType, PCAD2KICAD::PCAD_PCB_COMPONENT::m_PositionX, PCAD2KICAD::PCAD_PCB_COMPONENT::m_PositionY, PCAD2KICAD::PCAD_PCB_COMPONENT::m_Rotation, m_Value, PCAD2KICAD::TTEXTVALUE::mirror, LIB_ID::Parse(), FOOTPRINT::Reference(), RotatePoint(), FOOTPRINT::SetFPID(), BOARD_ITEM::SetFPRelativePosition(), EDA_TEXT::SetItalic(), EDA_TEXT::SetKeepUpright(), BOARD_ITEM::SetLayer(), EDA_TEXT::SetMirrored(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), EDA_TEXT::SetText(), EDA_TEXT::SetTextAngle(), PCAD2KICAD::SetTextSizeFromStrokeFontHeight(), PCAD2KICAD::SetTextSizeFromTrueTypeFontHeight(), EDA_TEXT::SetTextThickness(), EDA_TEXT::SetVisible(), PCAD2KICAD::TTEXTVALUE::text, PCAD2KICAD::TTEXTVALUE::textHeight, PCAD2KICAD::TTEXTVALUE::textIsVisible, PCAD2KICAD::TTEXTVALUE::textRotation, PCAD2KICAD::TTEXTVALUE::textstrokeWidth, PCAD2KICAD::ValidateReference(), and FOOTPRINT::Value().
Referenced by AddToBoard().
void PCAD2KICAD::PCAD_FOOTPRINT::DoLayerContentsObjects | ( | XNODE * | aNode, |
PCAD_FOOTPRINT * | aFootprint, | ||
PCAD_COMPONENTS_ARRAY * | aList, | ||
wxStatusBar * | aStatusBar, | ||
const wxString & | aDefaultMeasurementUnit, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 218 of file pcad_footprint.cpp.
References PCAD2KICAD::PCAD_POLYGON::AssignNet(), PCAD2KICAD::FindNode(), PCAD2KICAD::PCAD_POLYGON::FormPolygon(), XNODE::GetChildren(), PCAD2KICAD::PCAD_CALLBACKS::GetLayerNetNameRef(), PCAD2KICAD::PCAD_CALLBACKS::GetLayerType(), XNODE::GetNext(), LAYER_TYPE_PLANE, PCAD2KICAD::PCAD_PCB_COMPONENT::m_board, m_BoardOutline, PCAD2KICAD::PCAD_PCB_COMPONENT::m_callbacks, PCAD2KICAD::PCAD_POLYGON::m_Cutouts, PCAD2KICAD::PCAD_PCB_COMPONENT::m_Name, PCAD2KICAD::PCAD_CUTOUT::Parse(), PCAD2KICAD::PCAD_POLYGON::Parse(), PCAD2KICAD::PCAD_COPPER_POUR::Parse(), PCAD2KICAD::PCAD_PLANE::Parse(), PCAD2KICAD::PCAD_ARC::Parse(), PCAD2KICAD::PCAD_LINE::Parse(), PCAD2KICAD::SetFontProperty(), PCAD2KICAD::PCAD_POLYGON::SetOutline(), and text.
Referenced by Parse(), and PCAD2KICAD::PCAD_PCB::ParseBoard().
XNODE * PCAD2KICAD::PCAD_FOOTPRINT::FindModulePatternDefName | ( | XNODE * | aNode, |
const wxString & | aName | ||
) |
Definition at line 69 of file pcad_footprint.cpp.
References PCAD2KICAD::FindNode(), XNODE::GetNext(), and PCAD2KICAD::ValidateName().
Referenced by PCAD2KICAD::PCAD_PCB::DoPCBComponents(), and FindPatternMultilayerSection().
|
private |
Definition at line 122 of file pcad_footprint.cpp.
References FindModulePatternDefName(), PCAD2KICAD::FindNode(), XNODE::GetNext(), XNODE::GetParent(), and PCAD2KICAD::ValidateName().
Referenced by Parse().
|
overridevirtual |
Reimplemented from PCAD2KICAD::PCAD_PCB_COMPONENT.
Definition at line 599 of file pcad_footprint.cpp.
References m_FootprintItems, m_Mirror, PCAD2KICAD::PCAD_PCB_COMPONENT::m_ObjType, and PCAD2KICAD::PCAD_PCB_COMPONENT::m_Rotation.
Referenced by PCAD2KICAD::PCAD_PCB::ParseBoard().
|
inlineinherited |
Definition at line 55 of file pcad_pcb_component.h.
References PCAD2KICAD::PCAD_CALLBACKS::GetKiCadLayer(), PCAD2KICAD::PCAD_PCB_COMPONENT::m_callbacks, and PCAD2KICAD::PCAD_PCB_COMPONENT::m_PCadLayer.
Referenced by PCAD2KICAD::PCAD_PCB::GetBoardOutline(), PCAD2KICAD::PCAD_PAD_SHAPE::Parse(), PCAD2KICAD::PCAD_VIA_SHAPE::Parse(), PCAD2KICAD::PCAD_ARC::Parse(), PCAD2KICAD::PCAD_LINE::Parse(), PCAD2KICAD::PCAD_TEXT::Parse(), and PCAD2KICAD::PCAD_POLYGON::PCAD_POLYGON().
|
inlineinherited |
Definition at line 57 of file pcad_pcb_component.h.
References PCAD2KICAD::PCAD_CALLBACKS::GetNetCode(), and PCAD2KICAD::PCAD_PCB_COMPONENT::m_callbacks.
Referenced by PCAD2KICAD::PCAD_POLYGON::AssignNet(), PCAD2KICAD::PCAD_PAD::Parse(), PCAD2KICAD::PCAD_POLYGON::Parse(), PCAD2KICAD::PCAD_COPPER_POUR::Parse(), PCAD2KICAD::PCAD_PLANE::Parse(), PCAD2KICAD::PCAD_VIA::Parse(), and PCAD2KICAD::PCAD_LINE::Parse().
|
virtual |
Definition at line 388 of file pcad_footprint.cpp.
References DoLayerContentsObjects(), PCAD2KICAD::FindNode(), FindPatternMultilayerSection(), PCAD2KICAD::FindPinMap(), XNODE::GetChildren(), XNODE::GetNext(), XNODE::GetParent(), PCAD2KICAD::PCAD_PCB_COMPONENT::m_board, PCAD2KICAD::PCAD_PCB_COMPONENT::m_callbacks, m_FootprintItems, PCAD2KICAD::PCAD_PCB_COMPONENT::m_Name, PCAD2KICAD::PCAD_PCB_COMPONENT::m_PatGraphRefName, pad, SetName(), PCAD2KICAD::TTEXTVALUE::text, and via.
Referenced by PCAD2KICAD::PCAD_PCB::DoPCBComponents(), and PCAD2KICAD::PCAD_PCB::ParseBoard().
void PCAD2KICAD::PCAD_FOOTPRINT::SetName | ( | const wxString & | aPin, |
const wxString & | aName | ||
) |
Definition at line 370 of file pcad_footprint.cpp.
References m_FootprintItems, PCAD2KICAD::PCAD_PCB_COMPONENT::m_Name, PCAD2KICAD::PCAD_PCB_COMPONENT::m_ObjType, and PCAD2KICAD::TTEXTVALUE::text.
Referenced by PCAD2KICAD::PCAD_PCB::DoPCBComponents(), and Parse().
|
virtualinherited |
Reimplemented in PCAD2KICAD::PCAD_ARC, PCAD2KICAD::PCAD_LINE, and PCAD2KICAD::PCAD_POLYGON.
Definition at line 61 of file pcad_pcb_component.cpp.
References PCAD2KICAD::PCAD_PCB_COMPONENT::m_PositionX, and PCAD2KICAD::PCAD_PCB_COMPONENT::m_PositionY.
Referenced by PCAD2KICAD::PCAD_PCB::ParseBoard(), PCAD2KICAD::PCAD_ARC::SetPosOffset(), PCAD2KICAD::PCAD_LINE::SetPosOffset(), and PCAD2KICAD::PCAD_POLYGON::SetPosOffset().
|
protectedinherited |
Definition at line 78 of file pcad_pcb_component.h.
Referenced by PCAD2KICAD::PCAD_ARC::AddToBoard(), AddToBoard(), PCAD2KICAD::PCAD_LINE::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToBoard(), PCAD2KICAD::PCAD_PCB::AddToBoard(), PCAD2KICAD::PCAD_POLYGON::AddToBoard(), PCAD2KICAD::PCAD_TEXT::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToFootprint(), DoLayerContentsObjects(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_ARC::Flip(), PCAD2KICAD::PCAD_LINE::Flip(), PCAD2KICAD::PCAD_PAD::Flip(), PCAD2KICAD::PCAD_POLYGON::Flip(), PCAD2KICAD::PCAD_PAD::Parse(), PCAD2KICAD::PCAD_VIA::Parse(), Parse(), and PCAD2KICAD::PCAD_PCB::ParseBoard().
VERTICES_ARRAY PCAD2KICAD::PCAD_FOOTPRINT::m_BoardOutline |
Definition at line 70 of file pcad_footprint.h.
Referenced by DoLayerContentsObjects(), and PCAD2KICAD::PCAD_PCB::GetBoardOutline().
|
protectedinherited |
Definition at line 77 of file pcad_pcb_component.h.
Referenced by DoLayerContentsObjects(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_PCB_COMPONENT::GetKiCadLayer(), PCAD2KICAD::PCAD_PCB_COMPONENT::GetNetCode(), PCAD2KICAD::PCAD_PAD::Parse(), PCAD2KICAD::PCAD_VIA::Parse(), and Parse().
|
inherited |
Definition at line 73 of file pcad_pcb_component.h.
Referenced by AddToBoard(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), and PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT().
PCAD_COMPONENTS_ARRAY PCAD2KICAD::PCAD_FOOTPRINT::m_FootprintItems |
Definition at line 68 of file pcad_footprint.h.
Referenced by AddToBoard(), PCAD2KICAD::PCAD_PCB::ConnectPinToNet(), Flip(), Parse(), SetName(), and ~PCAD_FOOTPRINT().
|
inherited |
Definition at line 65 of file pcad_pcb_component.h.
Referenced by PCAD2KICAD::PCAD_ARC::AddToBoard(), AddToBoard(), PCAD2KICAD::PCAD_LINE::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToBoard(), PCAD2KICAD::PCAD_POLYGON::AddToBoard(), PCAD2KICAD::PCAD_TEXT::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToFootprint(), PCAD2KICAD::PCAD_ARC::Flip(), PCAD2KICAD::PCAD_LINE::Flip(), PCAD2KICAD::PCAD_PAD::Flip(), PCAD2KICAD::PCAD_POLYGON::Flip(), PCAD2KICAD::PCAD_PAD_SHAPE::Parse(), PCAD2KICAD::PCAD_VIA_SHAPE::Parse(), PCAD2KICAD::PCAD_ARC::Parse(), PCAD2KICAD::PCAD_LINE::Parse(), PCAD2KICAD::PCAD_TEXT::Parse(), PCAD_FOOTPRINT(), PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT(), and PCAD2KICAD::PCAD_POLYGON::PCAD_POLYGON().
int PCAD2KICAD::PCAD_FOOTPRINT::m_Mirror |
Definition at line 69 of file pcad_footprint.h.
Referenced by AddToBoard(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), Flip(), and PCAD_FOOTPRINT().
|
inherited |
Definition at line 70 of file pcad_pcb_component.h.
Referenced by AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToBoard(), PCAD2KICAD::PCAD_TEXT::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToFootprint(), PCAD2KICAD::PCAD_PCB::ConnectPinToNet(), DoLayerContentsObjects(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_PAD::Parse(), PCAD2KICAD::PCAD_VIA::Parse(), PCAD2KICAD::PCAD_TEXT::Parse(), Parse(), PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT(), and SetName().
|
inherited |
Definition at line 71 of file pcad_pcb_component.h.
Referenced by PCAD2KICAD::PCAD_PAD::AddToFootprint(), PCAD2KICAD::PCAD_POLYGON::AssignNet(), PCAD2KICAD::PCAD_PCB::ConnectPinToNet(), PCAD2KICAD::PCAD_PAD::Parse(), PCAD2KICAD::PCAD_POLYGON::Parse(), PCAD2KICAD::PCAD_COPPER_POUR::Parse(), PCAD2KICAD::PCAD_PLANE::Parse(), PCAD2KICAD::PCAD_VIA::Parse(), PCAD2KICAD::PCAD_LINE::Parse(), and PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT().
|
inherited |
Definition at line 72 of file pcad_pcb_component.h.
Referenced by PCAD2KICAD::PCAD_LINE::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToBoard(), PCAD2KICAD::PCAD_POLYGON::AddToBoard(), PCAD2KICAD::PCAD_POLYGON::AssignNet(), PCAD2KICAD::PCAD_PAD::Parse(), PCAD2KICAD::PCAD_POLYGON::Parse(), PCAD2KICAD::PCAD_COPPER_POUR::Parse(), PCAD2KICAD::PCAD_PLANE::Parse(), PCAD2KICAD::PCAD_VIA::Parse(), PCAD2KICAD::PCAD_LINE::Parse(), and PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT().
|
inherited |
Definition at line 63 of file pcad_pcb_component.h.
Referenced by AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToBoard(), PCAD2KICAD::PCAD_POLYGON::AddToBoard(), PCAD2KICAD::PCAD_PCB::ConnectPinToNet(), Flip(), PCAD2KICAD::PCAD_PAD::Flip(), PCAD2KICAD::PCAD_PCB::ParseBoard(), PCAD2KICAD::PCAD_ARC::PCAD_ARC(), PCAD2KICAD::PCAD_CUTOUT::PCAD_CUTOUT(), PCAD_FOOTPRINT(), PCAD2KICAD::PCAD_KEEPOUT::PCAD_KEEPOUT(), PCAD2KICAD::PCAD_LINE::PCAD_LINE(), PCAD2KICAD::PCAD_PAD::PCAD_PAD(), PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT(), PCAD2KICAD::PCAD_POLYGON::PCAD_POLYGON(), PCAD2KICAD::PCAD_TEXT::PCAD_TEXT(), PCAD2KICAD::PCAD_VIA::PCAD_VIA(), and SetName().
|
inherited |
Definition at line 74 of file pcad_pcb_component.h.
Referenced by PCAD2KICAD::PCAD_PCB::DoPCBComponents(), Parse(), and PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT().
|
inherited |
Definition at line 64 of file pcad_pcb_component.h.
Referenced by PCAD2KICAD::PCAD_PCB_COMPONENT::GetKiCadLayer(), PCAD2KICAD::PCAD_PAD_SHAPE::Parse(), PCAD2KICAD::PCAD_VIA_SHAPE::Parse(), PCAD2KICAD::PCAD_ARC::Parse(), PCAD2KICAD::PCAD_LINE::Parse(), PCAD2KICAD::PCAD_TEXT::Parse(), PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT(), and PCAD2KICAD::PCAD_POLYGON::PCAD_POLYGON().
|
inherited |
Definition at line 67 of file pcad_pcb_component.h.
Referenced by PCAD2KICAD::PCAD_ARC::AddToBoard(), AddToBoard(), PCAD2KICAD::PCAD_LINE::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToBoard(), PCAD2KICAD::PCAD_TEXT::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToFootprint(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_PCB_COMPONENT::Flip(), PCAD2KICAD::PCAD_KEEPOUT::Parse(), PCAD2KICAD::PCAD_CUTOUT::Parse(), PCAD2KICAD::PCAD_PAD::Parse(), PCAD2KICAD::PCAD_POLYGON::Parse(), PCAD2KICAD::PCAD_COPPER_POUR::Parse(), PCAD2KICAD::PCAD_PLANE::Parse(), PCAD2KICAD::PCAD_VIA::Parse(), PCAD2KICAD::PCAD_ARC::Parse(), PCAD2KICAD::PCAD_LINE::Parse(), PCAD2KICAD::PCAD_TEXT::Parse(), PCAD2KICAD::PCAD_PCB::ParseBoard(), PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT(), PCAD2KICAD::PCAD_POLYGON::SetOutline(), and PCAD2KICAD::PCAD_PCB_COMPONENT::SetPosOffset().
|
inherited |
Definition at line 68 of file pcad_pcb_component.h.
Referenced by PCAD2KICAD::PCAD_ARC::AddToBoard(), AddToBoard(), PCAD2KICAD::PCAD_LINE::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToBoard(), PCAD2KICAD::PCAD_TEXT::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToFootprint(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_KEEPOUT::Parse(), PCAD2KICAD::PCAD_CUTOUT::Parse(), PCAD2KICAD::PCAD_PAD::Parse(), PCAD2KICAD::PCAD_POLYGON::Parse(), PCAD2KICAD::PCAD_COPPER_POUR::Parse(), PCAD2KICAD::PCAD_PLANE::Parse(), PCAD2KICAD::PCAD_VIA::Parse(), PCAD2KICAD::PCAD_ARC::Parse(), PCAD2KICAD::PCAD_LINE::Parse(), PCAD2KICAD::PCAD_TEXT::Parse(), PCAD2KICAD::PCAD_PCB::ParseBoard(), PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT(), PCAD2KICAD::PCAD_POLYGON::SetOutline(), and PCAD2KICAD::PCAD_PCB_COMPONENT::SetPosOffset().
|
inherited |
Definition at line 69 of file pcad_pcb_component.h.
Referenced by AddToBoard(), PCAD2KICAD::PCAD_TEXT::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToFootprint(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), Flip(), PCAD2KICAD::PCAD_PAD::Flip(), PCAD2KICAD::PCAD_PAD::Parse(), PCAD2KICAD::PCAD_VIA::Parse(), PCAD2KICAD::PCAD_TEXT::Parse(), and PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT().
|
inherited |
Definition at line 66 of file pcad_pcb_component.h.
TTEXTVALUE PCAD2KICAD::PCAD_FOOTPRINT::m_Value |
Definition at line 67 of file pcad_footprint.h.
Referenced by AddToBoard(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), and PCAD_FOOTPRINT().