KiCad PCB EDA Suite
|
#include <pcb_polygon.h>
Public Member Functions | |
PCB_POLYGON (PCB_CALLBACKS *aCallbacks, BOARD *aBoard, int aPCadLayer) | |
~PCB_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 | AddToFootprint (FOOTPRINT *aFootprint) override |
void | AddToBoard () 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 |
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 | |
bool | m_filled |
PCB_CALLBACKS * | m_callbacks |
BOARD * | m_board |
Definition at line 39 of file pcb_polygon.h.
PCAD2KICAD::PCB_POLYGON::PCB_POLYGON | ( | PCB_CALLBACKS * | aCallbacks, |
BOARD * | aBoard, | ||
int | aPCadLayer | ||
) |
Definition at line 39 of file pcb_polygon.cpp.
References PCAD2KICAD::PCB_COMPONENT::GetKiCadLayer(), m_filled, PCAD2KICAD::PCB_COMPONENT::m_KiCadLayer, PCAD2KICAD::PCB_COMPONENT::m_objType, PCAD2KICAD::PCB_COMPONENT::m_PCadLayer, m_priority, and m_width.
PCAD2KICAD::PCB_POLYGON::~PCB_POLYGON | ( | ) |
Definition at line 56 of file pcb_polygon.cpp.
|
overridevirtual |
Implements PCAD2KICAD::PCB_COMPONENT.
Definition at line 185 of file pcb_polygon.cpp.
References BOARD::Add(), APPEND, ZONE::AppendCorner(), DIAGONAL_EDGE, ZONE::GetDefaultHatchPitch(), KiROUND(), PCAD2KICAD::PCB_COMPONENT::m_board, PCAD2KICAD::PCB_COMPONENT::m_KiCadLayer, PCAD2KICAD::PCB_COMPONENT::m_netCode, PCAD2KICAD::PCB_COMPONENT::m_objType, m_outline, m_priority, m_width, ZONE::SetAssignedPriority(), ZONE::SetBorderDisplayStyle(), ZONE::SetDoNotAllowCopperPour(), ZONE::SetDoNotAllowFootprints(), ZONE::SetDoNotAllowPads(), ZONE::SetDoNotAllowTracks(), ZONE::SetDoNotAllowVias(), ZONE::SetIsRuleArea(), ZONE::SetLayer(), ZONE::SetLocalClearance(), and BOARD_CONNECTED_ITEM::SetNetCode().
|
overridevirtual |
Reimplemented from PCAD2KICAD::PCB_COMPONENT.
Definition at line 161 of file pcb_polygon.cpp.
References FOOTPRINT::Add(), IsNonCopperLayer(), PCAD2KICAD::PCB_COMPONENT::m_KiCadLayer, m_outline, POLY, FP_SHAPE::SetDrawCoord(), FP_SHAPE::SetEnd0(), BOARD_ITEM::SetLayer(), EDA_SHAPE::SetPolyPoints(), FP_SHAPE::SetStart0(), and PCB_SHAPE::SetStroke().
void PCAD2KICAD::PCB_POLYGON::AssignNet | ( | const wxString & | aNetName | ) |
Definition at line 86 of file pcb_polygon.cpp.
References PCAD2KICAD::PCB_COMPONENT::GetNetCode(), PCAD2KICAD::PCB_COMPONENT::m_net, and PCAD2KICAD::PCB_COMPONENT::m_netCode.
Referenced by PCAD2KICAD::PCB_FOOTPRINT::DoLayerContentsObjects().
|
overridevirtual |
Reimplemented from PCAD2KICAD::PCB_COMPONENT.
Definition at line 237 of file pcb_polygon.cpp.
References PCAD2KICAD::PCB_COMPONENT::Flip(), FlipLayer(), and PCAD2KICAD::PCB_COMPONENT::m_KiCadLayer.
void PCAD2KICAD::PCB_POLYGON::FormPolygon | ( | XNODE * | aNode, |
VERTICES_ARRAY * | aPolygon, | ||
const wxString & | aDefaultUnits, | ||
const wxString & | actualConversion | ||
) |
Definition at line 108 of file pcb_polygon.cpp.
References PCAD2KICAD::FindNode(), XNODE::GetNext(), and PCAD2KICAD::SetDoublePrecisionPosition().
Referenced by PCAD2KICAD::PCB_FOOTPRINT::DoLayerContentsObjects(), PCAD2KICAD::PCB_KEEPOUT::Parse(), PCAD2KICAD::PCB_CUTOUT::Parse(), Parse(), PCAD2KICAD::PCB_COPPER_POUR::Parse(), and PCAD2KICAD::PCB_PLANE::Parse().
|
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 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 AssignNet(), PCAD2KICAD::PCB_PAD::Parse(), Parse(), PCAD2KICAD::PCB_COPPER_POUR::Parse(), PCAD2KICAD::PCB_PLANE::Parse(), PCAD2KICAD::PCB_VIA::Parse(), and PCAD2KICAD::PCB_LINE::Parse().
|
virtual |
Reimplemented in PCAD2KICAD::PCB_KEEPOUT, PCAD2KICAD::PCB_CUTOUT, PCAD2KICAD::PCB_COPPER_POUR, and PCAD2KICAD::PCB_PLANE.
Definition at line 130 of file pcb_polygon.cpp.
References PCAD2KICAD::FindNode(), FormPolygon(), PCAD2KICAD::PCB_COMPONENT::GetNetCode(), m_islands, PCAD2KICAD::PCB_COMPONENT::m_net, PCAD2KICAD::PCB_COMPONENT::m_netCode, m_outline, PCAD2KICAD::PCB_COMPONENT::m_positionX, and PCAD2KICAD::PCB_COMPONENT::m_positionY.
Referenced by PCAD2KICAD::PCB_FOOTPRINT::DoLayerContentsObjects().
void PCAD2KICAD::PCB_POLYGON::SetOutline | ( | VERTICES_ARRAY * | aOutline | ) |
Definition at line 92 of file pcb_polygon.cpp.
References m_outline, PCAD2KICAD::PCB_COMPONENT::m_positionX, and PCAD2KICAD::PCB_COMPONENT::m_positionY.
Referenced by PCAD2KICAD::PCB_FOOTPRINT::DoLayerContentsObjects().
|
overridevirtual |
Reimplemented from PCAD2KICAD::PCB_COMPONENT.
Definition at line 245 of file pcb_polygon.cpp.
References m_cutouts, m_islands, m_outline, and PCAD2KICAD::PCB_COMPONENT::SetPosOffset().
|
protectedinherited |
Definition at line 79 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB::AddToBoard(), PCAD2KICAD::PCB_ARC::AddToBoard(), PCAD2KICAD::PCB_FOOTPRINT::AddToBoard(), PCAD2KICAD::PCB_LINE::AddToBoard(), PCAD2KICAD::PCB_PAD::AddToBoard(), AddToBoard(), PCAD2KICAD::PCB_TEXT::AddToBoard(), PCAD2KICAD::PCB_PAD::AddToFootprint(), PCAD2KICAD::PCB_FOOTPRINT::DoLayerContentsObjects(), PCAD2KICAD::PCB::DoPCBComponents(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_VIA::Parse(), PCAD2KICAD::PCB_FOOTPRINT::Parse(), and PCAD2KICAD::PCB::ParseBoard().
|
protectedinherited |
Definition at line 78 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB_FOOTPRINT::DoLayerContentsObjects(), PCAD2KICAD::PCB::DoPCBComponents(), PCAD2KICAD::PCB_COMPONENT::GetKiCadLayer(), PCAD2KICAD::PCB_COMPONENT::GetNetCode(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_VIA::Parse(), and PCAD2KICAD::PCB_FOOTPRINT::Parse().
|
inherited |
Definition at line 74 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB_FOOTPRINT::AddToBoard(), PCAD2KICAD::PCB::DoPCBComponents(), and PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT().
ISLANDS_ARRAY PCAD2KICAD::PCB_POLYGON::m_cutouts |
Definition at line 68 of file pcb_polygon.h.
Referenced by PCAD2KICAD::PCB_FOOTPRINT::DoLayerContentsObjects(), SetPosOffset(), and ~PCB_POLYGON().
|
protected |
Definition at line 71 of file pcb_polygon.h.
Referenced by PCAD2KICAD::PCB_COPPER_POUR::Parse(), PCAD2KICAD::PCB_COPPER_POUR::PCB_COPPER_POUR(), and PCB_POLYGON().
ISLANDS_ARRAY PCAD2KICAD::PCB_POLYGON::m_islands |
Definition at line 67 of file pcb_polygon.h.
Referenced by Parse(), SetPosOffset(), and ~PCB_POLYGON().
|
inherited |
Definition at line 66 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB_ARC::AddToBoard(), PCAD2KICAD::PCB_FOOTPRINT::AddToBoard(), PCAD2KICAD::PCB_LINE::AddToBoard(), PCAD2KICAD::PCB_PAD::AddToBoard(), AddToBoard(), PCAD2KICAD::PCB_TEXT::AddToBoard(), PCAD2KICAD::PCB_ARC::AddToFootprint(), PCAD2KICAD::PCB_LINE::AddToFootprint(), AddToFootprint(), PCAD2KICAD::PCB_PAD::AddToFootprint(), PCAD2KICAD::PCB_ARC::Flip(), PCAD2KICAD::PCB_LINE::Flip(), PCAD2KICAD::PCB_PAD::Flip(), 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(), PCAD2KICAD::PCB_FOOTPRINT::PCB_FOOTPRINT(), and PCB_POLYGON().
|
inherited |
Definition at line 71 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB_FOOTPRINT::AddToBoard(), PCAD2KICAD::PCB_PAD::AddToBoard(), PCAD2KICAD::PCB_TEXT::AddToBoard(), PCAD2KICAD::PCB_PAD::AddToFootprint(), PCAD2KICAD::PCB::ConnectPinToNet(), PCAD2KICAD::PCB_FOOTPRINT::DoLayerContentsObjects(), PCAD2KICAD::PCB::DoPCBComponents(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_VIA::Parse(), PCAD2KICAD::PCB_TEXT::Parse(), PCAD2KICAD::PCB_FOOTPRINT::Parse(), PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT(), and PCAD2KICAD::PCB_FOOTPRINT::SetName().
|
inherited |
Definition at line 72 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB_PAD::AddToFootprint(), AssignNet(), PCAD2KICAD::PCB::ConnectPinToNet(), PCAD2KICAD::PCB_PAD::Parse(), 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(), AddToBoard(), AssignNet(), PCAD2KICAD::PCB_PAD::Parse(), 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 PCAD2KICAD::PCB_FOOTPRINT::AddToBoard(), PCAD2KICAD::PCB_PAD::AddToBoard(), AddToBoard(), PCAD2KICAD::PCB::ConnectPinToNet(), PCAD2KICAD::PCB_FOOTPRINT::Flip(), PCAD2KICAD::PCB_PAD::Flip(), PCAD2KICAD::PCB::ParseBoard(), PCAD2KICAD::PCB_ARC::PCB_ARC(), PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT(), PCAD2KICAD::PCB_CUTOUT::PCB_CUTOUT(), PCAD2KICAD::PCB_FOOTPRINT::PCB_FOOTPRINT(), PCAD2KICAD::PCB_KEEPOUT::PCB_KEEPOUT(), PCAD2KICAD::PCB_LINE::PCB_LINE(), PCAD2KICAD::PCB_PAD::PCB_PAD(), PCB_POLYGON(), PCAD2KICAD::PCB_TEXT::PCB_TEXT(), PCAD2KICAD::PCB_VIA::PCB_VIA(), and PCAD2KICAD::PCB_FOOTPRINT::SetName().
VERTICES_ARRAY PCAD2KICAD::PCB_POLYGON::m_outline |
Definition at line 66 of file pcb_polygon.h.
Referenced by AddToBoard(), AddToFootprint(), PCAD2KICAD::PCB_KEEPOUT::Parse(), PCAD2KICAD::PCB_CUTOUT::Parse(), Parse(), PCAD2KICAD::PCB_COPPER_POUR::Parse(), PCAD2KICAD::PCB_PLANE::Parse(), SetOutline(), SetPosOffset(), and ~PCB_POLYGON().
|
inherited |
Definition at line 75 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB::DoPCBComponents(), PCAD2KICAD::PCB_FOOTPRINT::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 PCB_POLYGON().
|
inherited |
Definition at line 68 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB_ARC::AddToBoard(), PCAD2KICAD::PCB_FOOTPRINT::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(), 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(), SetOutline(), and PCAD2KICAD::PCB_COMPONENT::SetPosOffset().
|
inherited |
Definition at line 69 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB_ARC::AddToBoard(), PCAD2KICAD::PCB_FOOTPRINT::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(), 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(), SetOutline(), and PCAD2KICAD::PCB_COMPONENT::SetPosOffset().
int PCAD2KICAD::PCB_POLYGON::m_priority |
Definition at line 65 of file pcb_polygon.h.
Referenced by AddToBoard(), PCAD2KICAD::PCB_PLANE::PCB_PLANE(), and PCB_POLYGON().
|
inherited |
Definition at line 70 of file pcb_component.h.
Referenced by PCAD2KICAD::PCB_FOOTPRINT::AddToBoard(), PCAD2KICAD::PCB_TEXT::AddToBoard(), PCAD2KICAD::PCB_PAD::AddToFootprint(), PCAD2KICAD::PCB::DoPCBComponents(), PCAD2KICAD::PCB_FOOTPRINT::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.
int PCAD2KICAD::PCB_POLYGON::m_width |
Definition at line 64 of file pcb_polygon.h.
Referenced by AddToBoard(), PCAD2KICAD::PCB_COPPER_POUR::Parse(), PCAD2KICAD::PCB_PLANE::Parse(), and PCB_POLYGON().