KiCad PCB EDA Suite
PCAD2KICAD::PCB_COMPONENT Class Referenceabstract

#include <pcb_component.h>

Inheritance diagram for PCAD2KICAD::PCB_COMPONENT:
PCAD2KICAD::PCB_ARC PCAD2KICAD::PCB_LINE PCAD2KICAD::PCB_MODULE 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 AddToModule (MODULE *aModule)
 
virtual void AddToBoard ()=0
 
PCB_LAYER_ID GetKiCadLayer ()
 
int GetNewTimestamp ()
 
int GetNetCode (wxString aNetName)
 

Public Attributes

int m_tag
 
char m_objType
 
int m_PCadLayer
 
PCB_LAYER_ID m_KiCadLayer
 
int m_timestamp
 
int m_positionX
 
int m_positionY
 
int 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 48 of file pcb_component.h.

Constructor & Destructor Documentation

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

Definition at line 39 of file pcb_component.cpp.

References 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, m_tag, and m_timestamp.

40  : m_callbacks( aCallbacks ),
41  m_board( aBoard )
42 {
43  m_tag = 0;
44  m_objType = wxT( '?' );
45  m_PCadLayer = 0;
46  m_KiCadLayer = F_Cu; // It *has* to be somewhere...
47  m_timestamp = 0;
48  m_positionX = 0;
49  m_positionY = 0;
50  m_rotation = 0;
52  m_net = wxEmptyString;
53  m_netCode = 0;
54  m_compRef = wxEmptyString;
55  m_patGraphRefName = wxEmptyString;
56 }
void InitTTextValue(TTEXTVALUE *aTextValue)
PCB_CALLBACKS * m_callbacks
Definition: pcb_component.h:78
PCAD2KICAD::PCB_COMPONENT::~PCB_COMPONENT ( )

Definition at line 59 of file pcb_component.cpp.

60 {
61 }

Member Function Documentation

void PCAD2KICAD::PCB_COMPONENT::AddToModule ( MODULE aModule)
virtual
void PCAD2KICAD::PCB_COMPONENT::Flip ( )
virtual
int PCAD2KICAD::PCB_COMPONENT::GetNetCode ( wxString  aNetName)
inline
int PCAD2KICAD::PCB_COMPONENT::GetNewTimestamp ( )
inline

Definition at line 74 of file pcb_component.h.

References PCAD2KICAD::PCB_CALLBACKS::GetNewTimestamp(), and m_callbacks.

Referenced by PCAD2KICAD::PCB_POLYGON::PCB_POLYGON().

74 { return m_callbacks->GetNewTimestamp(); }
virtual int GetNewTimestamp()=0
PCB_CALLBACKS * m_callbacks
Definition: pcb_component.h:78
void PCAD2KICAD::PCB_COMPONENT::SetPosOffset ( int  aX_offs,
int  aY_offs 
)
virtual

Member Data Documentation

wxString PCAD2KICAD::PCB_COMPONENT::m_compRef
wxString PCAD2KICAD::PCB_COMPONENT::m_patGraphRefName
int PCAD2KICAD::PCB_COMPONENT::m_tag

Definition at line 51 of file pcb_component.h.

Referenced by PCB_COMPONENT().


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