KiCad PCB EDA Suite
|
#include <pcad_pad.h>
Public Member Functions | |
PCAD_PAD (PCAD_CALLBACKS *aCallbacks, BOARD *aBoard) | |
~PCAD_PAD () | |
virtual void | Parse (XNODE *aNode, const wxString &aDefaultUnits, const wxString &aActualConversion) |
virtual void | Flip () override |
void | AddToFootprint (FOOTPRINT *aFootprint, const EDA_ANGLE &aRotation, bool aEncapsulatedPad) |
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 | |
int | m_Number |
int | m_Hole |
bool | m_IsHolePlated |
PCAD_PAD_SHAPES_ARRAY | m_Shapes |
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 Attributes | |
wxString | m_defaultPinDes |
Definition at line 38 of file pcad_pad.h.
PCAD2KICAD::PCAD_PAD::PCAD_PAD | ( | PCAD_CALLBACKS * | aCallbacks, |
BOARD * | aBoard | ||
) |
Definition at line 41 of file pcad_pad.cpp.
References m_defaultPinDes, m_Hole, m_IsHolePlated, m_Number, and PCAD2KICAD::PCAD_PCB_COMPONENT::m_ObjType.
PCAD2KICAD::PCAD_PAD::~PCAD_PAD | ( | ) |
Definition at line 52 of file pcad_pad.cpp.
References m_Shapes.
|
overridevirtual |
Implements PCAD2KICAD::PCAD_PCB_COMPONENT.
Definition at line 324 of file pcad_pad.cpp.
References BOARD::Add(), AddToFootprint(), PADSTACK::ALL_LAYERS, ANGLE_0, B_Cu, F_Cu, IsCopperLayer(), PCAD2KICAD::PCAD_PCB_COMPONENT::m_board, m_defaultPinDes, PCAD2KICAD::PCAD_PAD_SHAPE::m_Height, m_Hole, PCAD2KICAD::PCAD_PCB_COMPONENT::m_KiCadLayer, PCAD2KICAD::PCAD_PCB_COMPONENT::m_Name, PCAD2KICAD::PCAD_PCB_COMPONENT::m_NetCode, PCAD2KICAD::PCAD_PCB_COMPONENT::m_ObjType, PCAD2KICAD::PCAD_PCB_COMPONENT::m_PositionX, PCAD2KICAD::PCAD_PCB_COMPONENT::m_PositionY, m_Shapes, PCAD2KICAD::PCAD_PAD_SHAPE::m_Width, FOOTPRINT::SetPosition(), PCAD2KICAD::TTEXTVALUE::text, and via.
void PCAD2KICAD::PCAD_PAD::AddToFootprint | ( | FOOTPRINT * | aFootprint, |
const EDA_ANGLE & | aRotation, | ||
bool | aEncapsulatedPad | ||
) |
Definition at line 194 of file pcad_pad.cpp.
References BOARD::Add(), FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, LSET::AllCuMask(), B_Cu, B_Mask, B_Paste, F_Cu, F_Mask, F_Paste, BOARD::FindNet(), NETINFO_ITEM::GetNetCode(), FOOTPRINT::GetOrientation(), FOOTPRINT::GetPosition(), PCAD2KICAD::PCAD_PCB_COMPONENT::m_board, PCAD2KICAD::PCAD_PAD_SHAPE::m_Height, m_Hole, m_IsHolePlated, PCAD2KICAD::PCAD_PCB_COMPONENT::m_KiCadLayer, PCAD2KICAD::PCAD_PCB_COMPONENT::m_Name, PCAD2KICAD::PCAD_PCB_COMPONENT::m_Net, PCAD2KICAD::PCAD_PCB_COMPONENT::m_PositionX, PCAD2KICAD::PCAD_PCB_COMPONENT::m_PositionY, PCAD2KICAD::PCAD_PCB_COMPONENT::m_Rotation, PCAD2KICAD::PCAD_PAD_SHAPE::m_Shape, m_Shapes, PCAD2KICAD::PCAD_PAD_SHAPE::m_Width, EDA_IU_SCALE::mmToIU(), pad, pcbIUScale, RotatePoint(), and PCAD2KICAD::TTEXTVALUE::text.
Referenced by AddToBoard().
|
overridevirtual |
Reimplemented from PCAD2KICAD::PCAD_PCB_COMPONENT.
Definition at line 180 of file pcad_pad.cpp.
References PCAD2KICAD::PCAD_PCB_COMPONENT::Flip(), BOARD::FlipLayer(), PCAD2KICAD::PCAD_PCB_COMPONENT::m_board, PCAD2KICAD::PCAD_PCB_COMPONENT::m_KiCadLayer, PCAD2KICAD::PCAD_PCB_COMPONENT::m_ObjType, PCAD2KICAD::PCAD_PCB_COMPONENT::m_Rotation, and m_Shapes.
|
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(), Parse(), PCAD2KICAD::PCAD_POLYGON::Parse(), PCAD2KICAD::PCAD_COPPER_POUR::Parse(), PCAD2KICAD::PCAD_PLANE::Parse(), PCAD2KICAD::PCAD_VIA::Parse(), and PCAD2KICAD::PCAD_LINE::Parse().
|
virtual |
Reimplemented in PCAD2KICAD::PCAD_VIA.
Definition at line 61 of file pcad_pad.cpp.
References ANGLE_0, PCAD2KICAD::FindNode(), PCAD2KICAD::FindNodeGetContent(), PCAD2KICAD::PCAD_PCB_COMPONENT::GetNetCode(), XNODE::GetNext(), XNODE::GetParent(), PCAD2KICAD::PCAD_PCB_COMPONENT::m_board, PCAD2KICAD::PCAD_PCB_COMPONENT::m_callbacks, m_defaultPinDes, m_Hole, m_IsHolePlated, PCAD2KICAD::PCAD_PCB_COMPONENT::m_Name, PCAD2KICAD::PCAD_PCB_COMPONENT::m_Net, PCAD2KICAD::PCAD_PCB_COMPONENT::m_NetCode, m_Number, PCAD2KICAD::PCAD_PCB_COMPONENT::m_PositionX, PCAD2KICAD::PCAD_PCB_COMPONENT::m_PositionY, PCAD2KICAD::PCAD_PCB_COMPONENT::m_Rotation, m_Shapes, PCAD2KICAD::PCAD_PAD_SHAPE::Parse(), PCAD2KICAD::SetPosition(), PCAD2KICAD::SetWidth(), PCAD2KICAD::StrToInt1Units(), TENTHS_OF_A_DEGREE_T, PCAD2KICAD::TTEXTVALUE::text, and THROW_IO_ERROR.
|
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(), PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), PCAD2KICAD::PCAD_LINE::AddToBoard(), AddToBoard(), PCAD2KICAD::PCAD_PCB::AddToBoard(), PCAD2KICAD::PCAD_POLYGON::AddToBoard(), PCAD2KICAD::PCAD_TEXT::AddToBoard(), AddToFootprint(), PCAD2KICAD::PCAD_FOOTPRINT::DoLayerContentsObjects(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_ARC::Flip(), PCAD2KICAD::PCAD_LINE::Flip(), Flip(), PCAD2KICAD::PCAD_POLYGON::Flip(), Parse(), PCAD2KICAD::PCAD_VIA::Parse(), PCAD2KICAD::PCAD_FOOTPRINT::Parse(), and PCAD2KICAD::PCAD_PCB::ParseBoard().
|
protectedinherited |
Definition at line 77 of file pcad_pcb_component.h.
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::DoLayerContentsObjects(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_PCB_COMPONENT::GetKiCadLayer(), PCAD2KICAD::PCAD_PCB_COMPONENT::GetNetCode(), Parse(), PCAD2KICAD::PCAD_VIA::Parse(), and PCAD2KICAD::PCAD_FOOTPRINT::Parse().
|
inherited |
Definition at line 73 of file pcad_pcb_component.h.
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), and PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT().
|
private |
Definition at line 60 of file pcad_pad.h.
Referenced by AddToBoard(), Parse(), and PCAD_PAD().
int PCAD2KICAD::PCAD_PAD::m_Hole |
Definition at line 55 of file pcad_pad.h.
Referenced by AddToBoard(), AddToFootprint(), Parse(), PCAD2KICAD::PCAD_VIA::Parse(), and PCAD_PAD().
bool PCAD2KICAD::PCAD_PAD::m_IsHolePlated |
Definition at line 56 of file pcad_pad.h.
Referenced by AddToFootprint(), Parse(), and PCAD_PAD().
|
inherited |
Definition at line 65 of file pcad_pcb_component.h.
Referenced by PCAD2KICAD::PCAD_ARC::AddToBoard(), PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), PCAD2KICAD::PCAD_LINE::AddToBoard(), AddToBoard(), PCAD2KICAD::PCAD_POLYGON::AddToBoard(), PCAD2KICAD::PCAD_TEXT::AddToBoard(), AddToFootprint(), PCAD2KICAD::PCAD_ARC::Flip(), PCAD2KICAD::PCAD_LINE::Flip(), 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(), PCAD2KICAD::PCAD_FOOTPRINT::PCAD_FOOTPRINT(), PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT(), and PCAD2KICAD::PCAD_POLYGON::PCAD_POLYGON().
|
inherited |
Definition at line 70 of file pcad_pcb_component.h.
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), AddToBoard(), PCAD2KICAD::PCAD_TEXT::AddToBoard(), AddToFootprint(), PCAD2KICAD::PCAD_PCB::ConnectPinToNet(), PCAD2KICAD::PCAD_FOOTPRINT::DoLayerContentsObjects(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), Parse(), PCAD2KICAD::PCAD_VIA::Parse(), PCAD2KICAD::PCAD_TEXT::Parse(), PCAD2KICAD::PCAD_FOOTPRINT::Parse(), PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT(), and PCAD2KICAD::PCAD_FOOTPRINT::SetName().
|
inherited |
Definition at line 71 of file pcad_pcb_component.h.
Referenced by AddToFootprint(), PCAD2KICAD::PCAD_POLYGON::AssignNet(), PCAD2KICAD::PCAD_PCB::ConnectPinToNet(), 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(), AddToBoard(), PCAD2KICAD::PCAD_POLYGON::AddToBoard(), PCAD2KICAD::PCAD_POLYGON::AssignNet(), 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().
int PCAD2KICAD::PCAD_PAD::m_Number |
Definition at line 54 of file pcad_pad.h.
Referenced by Parse(), and PCAD_PAD().
|
inherited |
Definition at line 63 of file pcad_pcb_component.h.
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), AddToBoard(), PCAD2KICAD::PCAD_POLYGON::AddToBoard(), PCAD2KICAD::PCAD_PCB::ConnectPinToNet(), PCAD2KICAD::PCAD_FOOTPRINT::Flip(), Flip(), PCAD2KICAD::PCAD_PCB::ParseBoard(), PCAD2KICAD::PCAD_ARC::PCAD_ARC(), PCAD2KICAD::PCAD_CUTOUT::PCAD_CUTOUT(), PCAD2KICAD::PCAD_FOOTPRINT::PCAD_FOOTPRINT(), PCAD2KICAD::PCAD_KEEPOUT::PCAD_KEEPOUT(), PCAD2KICAD::PCAD_LINE::PCAD_LINE(), 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 PCAD2KICAD::PCAD_FOOTPRINT::SetName().
|
inherited |
Definition at line 74 of file pcad_pcb_component.h.
Referenced by PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_FOOTPRINT::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(), PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), PCAD2KICAD::PCAD_LINE::AddToBoard(), AddToBoard(), PCAD2KICAD::PCAD_TEXT::AddToBoard(), AddToFootprint(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_PCB_COMPONENT::Flip(), PCAD2KICAD::PCAD_KEEPOUT::Parse(), PCAD2KICAD::PCAD_CUTOUT::Parse(), 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(), PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), PCAD2KICAD::PCAD_LINE::AddToBoard(), AddToBoard(), PCAD2KICAD::PCAD_TEXT::AddToBoard(), AddToFootprint(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_KEEPOUT::Parse(), PCAD2KICAD::PCAD_CUTOUT::Parse(), 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 PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), PCAD2KICAD::PCAD_TEXT::AddToBoard(), AddToFootprint(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_FOOTPRINT::Flip(), Flip(), Parse(), PCAD2KICAD::PCAD_VIA::Parse(), PCAD2KICAD::PCAD_TEXT::Parse(), and PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT().
PCAD_PAD_SHAPES_ARRAY PCAD2KICAD::PCAD_PAD::m_Shapes |
Definition at line 57 of file pcad_pad.h.
Referenced by AddToBoard(), AddToFootprint(), Flip(), Parse(), PCAD2KICAD::PCAD_VIA::Parse(), and ~PCAD_PAD().
|
inherited |
Definition at line 66 of file pcad_pcb_component.h.