KiCad PCB EDA Suite
|
#include <pcb_footprint.h>
Public Member Functions | |
PCB_FOOTPRINT (PCB_CALLBACKS *aCallbacks, BOARD *aBoard) | |
~PCB_FOOTPRINT () | |
XNODE * | FindModulePatternDefName (XNODE *aNode, const wxString &aName) |
void | DoLayerContentsObjects (XNODE *aNode, PCB_FOOTPRINT *aFootprint, PCB_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 () override |
virtual void | SetPosOffset (int aX_offs, int aY_offs) |
virtual void | AddToFootprint (FOOTPRINT *aFootprint) |
PCB_LAYER_ID | GetKiCadLayer () const |
int | GetNetCode (const wxString &aNetName) const |
Public Attributes | |
TTEXTVALUE | m_Value |
PCB_COMPONENTS_ARRAY | m_FootprintItems |
int | m_Mirror |
VERTICES_ARRAY | m_BoardOutline |
int | m_tag |
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 | |
PCB_CALLBACKS * | m_callbacks |
BOARD * | m_board |
Private Member Functions | |
XNODE * | FindPatternMultilayerSection (XNODE *aNode, wxString *aPatGraphRefName) |
Definition at line 41 of file pcb_footprint.h.
PCAD2KICAD::PCB_FOOTPRINT::PCB_FOOTPRINT | ( | PCB_CALLBACKS * | aCallbacks, |
BOARD * | aBoard | ||
) |
Definition at line 47 of file pcb_footprint.cpp.
References F_SilkS, PCAD2KICAD::InitTTextValue(), PCAD2KICAD::PCB_COMPONENT::m_KiCadLayer, m_Mirror, PCAD2KICAD::PCB_COMPONENT::m_objType, and m_Value.
Referenced by PCAD2KICAD::PCB::DoPCBComponents(), and PCAD2KICAD::PCB::ParseBoard().
PCAD2KICAD::PCB_FOOTPRINT::~PCB_FOOTPRINT | ( | ) |
Definition at line 57 of file pcb_footprint.cpp.
References m_FootprintItems.
|
overridevirtual |
Implements PCAD2KICAD::PCB_COMPONENT.
Definition at line 477 of file pcb_footprint.cpp.
References BOARD::Add(), PCAD2KICAD::PCB_COMPONENT::AddToFootprint(), APPEND, B_Cu, PCAD2KICAD::TTEXTVALUE::correctedPositionX, PCAD2KICAD::TTEXTVALUE::correctedPositionY, PCAD2KICAD::CorrectTextPosition(), F_Cu, FlipLayer(), PCAD2KICAD::TTEXTVALUE::isItalic, PCAD2KICAD::TTEXTVALUE::isTrueType, PCAD2KICAD::PCB_COMPONENT::m_board, PCAD2KICAD::PCB_COMPONENT::m_compRef, m_FootprintItems, PCAD2KICAD::PCB_COMPONENT::m_KiCadLayer, m_Mirror, PCAD2KICAD::PCB_COMPONENT::m_name, PCAD2KICAD::PCB_COMPONENT::m_objType, PCAD2KICAD::PCB_COMPONENT::m_positionX, PCAD2KICAD::PCB_COMPONENT::m_positionY, PCAD2KICAD::PCB_COMPONENT::m_rotation, m_Value, PCAD2KICAD::TTEXTVALUE::mirror, LIB_ID::Parse(), FOOTPRINT::Reference(), RotatePoint(), FP_TEXT::SetDrawCoord(), FOOTPRINT::SetFPID(), EDA_TEXT::SetItalic(), EDA_TEXT::SetKeepUpright(), BOARD_ITEM::SetLayer(), EDA_TEXT::SetMirrored(), FOOTPRINT::SetOrientation(), FP_TEXT::SetPos0(), FOOTPRINT::SetPosition(), EDA_TEXT::SetText(), EDA_TEXT::SetTextAngle(), PCAD2KICAD::SetTextSizeFromStrokeFontHeight(), PCAD2KICAD::SetTextSizeFromTrueTypeFontHeight(), EDA_TEXT::SetTextThickness(), FP_TEXT::SetType(), EDA_TEXT::SetVisible(), PCAD2KICAD::TTEXTVALUE::text, FP_TEXT::TEXT_is_REFERENCE, FP_TEXT::TEXT_is_VALUE, PCAD2KICAD::TTEXTVALUE::textHeight, PCAD2KICAD::TTEXTVALUE::textIsVisible, PCAD2KICAD::TTEXTVALUE::textRotation, PCAD2KICAD::TTEXTVALUE::textstrokeWidth, PCAD2KICAD::ValidateReference(), and FOOTPRINT::Value().
|
virtualinherited |
Reimplemented in PCAD2KICAD::PCB_ARC, PCAD2KICAD::PCB_LINE, PCAD2KICAD::PCB_PAD, PCAD2KICAD::PCB_POLYGON, and PCAD2KICAD::PCB_TEXT.
Definition at line 62 of file pcb_component.cpp.
Referenced by AddToBoard().
void PCAD2KICAD::PCB_FOOTPRINT::DoLayerContentsObjects | ( | XNODE * | aNode, |
PCB_FOOTPRINT * | aFootprint, | ||
PCB_COMPONENTS_ARRAY * | aList, | ||
wxStatusBar * | aStatusBar, | ||
const wxString & | aDefaultMeasurementUnit, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 217 of file pcb_footprint.cpp.
References PCAD2KICAD::PCB_POLYGON::AssignNet(), PCAD2KICAD::FindNode(), PCAD2KICAD::PCB_POLYGON::FormPolygon(), XNODE::GetChildren(), PCAD2KICAD::PCB_CALLBACKS::GetLayerNetNameRef(), PCAD2KICAD::PCB_CALLBACKS::GetLayerType(), XNODE::GetNext(), LAYER_TYPE_PLANE, PCAD2KICAD::PCB_COMPONENT::m_board, m_BoardOutline, PCAD2KICAD::PCB_COMPONENT::m_callbacks, PCAD2KICAD::PCB_POLYGON::m_cutouts, PCAD2KICAD::PCB_COMPONENT::m_name, PCAD2KICAD::PCB_CUTOUT::Parse(), PCAD2KICAD::PCB_POLYGON::Parse(), PCAD2KICAD::PCB_COPPER_POUR::Parse(), PCAD2KICAD::PCB_PLANE::Parse(), PCAD2KICAD::PCB_ARC::Parse(), PCAD2KICAD::PCB_LINE::Parse(), PCAD2KICAD::SetFontProperty(), PCAD2KICAD::PCB_POLYGON::SetOutline(), and text.
Referenced by Parse(), and PCAD2KICAD::PCB::ParseBoard().
XNODE * PCAD2KICAD::PCB_FOOTPRINT::FindModulePatternDefName | ( | XNODE * | aNode, |
const wxString & | aName | ||
) |
Definition at line 68 of file pcb_footprint.cpp.
References PCAD2KICAD::FindNode(), XNODE::GetNext(), and PCAD2KICAD::ValidateName().
Referenced by PCAD2KICAD::PCB::DoPCBComponents(), and FindPatternMultilayerSection().
|
private |
Definition at line 121 of file pcb_footprint.cpp.
References FindModulePatternDefName(), PCAD2KICAD::FindNode(), XNODE::GetNext(), XNODE::GetParent(), and PCAD2KICAD::ValidateName().
Referenced by Parse().
|
overridevirtual |
Reimplemented from PCAD2KICAD::PCB_COMPONENT.
Definition at line 603 of file pcb_footprint.cpp.
References m_FootprintItems, m_Mirror, PCAD2KICAD::PCB_COMPONENT::m_objType, and PCAD2KICAD::PCB_COMPONENT::m_rotation.
Referenced by PCAD2KICAD::PCB::ParseBoard().
|
inlineinherited |
Definition at line 56 of file pcb_component.h.
References PCAD2KICAD::PCB_CALLBACKS::GetKiCadLayer(), PCAD2KICAD::PCB_COMPONENT::m_callbacks, and PCAD2KICAD::PCB_COMPONENT::m_PCadLayer.
Referenced by PCAD2KICAD::PCB::GetBoardOutline(), PCAD2KICAD::PCB_PAD_SHAPE::Parse(), PCAD2KICAD::PCB_VIA_SHAPE::Parse(), PCAD2KICAD::PCB_ARC::Parse(), PCAD2KICAD::PCB_LINE::Parse(), PCAD2KICAD::PCB_TEXT::Parse(), and PCAD2KICAD::PCB_POLYGON::PCB_POLYGON().
|
inlineinherited |
Definition at line 58 of file pcb_component.h.
References PCAD2KICAD::PCB_CALLBACKS::GetNetCode(), and PCAD2KICAD::PCB_COMPONENT::m_callbacks.
Referenced by PCAD2KICAD::PCB_POLYGON::AssignNet(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_POLYGON::Parse(), PCAD2KICAD::PCB_COPPER_POUR::Parse(), PCAD2KICAD::PCB_PLANE::Parse(), PCAD2KICAD::PCB_VIA::Parse(), and PCAD2KICAD::PCB_LINE::Parse().
|
virtual |
Definition at line 386 of file pcb_footprint.cpp.
References DoLayerContentsObjects(), PCAD2KICAD::FindNode(), FindPatternMultilayerSection(), PCAD2KICAD::FindPinMap(), XNODE::GetChildren(), XNODE::GetNext(), XNODE::GetParent(), PCAD2KICAD::PCB_COMPONENT::m_board, PCAD2KICAD::PCB_COMPONENT::m_callbacks, m_FootprintItems, PCAD2KICAD::PCB_COMPONENT::m_name, PCAD2KICAD::PCB_COMPONENT::m_patGraphRefName, pad, SetName(), PCAD2KICAD::TTEXTVALUE::text, and via.
Referenced by PCAD2KICAD::PCB::DoPCBComponents(), and PCAD2KICAD::PCB::ParseBoard().
void PCAD2KICAD::PCB_FOOTPRINT::SetName | ( | const wxString & | aPin, |
const wxString & | aName | ||
) |
Definition at line 368 of file pcb_footprint.cpp.
References m_FootprintItems, PCAD2KICAD::PCB_COMPONENT::m_name, PCAD2KICAD::PCB_COMPONENT::m_objType, and PCAD2KICAD::TTEXTVALUE::text.
Referenced by PCAD2KICAD::PCB::DoPCBComponents(), and Parse().
|
virtualinherited |
Reimplemented in PCAD2KICAD::PCB_ARC, PCAD2KICAD::PCB_LINE, and PCAD2KICAD::PCB_POLYGON.
Definition at line 67 of file pcb_component.cpp.
References PCAD2KICAD::PCB_COMPONENT::m_positionX, and PCAD2KICAD::PCB_COMPONENT::m_positionY.
Referenced by PCAD2KICAD::PCB::ParseBoard(), PCAD2KICAD::PCB_ARC::SetPosOffset(), PCAD2KICAD::PCB_LINE::SetPosOffset(), and PCAD2KICAD::PCB_POLYGON::SetPosOffset().
|
protectedinherited |
Definition at line 79 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB::AddToBoard(), PCAD2KICAD::PCB_ARC::AddToBoard(), AddToBoard(), PCAD2KICAD::PCB_LINE::AddToBoard(), PCAD2KICAD::PCB_PAD::AddToBoard(), PCAD2KICAD::PCB_POLYGON::AddToBoard(), PCAD2KICAD::PCB_TEXT::AddToBoard(), PCAD2KICAD::PCB_PAD::AddToFootprint(), DoLayerContentsObjects(), PCAD2KICAD::PCB::DoPCBComponents(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_VIA::Parse(), Parse(), and PCAD2KICAD::PCB::ParseBoard().
VERTICES_ARRAY PCAD2KICAD::PCB_FOOTPRINT::m_BoardOutline |
Definition at line 66 of file pcb_footprint.h.
Referenced by DoLayerContentsObjects(), and PCAD2KICAD::PCB::GetBoardOutline().
|
protectedinherited |
Definition at line 78 of file pcb_component.h.
Referenced by DoLayerContentsObjects(), PCAD2KICAD::PCB::DoPCBComponents(), PCAD2KICAD::PCB_COMPONENT::GetKiCadLayer(), PCAD2KICAD::PCB_COMPONENT::GetNetCode(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_VIA::Parse(), and Parse().
|
inherited |
Definition at line 74 of file pcb_component.h.
Referenced by AddToBoard(), PCAD2KICAD::PCB::DoPCBComponents(), and PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT().
PCB_COMPONENTS_ARRAY PCAD2KICAD::PCB_FOOTPRINT::m_FootprintItems |
Definition at line 64 of file pcb_footprint.h.
Referenced by AddToBoard(), PCAD2KICAD::PCB::ConnectPinToNet(), Flip(), Parse(), SetName(), and ~PCB_FOOTPRINT().
|
inherited |
Definition at line 66 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB_ARC::AddToBoard(), AddToBoard(), PCAD2KICAD::PCB_LINE::AddToBoard(), PCAD2KICAD::PCB_PAD::AddToBoard(), PCAD2KICAD::PCB_POLYGON::AddToBoard(), PCAD2KICAD::PCB_TEXT::AddToBoard(), PCAD2KICAD::PCB_ARC::AddToFootprint(), PCAD2KICAD::PCB_LINE::AddToFootprint(), PCAD2KICAD::PCB_POLYGON::AddToFootprint(), PCAD2KICAD::PCB_PAD::AddToFootprint(), PCAD2KICAD::PCB_ARC::Flip(), PCAD2KICAD::PCB_LINE::Flip(), PCAD2KICAD::PCB_PAD::Flip(), PCAD2KICAD::PCB_POLYGON::Flip(), PCAD2KICAD::PCB_PAD_SHAPE::Parse(), PCAD2KICAD::PCB_VIA_SHAPE::Parse(), PCAD2KICAD::PCB_ARC::Parse(), PCAD2KICAD::PCB_LINE::Parse(), PCAD2KICAD::PCB_TEXT::Parse(), PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT(), PCB_FOOTPRINT(), and PCAD2KICAD::PCB_POLYGON::PCB_POLYGON().
int PCAD2KICAD::PCB_FOOTPRINT::m_Mirror |
Definition at line 65 of file pcb_footprint.h.
Referenced by AddToBoard(), PCAD2KICAD::PCB::DoPCBComponents(), Flip(), and PCB_FOOTPRINT().
|
inherited |
Definition at line 71 of file pcb_component.h.
Referenced by AddToBoard(), PCAD2KICAD::PCB_PAD::AddToBoard(), PCAD2KICAD::PCB_TEXT::AddToBoard(), PCAD2KICAD::PCB_PAD::AddToFootprint(), PCAD2KICAD::PCB::ConnectPinToNet(), DoLayerContentsObjects(), PCAD2KICAD::PCB::DoPCBComponents(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_VIA::Parse(), PCAD2KICAD::PCB_TEXT::Parse(), Parse(), PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT(), and SetName().
|
inherited |
Definition at line 72 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB_PAD::AddToFootprint(), PCAD2KICAD::PCB_POLYGON::AssignNet(), PCAD2KICAD::PCB::ConnectPinToNet(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_POLYGON::Parse(), PCAD2KICAD::PCB_COPPER_POUR::Parse(), PCAD2KICAD::PCB_PLANE::Parse(), PCAD2KICAD::PCB_VIA::Parse(), PCAD2KICAD::PCB_LINE::Parse(), and PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT().
|
inherited |
Definition at line 73 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB_LINE::AddToBoard(), PCAD2KICAD::PCB_PAD::AddToBoard(), PCAD2KICAD::PCB_POLYGON::AddToBoard(), PCAD2KICAD::PCB_POLYGON::AssignNet(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_POLYGON::Parse(), PCAD2KICAD::PCB_COPPER_POUR::Parse(), PCAD2KICAD::PCB_PLANE::Parse(), PCAD2KICAD::PCB_VIA::Parse(), PCAD2KICAD::PCB_LINE::Parse(), and PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT().
|
inherited |
Definition at line 64 of file pcb_component.h.
Referenced by AddToBoard(), PCAD2KICAD::PCB_PAD::AddToBoard(), PCAD2KICAD::PCB_POLYGON::AddToBoard(), PCAD2KICAD::PCB::ConnectPinToNet(), Flip(), PCAD2KICAD::PCB_PAD::Flip(), PCAD2KICAD::PCB::ParseBoard(), PCAD2KICAD::PCB_ARC::PCB_ARC(), PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT(), PCAD2KICAD::PCB_CUTOUT::PCB_CUTOUT(), PCB_FOOTPRINT(), PCAD2KICAD::PCB_KEEPOUT::PCB_KEEPOUT(), PCAD2KICAD::PCB_LINE::PCB_LINE(), PCAD2KICAD::PCB_PAD::PCB_PAD(), PCAD2KICAD::PCB_POLYGON::PCB_POLYGON(), PCAD2KICAD::PCB_TEXT::PCB_TEXT(), PCAD2KICAD::PCB_VIA::PCB_VIA(), and SetName().
|
inherited |
Definition at line 75 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB::DoPCBComponents(), Parse(), and PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT().
|
inherited |
Definition at line 65 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB_COMPONENT::GetKiCadLayer(), PCAD2KICAD::PCB_PAD_SHAPE::Parse(), PCAD2KICAD::PCB_VIA_SHAPE::Parse(), PCAD2KICAD::PCB_ARC::Parse(), PCAD2KICAD::PCB_LINE::Parse(), PCAD2KICAD::PCB_TEXT::Parse(), PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT(), and PCAD2KICAD::PCB_POLYGON::PCB_POLYGON().
|
inherited |
Definition at line 68 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB_ARC::AddToBoard(), AddToBoard(), PCAD2KICAD::PCB_LINE::AddToBoard(), PCAD2KICAD::PCB_PAD::AddToBoard(), PCAD2KICAD::PCB_TEXT::AddToBoard(), PCAD2KICAD::PCB_ARC::AddToFootprint(), PCAD2KICAD::PCB_LINE::AddToFootprint(), PCAD2KICAD::PCB_PAD::AddToFootprint(), PCAD2KICAD::PCB::DoPCBComponents(), PCAD2KICAD::PCB_COMPONENT::Flip(), PCAD2KICAD::PCB_KEEPOUT::Parse(), PCAD2KICAD::PCB_CUTOUT::Parse(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_POLYGON::Parse(), PCAD2KICAD::PCB_COPPER_POUR::Parse(), PCAD2KICAD::PCB_PLANE::Parse(), PCAD2KICAD::PCB_VIA::Parse(), PCAD2KICAD::PCB_ARC::Parse(), PCAD2KICAD::PCB_LINE::Parse(), PCAD2KICAD::PCB_TEXT::Parse(), PCAD2KICAD::PCB::ParseBoard(), PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT(), PCAD2KICAD::PCB_POLYGON::SetOutline(), and PCAD2KICAD::PCB_COMPONENT::SetPosOffset().
|
inherited |
Definition at line 69 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB_ARC::AddToBoard(), AddToBoard(), PCAD2KICAD::PCB_LINE::AddToBoard(), PCAD2KICAD::PCB_PAD::AddToBoard(), PCAD2KICAD::PCB_TEXT::AddToBoard(), PCAD2KICAD::PCB_ARC::AddToFootprint(), PCAD2KICAD::PCB_LINE::AddToFootprint(), PCAD2KICAD::PCB_PAD::AddToFootprint(), PCAD2KICAD::PCB::DoPCBComponents(), PCAD2KICAD::PCB_KEEPOUT::Parse(), PCAD2KICAD::PCB_CUTOUT::Parse(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_POLYGON::Parse(), PCAD2KICAD::PCB_COPPER_POUR::Parse(), PCAD2KICAD::PCB_PLANE::Parse(), PCAD2KICAD::PCB_VIA::Parse(), PCAD2KICAD::PCB_ARC::Parse(), PCAD2KICAD::PCB_LINE::Parse(), PCAD2KICAD::PCB_TEXT::Parse(), PCAD2KICAD::PCB::ParseBoard(), PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT(), PCAD2KICAD::PCB_POLYGON::SetOutline(), and PCAD2KICAD::PCB_COMPONENT::SetPosOffset().
|
inherited |
Definition at line 70 of file pcb_component.h.
Referenced by AddToBoard(), PCAD2KICAD::PCB_TEXT::AddToBoard(), PCAD2KICAD::PCB_PAD::AddToFootprint(), PCAD2KICAD::PCB::DoPCBComponents(), Flip(), PCAD2KICAD::PCB_PAD::Flip(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_VIA::Parse(), PCAD2KICAD::PCB_TEXT::Parse(), and PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT().
|
inherited |
Definition at line 63 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT().
|
inherited |
Definition at line 67 of file pcb_component.h.
TTEXTVALUE PCAD2KICAD::PCB_FOOTPRINT::m_Value |
Definition at line 63 of file pcb_footprint.h.
Referenced by AddToBoard(), PCAD2KICAD::PCB::DoPCBComponents(), and PCB_FOOTPRINT().