KiCad PCB EDA Suite
PCAD2KICAD::PCB_VIA_SHAPE Class Reference

#include <pcb_via_shape.h>

Inheritance diagram for PCAD2KICAD::PCB_VIA_SHAPE:
PCAD2KICAD::PCB_PAD_SHAPE PCAD2KICAD::PCB_COMPONENT

Public Member Functions

 PCB_VIA_SHAPE (PCB_CALLBACKS *aCallbacks, BOARD *aBoard)
 
 ~PCB_VIA_SHAPE ()
 
virtual void Parse (XNODE *aNode, const wxString &aDefaultUnits, const wxString &aActualConversion) override
 
void AddToBoard () override
 
virtual void SetPosOffset (int aX_offs, int aY_offs)
 
virtual void Flip ()
 
virtual void AddToFootprint (FOOTPRINT *aFootprint)
 
PCB_LAYER_ID GetKiCadLayer () const
 
int GetNetCode (const wxString &aNetName) const
 

Public Attributes

wxString m_Shape
 
int m_Width
 
int m_Height
 
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_CALLBACKSm_callbacks
 
BOARDm_board
 

Detailed Description

Definition at line 37 of file pcb_via_shape.h.

Constructor & Destructor Documentation

◆ PCB_VIA_SHAPE()

PCAD2KICAD::PCB_VIA_SHAPE::PCB_VIA_SHAPE ( PCB_CALLBACKS aCallbacks,
BOARD aBoard 
)

Definition at line 35 of file pcb_via_shape.cpp.

35 :
36 PCB_PAD_SHAPE( aCallbacks, aBoard )
37{
38}
PCB_PAD_SHAPE(PCB_CALLBACKS *aCallbacks, BOARD *aBoard)

◆ ~PCB_VIA_SHAPE()

PCAD2KICAD::PCB_VIA_SHAPE::~PCB_VIA_SHAPE ( )

Definition at line 41 of file pcb_via_shape.cpp.

42{
43}

Member Function Documentation

◆ AddToBoard()

void PCAD2KICAD::PCB_PAD_SHAPE::AddToBoard ( )
overridevirtualinherited

Implements PCAD2KICAD::PCB_COMPONENT.

Definition at line 131 of file pcb_pad_shape.cpp.

132{
133}

◆ AddToFootprint()

void PCAD2KICAD::PCB_COMPONENT::AddToFootprint ( FOOTPRINT aFootprint)
virtualinherited

◆ Flip()

◆ GetKiCadLayer()

◆ GetNetCode()

int PCAD2KICAD::PCB_COMPONENT::GetNetCode ( const wxString &  aNetName) const
inlineinherited

◆ Parse()

void PCAD2KICAD::PCB_VIA_SHAPE::Parse ( XNODE aNode,
const wxString &  aDefaultUnits,
const wxString &  aActualConversion 
)
overridevirtual

Reimplemented from PCAD2KICAD::PCB_PAD_SHAPE.

Definition at line 46 of file pcb_via_shape.cpp.

48{
49 XNODE* lNode;
50 wxString str;
51 long num;
52
53 lNode = FindNode( aNode, wxT( "viaShapeType" ) );
54
55 if( lNode )
56 {
57 str = lNode->GetNodeContent();
58 str.Trim( false );
59 m_Shape = str;
60 }
61
62 lNode = FindNode( aNode, wxT( "layerNumRef" ) );
63
64 if( lNode )
65 {
66 lNode->GetNodeContent().ToLong( &num );
67 m_PCadLayer = (int) num;
68 }
69
71 lNode = FindNode( aNode, wxT( "shapeWidth" ) );
72
73 if( lNode )
74 SetWidth( lNode->GetNodeContent(), aDefaultUnits, &m_Width, aActualConversion );
75
76 lNode = FindNode( aNode, wxT( "shapeHeight" ) );
77
78 if( lNode )
79 SetWidth( lNode->GetNodeContent(), aDefaultUnits, &m_Height, aActualConversion );
80
81}
PCB_LAYER_ID GetKiCadLayer() const
Definition: pcb_component.h:56
Hold an XML or S-expression element.
Definition: xnode.h:44
void SetWidth(const wxString &aStr, const wxString &aDefaultMeasurementUnit, int *aWidth, const wxString &aActualConversion)
XNODE * FindNode(XNODE *aChild, const wxString &aTag)

References PCAD2KICAD::FindNode(), PCAD2KICAD::PCB_COMPONENT::GetKiCadLayer(), PCAD2KICAD::PCB_PAD_SHAPE::m_Height, PCAD2KICAD::PCB_COMPONENT::m_KiCadLayer, PCAD2KICAD::PCB_COMPONENT::m_PCadLayer, PCAD2KICAD::PCB_PAD_SHAPE::m_Shape, PCAD2KICAD::PCB_PAD_SHAPE::m_Width, and PCAD2KICAD::SetWidth().

Referenced by PCAD2KICAD::PCB_VIA::Parse().

◆ SetPosOffset()

void PCAD2KICAD::PCB_COMPONENT::SetPosOffset ( int  aX_offs,
int  aY_offs 
)
virtualinherited

Member Data Documentation

◆ m_board

◆ m_callbacks

◆ m_compRef

wxString PCAD2KICAD::PCB_COMPONENT::m_compRef
inherited

◆ m_Height

◆ m_KiCadLayer

◆ m_name

◆ m_net

◆ m_netCode

◆ m_objType

◆ m_patGraphRefName

wxString PCAD2KICAD::PCB_COMPONENT::m_patGraphRefName
inherited

◆ m_PCadLayer

◆ m_positionX

◆ m_positionY

◆ m_rotation

◆ m_Shape

wxString PCAD2KICAD::PCB_PAD_SHAPE::m_Shape
inherited

◆ m_tag

int PCAD2KICAD::PCB_COMPONENT::m_tag
inherited

Definition at line 63 of file pcb_component.h.

Referenced by PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT().

◆ m_uuid

KIID PCAD2KICAD::PCB_COMPONENT::m_uuid
inherited

Definition at line 67 of file pcb_component.h.

◆ m_Width


The documentation for this class was generated from the following files: