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

#include <pcad_pcb.h>

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

Public Member Functions

 PCAD_PCB (BOARD *aBoard)
 
 ~PCAD_PCB ()
 
PCB_LAYER_ID GetKiCadLayer (int aPCadLayer) const override
 
LAYER_TYPE_T GetLayerType (int aPCadLayer) const override
 
wxString GetLayerNetNameRef (int aPCadLayer) const override
 
int GetNetCode (const wxString &aNetName) const override
 
void ParseBoard (wxStatusBar *aStatusBar, wxXmlDocument *aXmlDoc, const wxString &aActualConversion)
 
void AddToBoard (FOOTPRINT *aFootprint=nullptr) override
 
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
 
virtual void SetPosOffset (int aX_offs, int aY_offs)
 
PCB_LAYER_ID GetKiCadLayer () const
 

Public Attributes

PCAD_COMPONENTS_ARRAY m_PcbComponents
 
PCAD_NETS_ARRAY m_PcbNetlist
 
wxString m_DefaultMeasurementUnit
 
std::map< int, TLAYERm_LayersMap
 
int m_SizeX
 
int m_SizeY
 
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

XNODEFindCompDefName (XNODE *aNode, const wxString &aName) const
 
void SetTextProperty (XNODE *aNode, TTEXTVALUE *aTextValue, const wxString &aPatGraphRefName, const wxString &aXmlName, const wxString &aActualConversion)
 
void DoPCBComponents (XNODE *aNode, wxXmlDocument *aXmlDoc, const wxString &aActualConversion, wxStatusBar *aStatusBar)
 
void ConnectPinToNet (const wxString &aCr, const wxString &aPr, const wxString &aNetName)
 
int FindLayer (const wxString &aLayerName) const
 
void MapLayer (XNODE *aNode)
 
int FindOutlinePoint (const VERTICES_ARRAY *aOutline, wxRealPoint aPoint) const
 
double GetDistance (const wxRealPoint *aPoint1, const wxRealPoint *aPoint2) const
 
void GetBoardOutline (wxXmlDocument *aXmlDoc, const wxString &aActualConversion)
 
XNODEFindPatternMultilayerSection (XNODE *aNode, wxString *aPatGraphRefName)
 

Private Attributes

std::vector< std::pair< wxString, long > > m_layersStackup
 

Detailed Description

Definition at line 46 of file pcad_pcb.h.

Constructor & Destructor Documentation

◆ PCAD_PCB()

◆ ~PCAD_PCB()

PCAD2KICAD::PCAD_PCB::~PCAD_PCB ( )

Definition at line 105 of file pcad_pcb.cpp.

References m_PcbComponents, and m_PcbNetlist.

Member Function Documentation

◆ AddToBoard()

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

◆ ConnectPinToNet()

void PCAD2KICAD::PCAD_PCB::ConnectPinToNet ( const wxString &  aCr,
const wxString &  aPr,
const wxString &  aNetName 
)
private

◆ DoLayerContentsObjects()

◆ DoPCBComponents()

◆ FindCompDefName()

XNODE * PCAD2KICAD::PCAD_PCB::FindCompDefName ( XNODE aNode,
const wxString &  aName 
) const
private

Definition at line 138 of file pcad_pcb.cpp.

References PCAD2KICAD::FindNode(), and XNODE::GetNext().

Referenced by DoPCBComponents().

◆ FindLayer()

int PCAD2KICAD::PCAD_PCB::FindLayer ( const wxString &  aLayerName) const
private

Definition at line 452 of file pcad_pcb.cpp.

References m_layersStackup.

Referenced by MapLayer().

◆ FindModulePatternDefName()

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

◆ FindOutlinePoint()

int PCAD2KICAD::PCAD_PCB::FindOutlinePoint ( const VERTICES_ARRAY *  aOutline,
wxRealPoint  aPoint 
) const
private

Definition at line 559 of file pcad_pcb.cpp.

Referenced by GetBoardOutline().

◆ FindPatternMultilayerSection()

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

◆ Flip()

void PCAD2KICAD::PCAD_FOOTPRINT::Flip ( )
overridevirtualinherited

◆ GetBoardOutline()

void PCAD2KICAD::PCAD_PCB::GetBoardOutline ( wxXmlDocument *  aXmlDoc,
const wxString &  aActualConversion 
)
private

◆ GetDistance()

double PCAD2KICAD::PCAD_PCB::GetDistance ( const wxRealPoint *  aPoint1,
const wxRealPoint *  aPoint2 
) const
private

Definition at line 573 of file pcad_pcb.cpp.

Referenced by GetBoardOutline().

◆ GetKiCadLayer() [1/2]

◆ GetKiCadLayer() [2/2]

PCB_LAYER_ID PCAD2KICAD::PCAD_PCB::GetKiCadLayer ( int  aPCadLayer) const
overridevirtual

Implements PCAD2KICAD::PCAD_CALLBACKS.

Definition at line 43 of file pcad_pcb.cpp.

References _, m_LayersMap, and THROW_IO_ERROR.

◆ GetLayerNetNameRef()

wxString PCAD2KICAD::PCAD_PCB::GetLayerNetNameRef ( int  aPCadLayer) const
overridevirtual

Implements PCAD2KICAD::PCAD_CALLBACKS.

Definition at line 65 of file pcad_pcb.cpp.

References _, m_LayersMap, and THROW_IO_ERROR.

◆ GetLayerType()

LAYER_TYPE_T PCAD2KICAD::PCAD_PCB::GetLayerType ( int  aPCadLayer) const
overridevirtual

Implements PCAD2KICAD::PCAD_CALLBACKS.

Definition at line 54 of file pcad_pcb.cpp.

References _, m_LayersMap, and THROW_IO_ERROR.

◆ GetNetCode()

int PCAD2KICAD::PCAD_PCB::GetNetCode ( const wxString &  aNetName) const
overridevirtual

◆ MapLayer()

◆ Parse()

◆ ParseBoard()

◆ SetName()

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

◆ SetPosOffset()

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

◆ SetTextProperty()

void PCAD2KICAD::PCAD_PCB::SetTextProperty ( XNODE aNode,
TTEXTVALUE aTextValue,
const wxString &  aPatGraphRefName,
const wxString &  aXmlName,
const wxString &  aActualConversion 
)
private

Member Data Documentation

◆ m_board

◆ m_BoardOutline

VERTICES_ARRAY PCAD2KICAD::PCAD_FOOTPRINT::m_BoardOutline
inherited

◆ m_callbacks

◆ m_CompRef

wxString PCAD2KICAD::PCAD_PCB_COMPONENT::m_CompRef
inherited

◆ m_DefaultMeasurementUnit

wxString PCAD2KICAD::PCAD_PCB::m_DefaultMeasurementUnit

Definition at line 82 of file pcad_pcb.h.

Referenced by DoPCBComponents(), GetBoardOutline(), ParseBoard(), PCAD_PCB(), and SetTextProperty().

◆ m_FootprintItems

◆ m_KiCadLayer

◆ m_LayersMap

std::map<int, TLAYER> PCAD2KICAD::PCAD_PCB::m_LayersMap

Definition at line 83 of file pcad_pcb.h.

Referenced by GetKiCadLayer(), GetLayerNetNameRef(), GetLayerType(), MapLayer(), and PCAD_PCB().

◆ m_layersStackup

std::vector<std::pair<wxString, long> > PCAD2KICAD::PCAD_PCB::m_layersStackup
private

Definition at line 88 of file pcad_pcb.h.

Referenced by AddToBoard(), FindLayer(), and ParseBoard().

◆ m_Mirror

int PCAD2KICAD::PCAD_FOOTPRINT::m_Mirror
inherited

◆ m_Name

◆ m_Net

◆ m_NetCode

◆ m_ObjType

◆ m_PatGraphRefName

wxString PCAD2KICAD::PCAD_PCB_COMPONENT::m_PatGraphRefName
inherited

◆ m_PCadLayer

◆ m_PcbComponents

PCAD_COMPONENTS_ARRAY PCAD2KICAD::PCAD_PCB::m_PcbComponents

Definition at line 80 of file pcad_pcb.h.

Referenced by AddToBoard(), ConnectPinToNet(), DoPCBComponents(), ParseBoard(), and ~PCAD_PCB().

◆ m_PcbNetlist

PCAD_NETS_ARRAY PCAD2KICAD::PCAD_PCB::m_PcbNetlist

Definition at line 81 of file pcad_pcb.h.

Referenced by AddToBoard(), GetNetCode(), ParseBoard(), and ~PCAD_PCB().

◆ m_PositionX

◆ m_PositionY

◆ m_Rotation

◆ m_SizeX

int PCAD2KICAD::PCAD_PCB::m_SizeX

Definition at line 84 of file pcad_pcb.h.

Referenced by ParseBoard(), and PCAD_PCB().

◆ m_SizeY

int PCAD2KICAD::PCAD_PCB::m_SizeY

Definition at line 85 of file pcad_pcb.h.

Referenced by ParseBoard(), and PCAD_PCB().

◆ 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
inherited

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