KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PCAD2KICAD::PCAD_FOOTPRINT Class Reference

#include <pcad_footprint.h>

Inheritance diagram for PCAD2KICAD::PCAD_FOOTPRINT:
PCAD2KICAD::PCAD_PCB_COMPONENT PCAD2KICAD::PCAD_PCB

Public Member Functions

 PCAD_FOOTPRINT (PCAD_CALLBACKS *aCallbacks, BOARD *aBoard)
 
 ~PCAD_FOOTPRINT ()
 
XNODEFindModulePatternDefName (XNODE *aNode, const wxString &aName)
 
void DoLayerContentsObjects (XNODE *aNode, PCAD_FOOTPRINT *aFootprint, PCAD_COMPONENTS_ARRAY *aList, wxStatusBar *aStatusBar, const wxString &aDefaultMeasurementUnit, const wxString &aActualConversion)
 
void SetName (const wxString &aPin, const wxString &aName)
 
virtual void Parse (XNODE *aNode, wxStatusBar *aStatusBar, const wxString &aDefaultMeasurementUnit, const wxString &aActualConversion)
 
virtual void Flip () override
 
void AddToBoard (FOOTPRINT *aFootprint=nullptr) override
 
virtual void SetPosOffset (int aX_offs, int aY_offs)
 
PCB_LAYER_ID GetKiCadLayer () const
 
int GetNetCode (const wxString &aNetName) const
 

Public Attributes

TTEXTVALUE m_Value
 
PCAD_COMPONENTS_ARRAY m_FootprintItems
 
int m_Mirror
 
VERTICES_ARRAY m_BoardOutline
 
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

PCAD_CALLBACKSm_callbacks
 
BOARDm_board
 

Private Member Functions

XNODEFindPatternMultilayerSection (XNODE *aNode, wxString *aPatGraphRefName)
 

Detailed Description

Definition at line 41 of file pcad_footprint.h.

Constructor & Destructor Documentation

◆ PCAD_FOOTPRINT()

PCAD2KICAD::PCAD_FOOTPRINT::PCAD_FOOTPRINT ( PCAD_CALLBACKS aCallbacks,
BOARD aBoard 
)

◆ ~PCAD_FOOTPRINT()

PCAD2KICAD::PCAD_FOOTPRINT::~PCAD_FOOTPRINT ( )

Definition at line 58 of file pcad_footprint.cpp.

References m_FootprintItems.

Member Function Documentation

◆ AddToBoard()

void PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard ( FOOTPRINT aFootprint = nullptr)
overridevirtual

Implements PCAD2KICAD::PCAD_PCB_COMPONENT.

Reimplemented in PCAD2KICAD::PCAD_PCB.

Definition at line 479 of file pcad_footprint.cpp.

References BOARD::Add(), AddToBoard(), B_Cu, PCAD2KICAD::TTEXTVALUE::correctedPositionX, PCAD2KICAD::TTEXTVALUE::correctedPositionY, PCAD2KICAD::CorrectTextPosition(), F_Cu, BOARD::FlipLayer(), PCAD2KICAD::TTEXTVALUE::isItalic, PCAD2KICAD::TTEXTVALUE::isTrueType, PCAD2KICAD::PCAD_PCB_COMPONENT::m_board, PCAD2KICAD::PCAD_PCB_COMPONENT::m_CompRef, m_FootprintItems, PCAD2KICAD::PCAD_PCB_COMPONENT::m_KiCadLayer, m_Mirror, PCAD2KICAD::PCAD_PCB_COMPONENT::m_Name, PCAD2KICAD::PCAD_PCB_COMPONENT::m_ObjType, PCAD2KICAD::PCAD_PCB_COMPONENT::m_PositionX, PCAD2KICAD::PCAD_PCB_COMPONENT::m_PositionY, PCAD2KICAD::PCAD_PCB_COMPONENT::m_Rotation, m_Value, PCAD2KICAD::TTEXTVALUE::mirror, LIB_ID::Parse(), FOOTPRINT::Reference(), RotatePoint(), FOOTPRINT::SetFPID(), BOARD_ITEM::SetFPRelativePosition(), EDA_TEXT::SetItalic(), EDA_TEXT::SetKeepUpright(), BOARD_ITEM::SetLayer(), EDA_TEXT::SetMirrored(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), EDA_TEXT::SetText(), EDA_TEXT::SetTextAngle(), PCAD2KICAD::SetTextSizeFromStrokeFontHeight(), PCAD2KICAD::SetTextSizeFromTrueTypeFontHeight(), EDA_TEXT::SetTextThickness(), EDA_TEXT::SetVisible(), PCAD2KICAD::TTEXTVALUE::text, PCAD2KICAD::TTEXTVALUE::textHeight, PCAD2KICAD::TTEXTVALUE::textIsVisible, PCAD2KICAD::TTEXTVALUE::textRotation, PCAD2KICAD::TTEXTVALUE::textstrokeWidth, PCAD2KICAD::ValidateReference(), and FOOTPRINT::Value().

Referenced by AddToBoard().

◆ DoLayerContentsObjects()

◆ FindModulePatternDefName()

XNODE * PCAD2KICAD::PCAD_FOOTPRINT::FindModulePatternDefName ( XNODE aNode,
const wxString &  aName 
)

◆ FindPatternMultilayerSection()

XNODE * PCAD2KICAD::PCAD_FOOTPRINT::FindPatternMultilayerSection ( XNODE aNode,
wxString *  aPatGraphRefName 
)
private

◆ Flip()

void PCAD2KICAD::PCAD_FOOTPRINT::Flip ( )
overridevirtual

◆ GetKiCadLayer()

◆ GetNetCode()

◆ Parse()

◆ SetName()

void PCAD2KICAD::PCAD_FOOTPRINT::SetName ( const wxString &  aPin,
const wxString &  aName 
)

◆ SetPosOffset()

Member Data Documentation

◆ m_board

◆ m_BoardOutline

VERTICES_ARRAY PCAD2KICAD::PCAD_FOOTPRINT::m_BoardOutline

◆ m_callbacks

◆ m_CompRef

wxString PCAD2KICAD::PCAD_PCB_COMPONENT::m_CompRef
inherited

◆ m_FootprintItems

PCAD_COMPONENTS_ARRAY PCAD2KICAD::PCAD_FOOTPRINT::m_FootprintItems

◆ m_KiCadLayer

◆ m_Mirror

int PCAD2KICAD::PCAD_FOOTPRINT::m_Mirror

◆ m_Name

◆ m_Net

◆ m_NetCode

◆ m_ObjType

◆ m_PatGraphRefName

wxString PCAD2KICAD::PCAD_PCB_COMPONENT::m_PatGraphRefName
inherited

◆ m_PCadLayer

◆ m_PositionX

◆ m_PositionY

◆ m_Rotation

◆ m_Uuid

KIID PCAD2KICAD::PCAD_PCB_COMPONENT::m_Uuid
inherited

Definition at line 66 of file pcad_pcb_component.h.

◆ m_Value

TTEXTVALUE PCAD2KICAD::PCAD_FOOTPRINT::m_Value

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