KiCad PCB EDA Suite
|
#include <pcad_polygon.h>
Public Member Functions | |
PCAD_POLYGON (PCAD_CALLBACKS *aCallbacks, BOARD *aBoard, int aPCadLayer) | |
~PCAD_POLYGON () | |
virtual bool | Parse (XNODE *aNode, const wxString &aDefaultUnits, const wxString &aActualConversion) |
virtual void | SetPosOffset (int aX_offs, int aY_offs) override |
virtual void | Flip () override |
void | AddToBoard (FOOTPRINT *aFootprint=nullptr) override |
void | AssignNet (const wxString &aNetName) |
void | SetOutline (VERTICES_ARRAY *aOutline) |
void | FormPolygon (XNODE *aNode, VERTICES_ARRAY *aPolygon, const wxString &aDefaultUnits, const wxString &actualConversion) |
PCB_LAYER_ID | GetKiCadLayer () const |
int | GetNetCode (const wxString &aNetName) const |
Public Attributes | |
int | m_Width |
int | m_Priority |
VERTICES_ARRAY | m_Outline |
ISLANDS_ARRAY | m_Islands |
ISLANDS_ARRAY | m_Cutouts |
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 | |
bool | m_filled |
PCAD_CALLBACKS * | m_callbacks |
BOARD * | m_board |
Definition at line 39 of file pcad_polygon.h.
PCAD2KICAD::PCAD_POLYGON::PCAD_POLYGON | ( | PCAD_CALLBACKS * | aCallbacks, |
BOARD * | aBoard, | ||
int | aPCadLayer | ||
) |
Definition at line 39 of file pcad_polygon.cpp.
References PCAD2KICAD::PCAD_PCB_COMPONENT::GetKiCadLayer(), m_filled, PCAD2KICAD::PCAD_PCB_COMPONENT::m_KiCadLayer, PCAD2KICAD::PCAD_PCB_COMPONENT::m_ObjType, PCAD2KICAD::PCAD_PCB_COMPONENT::m_PCadLayer, m_Priority, and m_Width.
PCAD2KICAD::PCAD_POLYGON::~PCAD_POLYGON | ( | ) |
Definition at line 56 of file pcad_polygon.cpp.
|
overridevirtual |
Implements PCAD2KICAD::PCAD_PCB_COMPONENT.
Definition at line 155 of file pcad_polygon.cpp.
References BOARD::Add(), FOOTPRINT::Add(), ZONE::AppendCorner(), ZONE::GetDefaultHatchPitch(), FOOTPRINT::GetOrientation(), FOOTPRINT::GetPosition(), KiROUND(), PCAD2KICAD::PCAD_PCB_COMPONENT::m_board, PCAD2KICAD::PCAD_PCB_COMPONENT::m_KiCadLayer, PCAD2KICAD::PCAD_PCB_COMPONENT::m_NetCode, PCAD2KICAD::PCAD_PCB_COMPONENT::m_ObjType, m_Outline, m_Priority, m_Width, PCB_SHAPE::Move(), PCB_SHAPE::Rotate(), ZONE::SetAssignedPriority(), ZONE::SetBorderDisplayStyle(), ZONE::SetDoNotAllowCopperPour(), ZONE::SetDoNotAllowFootprints(), ZONE::SetDoNotAllowPads(), ZONE::SetDoNotAllowTracks(), ZONE::SetDoNotAllowVias(), EDA_SHAPE::SetEnd(), ZONE::SetIsRuleArea(), PCB_SHAPE::SetLayer(), ZONE::SetLayer(), ZONE::SetLocalClearance(), BOARD_CONNECTED_ITEM::SetNetCode(), EDA_SHAPE::SetPolyPoints(), EDA_SHAPE::SetStart(), and PCB_SHAPE::SetStroke().
void PCAD2KICAD::PCAD_POLYGON::AssignNet | ( | const wxString & | aNetName | ) |
Definition at line 80 of file pcad_polygon.cpp.
References PCAD2KICAD::PCAD_PCB_COMPONENT::GetNetCode(), PCAD2KICAD::PCAD_PCB_COMPONENT::m_Net, and PCAD2KICAD::PCAD_PCB_COMPONENT::m_NetCode.
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::DoLayerContentsObjects().
|
overridevirtual |
Reimplemented from PCAD2KICAD::PCAD_PCB_COMPONENT.
Definition at line 229 of file pcad_polygon.cpp.
References PCAD2KICAD::PCAD_PCB_COMPONENT::Flip(), BOARD::FlipLayer(), PCAD2KICAD::PCAD_PCB_COMPONENT::m_board, and PCAD2KICAD::PCAD_PCB_COMPONENT::m_KiCadLayer.
void PCAD2KICAD::PCAD_POLYGON::FormPolygon | ( | XNODE * | aNode, |
VERTICES_ARRAY * | aPolygon, | ||
const wxString & | aDefaultUnits, | ||
const wxString & | actualConversion | ||
) |
Definition at line 102 of file pcad_polygon.cpp.
References PCAD2KICAD::FindNode(), XNODE::GetNext(), and PCAD2KICAD::SetDoublePrecisionPosition().
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::DoLayerContentsObjects(), PCAD2KICAD::PCAD_KEEPOUT::Parse(), PCAD2KICAD::PCAD_CUTOUT::Parse(), Parse(), PCAD2KICAD::PCAD_COPPER_POUR::Parse(), and PCAD2KICAD::PCAD_PLANE::Parse().
|
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 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 AssignNet(), PCAD2KICAD::PCAD_PAD::Parse(), Parse(), PCAD2KICAD::PCAD_COPPER_POUR::Parse(), PCAD2KICAD::PCAD_PLANE::Parse(), PCAD2KICAD::PCAD_VIA::Parse(), and PCAD2KICAD::PCAD_LINE::Parse().
|
virtual |
Reimplemented in PCAD2KICAD::PCAD_KEEPOUT, PCAD2KICAD::PCAD_CUTOUT, PCAD2KICAD::PCAD_COPPER_POUR, and PCAD2KICAD::PCAD_PLANE.
Definition at line 124 of file pcad_polygon.cpp.
References PCAD2KICAD::FindNode(), FormPolygon(), PCAD2KICAD::PCAD_PCB_COMPONENT::GetNetCode(), m_Islands, PCAD2KICAD::PCAD_PCB_COMPONENT::m_Net, PCAD2KICAD::PCAD_PCB_COMPONENT::m_NetCode, m_Outline, PCAD2KICAD::PCAD_PCB_COMPONENT::m_PositionX, and PCAD2KICAD::PCAD_PCB_COMPONENT::m_PositionY.
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::DoLayerContentsObjects().
void PCAD2KICAD::PCAD_POLYGON::SetOutline | ( | VERTICES_ARRAY * | aOutline | ) |
Definition at line 86 of file pcad_polygon.cpp.
References m_Outline, PCAD2KICAD::PCAD_PCB_COMPONENT::m_PositionX, and PCAD2KICAD::PCAD_PCB_COMPONENT::m_PositionY.
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::DoLayerContentsObjects().
|
overridevirtual |
Reimplemented from PCAD2KICAD::PCAD_PCB_COMPONENT.
Definition at line 237 of file pcad_polygon.cpp.
References m_Cutouts, m_Islands, m_Outline, and PCAD2KICAD::PCAD_PCB_COMPONENT::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(), PCAD2KICAD::PCAD_PAD::AddToBoard(), PCAD2KICAD::PCAD_PCB::AddToBoard(), AddToBoard(), PCAD2KICAD::PCAD_TEXT::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToFootprint(), PCAD2KICAD::PCAD_FOOTPRINT::DoLayerContentsObjects(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_ARC::Flip(), PCAD2KICAD::PCAD_LINE::Flip(), PCAD2KICAD::PCAD_PAD::Flip(), Flip(), PCAD2KICAD::PCAD_PAD::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(), PCAD2KICAD::PCAD_PAD::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().
ISLANDS_ARRAY PCAD2KICAD::PCAD_POLYGON::m_Cutouts |
Definition at line 67 of file pcad_polygon.h.
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::DoLayerContentsObjects(), SetPosOffset(), and ~PCAD_POLYGON().
|
protected |
Definition at line 70 of file pcad_polygon.h.
Referenced by PCAD2KICAD::PCAD_COPPER_POUR::Parse(), PCAD2KICAD::PCAD_COPPER_POUR::PCAD_COPPER_POUR(), and PCAD_POLYGON().
ISLANDS_ARRAY PCAD2KICAD::PCAD_POLYGON::m_Islands |
Definition at line 66 of file pcad_polygon.h.
Referenced by Parse(), SetPosOffset(), and ~PCAD_POLYGON().
|
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(), PCAD2KICAD::PCAD_PAD::AddToBoard(), AddToBoard(), PCAD2KICAD::PCAD_TEXT::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToFootprint(), PCAD2KICAD::PCAD_ARC::Flip(), PCAD2KICAD::PCAD_LINE::Flip(), PCAD2KICAD::PCAD_PAD::Flip(), 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 PCAD_POLYGON().
|
inherited |
Definition at line 70 of file pcad_pcb_component.h.
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToBoard(), PCAD2KICAD::PCAD_TEXT::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToFootprint(), PCAD2KICAD::PCAD_PCB::ConnectPinToNet(), PCAD2KICAD::PCAD_FOOTPRINT::DoLayerContentsObjects(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_PAD::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 PCAD2KICAD::PCAD_PAD::AddToFootprint(), AssignNet(), PCAD2KICAD::PCAD_PCB::ConnectPinToNet(), PCAD2KICAD::PCAD_PAD::Parse(), 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(), AddToBoard(), AssignNet(), PCAD2KICAD::PCAD_PAD::Parse(), 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 PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToBoard(), AddToBoard(), PCAD2KICAD::PCAD_PCB::ConnectPinToNet(), PCAD2KICAD::PCAD_FOOTPRINT::Flip(), PCAD2KICAD::PCAD_PAD::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(), PCAD2KICAD::PCAD_PAD::PCAD_PAD(), PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT(), PCAD_POLYGON(), PCAD2KICAD::PCAD_TEXT::PCAD_TEXT(), PCAD2KICAD::PCAD_VIA::PCAD_VIA(), and PCAD2KICAD::PCAD_FOOTPRINT::SetName().
VERTICES_ARRAY PCAD2KICAD::PCAD_POLYGON::m_Outline |
Definition at line 65 of file pcad_polygon.h.
Referenced by AddToBoard(), PCAD2KICAD::PCAD_KEEPOUT::Parse(), PCAD2KICAD::PCAD_CUTOUT::Parse(), Parse(), PCAD2KICAD::PCAD_COPPER_POUR::Parse(), PCAD2KICAD::PCAD_PLANE::Parse(), SetOutline(), SetPosOffset(), and ~PCAD_POLYGON().
|
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 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(), 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(), 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(), 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(), 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(), 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(), SetOutline(), and PCAD2KICAD::PCAD_PCB_COMPONENT::SetPosOffset().
int PCAD2KICAD::PCAD_POLYGON::m_Priority |
Definition at line 64 of file pcad_polygon.h.
Referenced by AddToBoard(), PCAD2KICAD::PCAD_PLANE::PCAD_PLANE(), and PCAD_POLYGON().
|
inherited |
Definition at line 69 of file pcad_pcb_component.h.
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), PCAD2KICAD::PCAD_TEXT::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToFootprint(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_FOOTPRINT::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.
int PCAD2KICAD::PCAD_POLYGON::m_Width |
Definition at line 63 of file pcad_polygon.h.
Referenced by AddToBoard(), PCAD2KICAD::PCAD_COPPER_POUR::Parse(), PCAD2KICAD::PCAD_PLANE::Parse(), and PCAD_POLYGON().