KiCad PCB EDA Suite
PCAD2KICAD::PCB_COMPONENT Class Referenceabstract

#include <pcb_component.h>

Inheritance diagram for PCAD2KICAD::PCB_COMPONENT:
PCAD2KICAD::PCB_ARC PCAD2KICAD::PCB_FOOTPRINT PCAD2KICAD::PCB_LINE PCAD2KICAD::PCB_PAD PCAD2KICAD::PCB_PAD_SHAPE PCAD2KICAD::PCB_POLYGON PCAD2KICAD::PCB_TEXT PCAD2KICAD::PCB PCAD2KICAD::PCB_VIA PCAD2KICAD::PCB_VIA_SHAPE PCAD2KICAD::PCB_COPPER_POUR PCAD2KICAD::PCB_CUTOUT PCAD2KICAD::PCB_KEEPOUT PCAD2KICAD::PCB_PLANE

Public Member Functions

 PCB_COMPONENT (PCB_CALLBACKS *aCallbacks, BOARD *aBoard)
 
 ~PCB_COMPONENT ()
 
virtual void SetPosOffset (int aX_offs, int aY_offs)
 
virtual void Flip ()
 
virtual void AddToFootprint (FOOTPRINT *aFootprint)
 
virtual void AddToBoard ()=0
 
PCB_LAYER_ID GetKiCadLayer () const
 
int GetNetCode (const wxString &aNetName) const
 

Public Attributes

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 45 of file pcb_component.h.

Constructor & Destructor Documentation

◆ PCB_COMPONENT()

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

Definition at line 37 of file pcb_component.cpp.

37 :
38 m_uuid(),
39 m_callbacks( aCallbacks ),
40 m_board( aBoard )
41{
42 m_tag = 0;
43 m_objType = wxT( '?' );
44 m_PCadLayer = 0;
45 m_KiCadLayer = F_Cu; // It *has* to be somewhere...
46 m_positionX = 0;
47 m_positionY = 0;
50 m_net = wxEmptyString;
51 m_netCode = 0;
52 m_compRef = wxEmptyString;
53 m_patGraphRefName = wxEmptyString;
54}
PCB_CALLBACKS * m_callbacks
Definition: pcb_component.h:78
static constexpr EDA_ANGLE & ANGLE_0
Definition: eda_angle.h:429
@ F_Cu
Definition: layer_ids.h:64
void InitTTextValue(TTEXTVALUE *aTextValue)

References ANGLE_0, F_Cu, PCAD2KICAD::InitTTextValue(), m_compRef, m_KiCadLayer, m_name, m_net, m_netCode, m_objType, m_patGraphRefName, m_PCadLayer, m_positionX, m_positionY, m_rotation, and m_tag.

◆ ~PCB_COMPONENT()

PCAD2KICAD::PCB_COMPONENT::~PCB_COMPONENT ( )

Definition at line 57 of file pcb_component.cpp.

58{
59}

Member Function Documentation

◆ AddToBoard()

◆ AddToFootprint()

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

◆ Flip()

◆ GetKiCadLayer()

◆ GetNetCode()

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

◆ SetPosOffset()

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

Member Data Documentation

◆ m_board

◆ m_callbacks

◆ m_compRef

wxString PCAD2KICAD::PCB_COMPONENT::m_compRef

◆ m_KiCadLayer

◆ m_name

◆ m_net

◆ m_netCode

◆ m_objType

◆ m_patGraphRefName

wxString PCAD2KICAD::PCB_COMPONENT::m_patGraphRefName

◆ m_PCadLayer

◆ m_positionX

◆ m_positionY

◆ m_rotation

◆ m_tag

int PCAD2KICAD::PCB_COMPONENT::m_tag

Definition at line 63 of file pcb_component.h.

Referenced by PCB_COMPONENT().

◆ m_uuid

KIID PCAD2KICAD::PCB_COMPONENT::m_uuid

Definition at line 67 of file pcb_component.h.


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