KiCad PCB EDA Suite
PCAD2KICAD::PCB_PAD Class Reference

#include <pcb_pad.h>

Inheritance diagram for PCAD2KICAD::PCB_PAD:
PCAD2KICAD::PCB_COMPONENT PCAD2KICAD::PCB_VIA

Public Member Functions

 PCB_PAD (PCB_CALLBACKS *aCallbacks, BOARD *aBoard)
 
 ~PCB_PAD ()
 
virtual void Parse (XNODE *aNode, wxString aDefaultMeasurementUnit, wxString aActualConversion)
 
virtual void Flip () override
 
void AddToModule (MODULE *aModule, int aRotation, bool aEncapsulatedPad)
 
void AddToBoard () override
 
virtual void SetPosOffset (int aX_offs, int aY_offs)
 
virtual void AddToModule (MODULE *aModule)
 
PCB_LAYER_ID GetKiCadLayer ()
 
int GetNewTimestamp ()
 
int GetNetCode (wxString aNetName)
 

Public Attributes

int m_number
 
int m_hole
 
bool m_isHolePlated
 
PCB_PAD_SHAPES_ARRAY m_shapes
 
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
 

Private Attributes

wxString m_defaultPinDes
 

Detailed Description

Definition at line 40 of file pcb_pad.h.

Constructor & Destructor Documentation

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

Definition at line 38 of file pcb_pad.cpp.

References m_defaultPinDes, m_hole, m_isHolePlated, m_number, and PCAD2KICAD::PCB_COMPONENT::m_objType.

38  : PCB_COMPONENT( aCallbacks, aBoard )
39 {
40  m_objType = wxT( 'P' );
41  m_number = 0;
42  m_hole = 0;
43  m_isHolePlated = true;
44  m_defaultPinDes = wxEmptyString;
45 }
wxString m_defaultPinDes
Definition: pcb_pad.h:59
PCB_COMPONENT(PCB_CALLBACKS *aCallbacks, BOARD *aBoard)
PCAD2KICAD::PCB_PAD::~PCB_PAD ( )

Definition at line 48 of file pcb_pad.cpp.

References m_shapes.

49 {
50  int i;
51 
52  for( i = 0; i < (int) m_shapes.GetCount(); i++ )
53  {
54  delete m_shapes[i];
55  }
56 }
PCB_PAD_SHAPES_ARRAY m_shapes
Definition: pcb_pad.h:46

Member Function Documentation

void PCAD2KICAD::PCB_PAD::AddToBoard ( )
overridevirtual

Implements PCAD2KICAD::PCB_COMPONENT.

Definition at line 310 of file pcb_pad.cpp.

References BOARD::Add(), ADD_APPEND, AddToModule(), DLIST< T >::Append(), B_Cu, F_Cu, IsCopperLayer(), PCAD2KICAD::PCB_COMPONENT::m_board, m_defaultPinDes, PCAD2KICAD::PCB_PAD_SHAPE::m_height, m_hole, PCAD2KICAD::PCB_COMPONENT::m_KiCadLayer, PCAD2KICAD::PCB_COMPONENT::m_name, PCAD2KICAD::PCB_COMPONENT::m_netCode, PCAD2KICAD::PCB_COMPONENT::m_objType, PCAD2KICAD::PCB_COMPONENT::m_positionX, PCAD2KICAD::PCB_COMPONENT::m_positionY, m_shapes, BOARD::m_Track, PCAD2KICAD::PCB_PAD_SHAPE::m_width, VIA::SetDrill(), TRACK::SetEnd(), BOARD_ITEM::SetLayer(), VIA::SetLayerPair(), BOARD_CONNECTED_ITEM::SetNetCode(), MODULE::SetPosition(), VIA::SetPosition(), EDA_ITEM::SetTimeStamp(), VIA::SetViaType(), TRACK::SetWidth(), PCAD2KICAD::_TTEXTVALUE::text, VIA, and VIA_THROUGH.

311 {
312  PCB_PAD_SHAPE* padShape;
313  int i;
314  int width = 0;
315  int height = 0;
316 
317  if( m_objType == wxT( 'V' ) ) // via
318  {
319  // choose one of the shapes
320  for( i = 0; i < (int) m_shapes.GetCount(); i++ )
321  {
322  padShape = m_shapes[i];
323 
324  if( padShape->m_width > 0 && padShape->m_height > 0 )
325  {
326  if( padShape->m_KiCadLayer == F_Cu
327  || padShape->m_KiCadLayer == B_Cu )
328  {
329  width = padShape->m_width;
330  height = padShape->m_height;
331 
332  break;
333  }
334  }
335  }
336 
337  if( width == 0 || height == 0 )
338  return;
339 
340  if( IsCopperLayer( m_KiCadLayer ) )
341  {
342  VIA* via = new VIA( m_board );
343  m_board->m_Track.Append( via );
344 
345  via->SetTimeStamp( 0 );
346 
349 
350  via->SetWidth( height );
351  via->SetViaType( VIA_THROUGH );
352  via->SetLayerPair( F_Cu, B_Cu );
353  via->SetDrill( m_hole );
354 
355  via->SetLayer( m_KiCadLayer );
356  via->SetNetCode( m_netCode );
357  }
358  }
359  else // pad
360  {
361  MODULE* module = new MODULE( m_board );
362  m_board->Add( module, ADD_APPEND );
363 
365 
367  AddToModule( module, 0, true );
368 
369  }
370 }
void SetViaType(VIATYPE_T aViaType)
Definition: class_track.h:444
void SetPosition(const wxPoint &aPoint) override
Definition: class_track.h:416
virtual void SetLayer(PCB_LAYER_ID aLayer)
Function SetLayer sets the layer this item is on.
void SetEnd(const wxPoint &aEnd)
Definition: class_track.h:119
void Append(T *aNewElement)
Function Append adds aNewElement to the end of the list.
Definition: dlist.h:177
void SetWidth(int aWidth)
Definition: class_track.h:116
void AddToModule(MODULE *aModule, int aRotation, bool aEncapsulatedPad)
Definition: pcb_pad.cpp:187
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_INSERT) override
Adds an item to the container.
wxString m_defaultPinDes
Definition: pcb_pad.h:59
bool SetNetCode(int aNetCode, bool aNoAssert=false)
Function SetNetCode sets net using a net code.
void SetLayerPair(PCB_LAYER_ID aTopLayer, PCB_LAYER_ID aBottomLayer)
Function SetLayerPair For a via m_Layer contains the top layer, the other layer is in m_BottomLayer...
void SetPosition(const wxPoint &aPos) override
void SetDrill(int aDrill)
Function SetDrill sets the drill value for vias.
Definition: class_track.h:451
bool IsCopperLayer(LAYER_NUM aLayerId)
Function IsCopperLayer tests whether a layer is a copper layer.
PCB_PAD_SHAPES_ARRAY m_shapes
Definition: pcb_pad.h:46
DLIST< TRACK > m_Track
Definition: class_board.h:246
void SetTimeStamp(timestamp_t aNewTimeStamp)
Definition: base_struct.h:230
void PCAD2KICAD::PCB_PAD::AddToModule ( MODULE aModule,
int  aRotation,
bool  aEncapsulatedPad 
)

Definition at line 187 of file pcb_pad.cpp.

References BOARD::Add(), LSET::AllCuMask(), B_Cu, B_Mask, B_Paste, F_Cu, F_Mask, F_Paste, BOARD::FindNet(), NETINFO_ITEM::GetNet(), MODULE::GetOrientation(), MODULE::GetPosition(), PCAD2KICAD::PCB_COMPONENT::m_board, PCAD2KICAD::PCB_PAD_SHAPE::m_height, m_hole, m_isHolePlated, PCAD2KICAD::PCB_COMPONENT::m_KiCadLayer, PCAD2KICAD::PCB_COMPONENT::m_name, PCAD2KICAD::PCB_COMPONENT::m_net, PCAD2KICAD::PCB_COMPONENT::m_positionX, PCAD2KICAD::PCB_COMPONENT::m_positionY, PCAD2KICAD::PCB_COMPONENT::m_rotation, PCAD2KICAD::PCB_PAD_SHAPE::m_shape, m_shapes, PCAD2KICAD::PCB_PAD_SHAPE::m_width, PAD_ATTRIB_HOLE_NOT_PLATED, PAD_ATTRIB_SMD, PAD_ATTRIB_STANDARD, PAD_DRILL_SHAPE_CIRCLE, PAD_SHAPE_CIRCLE, PAD_SHAPE_OVAL, PAD_SHAPE_RECT, MODULE::PadsList(), DLIST< T >::PushBack(), RotatePoint(), D_PAD::SetAttribute(), D_PAD::SetDelta(), D_PAD::SetDrillShape(), D_PAD::SetDrillSize(), D_PAD::SetLayerSet(), D_PAD::SetLocalClearance(), D_PAD::SetLocalSolderMaskMargin(), D_PAD::SetName(), BOARD_CONNECTED_ITEM::SetNetCode(), D_PAD::SetOffset(), D_PAD::SetOrientation(), D_PAD::SetPos0(), D_PAD::SetPosition(), D_PAD::SetShape(), D_PAD::SetSize(), and PCAD2KICAD::_TTEXTVALUE::text.

Referenced by AddToBoard().

188 {
189  PCB_PAD_SHAPE* padShape;
190  wxString padShapeName = wxT( "Ellipse" );
191  PAD_ATTR_T padType;
192  int i;
193  int width = 0;
194  int height = 0;
195 
196  D_PAD* pad = new D_PAD( aModule );
197 
198  if( !m_isHolePlated && m_hole )
199  {
200  // mechanical hole
201  pad->SetShape( PAD_SHAPE_CIRCLE );
203 
205  pad->SetDrillSize( wxSize( m_hole, m_hole ) );
206  pad->SetSize( wxSize( m_hole, m_hole ) );
207 
208  // Mounting Hole: Solder Mask Margin from Top Layer Width size.
209  // Used the default zone clearance (simplify)
210  if( m_shapes.GetCount() && m_shapes[0]->m_shape == wxT( "MtHole" ) )
211  {
212  int sm_margin = ( m_shapes[0]->m_width - m_hole ) / 2;
213  pad->SetLocalSolderMaskMargin( sm_margin );
214  pad->SetLocalClearance( sm_margin + Millimeter2iu( 0.254 ) );
215  }
216 
217  pad->SetLayerSet( LSET::AllCuMask() | LSET( 2, B_Mask, F_Mask ) );
218  }
219  else
220  {
221  ( m_hole ) ? padType = PAD_ATTRIB_STANDARD : padType = PAD_ATTRIB_SMD;
222 
223  // form layer mask
224  for( i = 0; i < (int) m_shapes.GetCount(); i++ )
225  {
226  padShape = m_shapes[i];
227 
228  if( padShape->m_width > 0 && padShape->m_height > 0 )
229  {
230  if( padShape->m_KiCadLayer == F_Cu ||
231  padShape->m_KiCadLayer == B_Cu )
232  {
233  padShapeName = padShape->m_shape;
234  width = padShape->m_width;
235  height = padShape->m_height;
236 
237  // assume this is SMD pad
238  if( padShape->m_KiCadLayer == F_Cu )
239  pad->SetLayerSet( LSET( 3, F_Cu, F_Paste, F_Mask ) );
240  else
241  pad->SetLayerSet( LSET( 3, B_Cu, B_Paste, B_Mask ) );
242  break;
243  }
244  }
245  }
246 
247  if( width == 0 || height == 0 )
248  {
249  delete pad;
250  return;
251  }
252 
253  if( padType == PAD_ATTRIB_STANDARD )
254  // actually this is a thru-hole pad
255  pad->SetLayerSet( LSET::AllCuMask() | LSET( 2, B_Mask, F_Mask ) );
256 
257  pad->SetName( m_name.text );
258 
259  if( padShapeName == wxT( "Oval" )
260  || padShapeName == wxT( "Ellipse" )
261  || padShapeName == wxT( "MtHole" ) )
262  {
263  if( width != height )
264  pad->SetShape( PAD_SHAPE_OVAL );
265  else
266  pad->SetShape( PAD_SHAPE_CIRCLE );
267  }
268  else if( padShapeName == wxT( "Rect" )
269  || padShapeName == wxT( "RndRect" ) )
270  pad->SetShape( PAD_SHAPE_RECT );
271  else if( padShapeName == wxT( "Polygon" ) )
272  pad->SetShape( PAD_SHAPE_RECT ); // approximation
273 
274  pad->SetSize( wxSize( width, height ) );
275  pad->SetDelta( wxSize( 0, 0 ) );
276  pad->SetOrientation( m_rotation + aRotation );
277 
279  pad->SetOffset( wxPoint( 0, 0 ) );
280  pad->SetDrillSize( wxSize( m_hole, m_hole ) );
281 
282  pad->SetAttribute( padType );
283 
284  // Set the proper net code
285  NETINFO_ITEM* netinfo = m_board->FindNet( m_net );
286  if( netinfo == NULL ) // I believe this should not happen, but just in case
287  {
288  // It is a new net
289  netinfo = new NETINFO_ITEM( m_board, m_net );
290  m_board->Add( netinfo );
291  }
292 
293  pad->SetNetCode( netinfo->GetNet() );
294  }
295 
296  if( !aEncapsulatedPad )
297  {
298  // pad's "Position" is not relative to the module's,
299  // whereas Pos0 is relative to the module's but is the unrotated coordinate.
300  wxPoint padpos( m_positionX, m_positionY );
301  pad->SetPos0( padpos );
302  RotatePoint( &padpos, aModule->GetOrientation() );
303  pad->SetPosition( padpos + aModule->GetPosition() );
304  }
305 
306  aModule->PadsList().PushBack( pad );
307 }
static LSET AllCuMask(int aCuLayerCount=MAX_CU_LAYERS)
Function AllCuMask returns a mask holding the requested number of Cu PCB_LAYER_IDs.
Definition: lset.cpp:646
like PAD_STANDARD, but not plated mechanical use only, no connection allowed
Definition: pad_shapes.h:65
PAD_ATTR_T
Enum PAD_ATTR_T is the set of pad shapes, used with D_PAD::{Set,Get}Attribute() The double name is fo...
Definition: pad_shapes.h:58
const wxPoint & GetPosition() const override
Definition: class_module.h:175
Smd pad, appears on the solder paste layer (default)
Definition: pad_shapes.h:61
void SetPosition(const wxPoint &aPos) override
Definition: class_pad.h:219
void SetDrillSize(const wxSize &aSize)
Definition: class_pad.h:274
void RotatePoint(int *pX, int *pY, double angle)
Definition: trigo.cpp:317
void PushBack(T *aNewElement)
Function PushBack puts aNewElement at the end of the list sequence.
Definition: dlist.h:250
Class LSET is a set of PCB_LAYER_IDs.
void SetName(const wxString &aName)
Set the pad name (sometimes called pad number, although it can be an array reference like AA12)...
Definition: class_pad.h:182
double GetOrientation() const
Definition: class_module.h:180
void SetPos0(const wxPoint &aPos)
Definition: class_pad.h:262
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_INSERT) override
Adds an item to the container.
void SetSize(const wxSize &aSize)
Definition: class_pad.h:268
bool SetNetCode(int aNetCode, bool aNoAssert=false)
Function SetNetCode sets net using a net code.
int GetNet() const
Function GetNet.
void SetAttribute(PAD_ATTR_T aAttribute)
Definition: class_pad.cpp:392
void SetLocalClearance(int aClearance)
Definition: class_pad.h:407
void SetLayerSet(LSET aLayerMask)
Definition: class_pad.h:394
Class NETINFO_ITEM handles the data for a net.
Definition: class_netinfo.h:69
void SetDrillShape(PAD_DRILL_SHAPE_T aDrillShape)
Definition: class_pad.h:379
void SetLocalSolderMaskMargin(int aMargin)
Definition: class_pad.h:404
Usual pad.
Definition: pad_shapes.h:60
NETINFO_ITEM * FindNet(int aNetcode) const
Function FindNet searches for a net with the given netcode.
void SetShape(PAD_SHAPE_T aShape)
Definition: class_pad.h:217
void SetOrientation(double aAngle)
Function SetOrientation sets the rotation angle of the pad.
Definition: class_pad.cpp:401
PCB_PAD_SHAPES_ARRAY m_shapes
Definition: pcb_pad.h:46
DLIST< D_PAD > & PadsList()
Definition: class_module.h:154
void SetOffset(const wxPoint &aOffset)
Definition: class_pad.h:277
void SetDelta(const wxSize &aSize)
Definition: class_pad.h:271
void PCAD2KICAD::PCB_COMPONENT::AddToModule ( MODULE aModule)
virtualinherited
void PCAD2KICAD::PCB_PAD::Flip ( )
overridevirtual

Reimplemented from PCAD2KICAD::PCB_COMPONENT.

Definition at line 173 of file pcb_pad.cpp.

References PCAD2KICAD::PCB_COMPONENT::Flip(), FlipLayer(), PCAD2KICAD::PCB_COMPONENT::m_KiCadLayer, PCAD2KICAD::PCB_COMPONENT::m_objType, PCAD2KICAD::PCB_COMPONENT::m_rotation, and m_shapes.

174 {
175  int i;
176 
178 
179  if( m_objType == wxT( 'P' ) )
181 
182  for( i = 0; i < (int)m_shapes.GetCount(); i++ )
184 }
PCB_LAYER_ID FlipLayer(PCB_LAYER_ID aLayerId, int aCopperLayersCount)
Function FlippedLayerNumber.
Definition: lset.cpp:445
PCB_PAD_SHAPES_ARRAY m_shapes
Definition: pcb_pad.h:46
int PCAD2KICAD::PCB_COMPONENT::GetNetCode ( wxString  aNetName)
inlineinherited
int PCAD2KICAD::PCB_COMPONENT::GetNewTimestamp ( )
inlineinherited
void PCAD2KICAD::PCB_PAD::Parse ( XNODE aNode,
wxString  aDefaultMeasurementUnit,
wxString  aActualConversion 
)
virtual

Reimplemented in PCAD2KICAD::PCB_VIA.

Definition at line 59 of file pcb_pad.cpp.

References PCAD2KICAD::FindNode(), PCAD2KICAD::FindNodeGetContent(), Format(), PCAD2KICAD::PCB_COMPONENT::GetNetCode(), XNODE::GetNext(), XNODE::GetParent(), PCAD2KICAD::PCB_COMPONENT::m_board, PCAD2KICAD::PCB_COMPONENT::m_callbacks, m_defaultPinDes, m_hole, m_isHolePlated, PCAD2KICAD::PCB_COMPONENT::m_name, PCAD2KICAD::PCB_COMPONENT::m_net, PCAD2KICAD::PCB_COMPONENT::m_netCode, m_number, PCAD2KICAD::PCB_COMPONENT::m_positionX, PCAD2KICAD::PCB_COMPONENT::m_positionY, PCAD2KICAD::PCB_COMPONENT::m_rotation, m_shapes, PCAD2KICAD::PCB_PAD_SHAPE::Parse(), PCAD2KICAD::SetPosition(), PCAD2KICAD::SetWidth(), PCAD2KICAD::StrToInt1Units(), PCAD2KICAD::_TTEXTVALUE::text, and THROW_IO_ERROR.

Referenced by PCAD2KICAD::PCB::DoPCBComponents(), and PCAD2KICAD::PCB_MODULE::Parse().

61 {
62  XNODE* lNode, *cNode;
63  long num;
64  wxString propValue, str, emsg;
65  PCB_PAD_SHAPE* padShape;
66 
67  m_rotation = 0;
68  lNode = FindNode( aNode, wxT( "padNum" ) );
69 
70  if( lNode )
71  {
72  lNode->GetNodeContent().ToLong( &num );
73  m_number = (int) num;
74  }
75 
76  lNode = FindNode( aNode, wxT( "padStyleRef" ) );
77 
78  if( lNode )
79  {
80  lNode->GetAttribute( wxT( "Name" ), &propValue );
81  propValue.Trim( false );
82  m_name.text = propValue;
83  }
84 
85  lNode = FindNode( aNode, wxT( "pt" ) );
86 
87  if( lNode )
88  SetPosition( lNode->GetNodeContent(), aDefaultMeasurementUnit,
89  &m_positionX, &m_positionY, aActualConversion );
90 
91  lNode = FindNode( aNode, wxT( "rotation" ) );
92 
93  if( lNode )
94  {
95  str = lNode->GetNodeContent();
96  str.Trim( false );
97  m_rotation = StrToInt1Units( str );
98  }
99 
100  lNode = FindNode( aNode, wxT( "netNameRef" ) );
101 
102  if( lNode )
103  {
104  lNode->GetAttribute( wxT( "Name" ), &propValue );
105  propValue.Trim( false );
106  propValue.Trim( true );
107  m_net = propValue;
109  }
110 
111  lNode = FindNode( aNode, wxT( "defaultPinDes" ) );
112 
113  if( lNode )
114  {
115  lNode->GetAttribute( wxT( "Name" ), &propValue );
116  //propValue.Trim( false );
117  m_defaultPinDes = propValue;
118  }
119 
120  lNode = aNode;
121 
122  while( lNode && lNode->GetName() != wxT( "www.lura.sk" ) )
123  lNode = lNode->GetParent();
124 
125  lNode = FindNode( lNode, wxT( "library" ) );
126  if ( !lNode )
127  THROW_IO_ERROR( wxT( "Unable to find library section" ) );
128 
129  lNode = FindNode( lNode, wxT( "padStyleDef" ) );
130 
131  while( lNode )
132  {
133  lNode->GetAttribute( wxT( "Name" ), &propValue );
134 
135  if( propValue.IsSameAs( m_name.text, false) )
136  break;
137 
138  lNode = lNode->GetNext();
139  }
140 
141  if ( !lNode )
142  THROW_IO_ERROR( wxString::Format( wxT( "Unable to find padStyleDef " ) + m_name.text ) );
143 
144  cNode = FindNode( lNode, wxT( "holeDiam" ) );
145 
146  if( cNode )
147  SetWidth( cNode->GetNodeContent(), aDefaultMeasurementUnit, &m_hole, aActualConversion );
148 
149  if( FindNodeGetContent( lNode, wxT( "isHolePlated" ) ) == wxT( "False" ) )
150  m_isHolePlated = false;
151 
152  cNode = FindNode( lNode, wxT( "padShape" ) );
153 
154  while( cNode )
155  {
156  if( cNode->GetName() == wxT( "padShape" ) )
157  {
158  // we support only Pads on specific layers......
159  // we do not support pads on "Plane", "NonSignal" , "Signal" ... layerr
160  if( FindNode( cNode, wxT( "layerNumRef" ) ) )
161  {
162  padShape = new PCB_PAD_SHAPE( m_callbacks, m_board );
163  padShape->Parse( cNode, aDefaultMeasurementUnit, aActualConversion );
164  m_shapes.Add( padShape );
165  }
166  }
167 
168  cNode = cNode->GetNext();
169  }
170 }
void SetWidth(wxString aStr, wxString aDefaultMeasurementUnit, int *aWidth, wxString aActualConversion)
int StrToInt1Units(wxString aStr)
XNODE * GetParent() const
Definition: xnode.h:73
wxString FindNodeGetContent(XNODE *aChild, wxString aTag)
wxString m_defaultPinDes
Definition: pcb_pad.h:59
void SetPosition(wxString aStr, wxString aDefaultMeasurementUnit, int *aX, int *aY, wxString aActualConversion)
Class XNODE holds an XML or S-expression element.
Definition: xnode.h:43
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, CPTREE &aTree)
Function Format outputs a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:205
XNODE * FindNode(XNODE *aChild, wxString aTag)
PCB_CALLBACKS * m_callbacks
Definition: pcb_component.h:78
PCB_PAD_SHAPES_ARRAY m_shapes
Definition: pcb_pad.h:46
int GetNetCode(wxString aNetName)
Definition: pcb_component.h:75
XNODE * GetNext() const
Definition: xnode.h:68
#define THROW_IO_ERROR(msg)
Definition: ki_exception.h:38
void PCAD2KICAD::PCB_COMPONENT::SetPosOffset ( int  aX_offs,
int  aY_offs 
)
virtualinherited

Member Data Documentation

wxString PCAD2KICAD::PCB_COMPONENT::m_compRef
inherited
wxString PCAD2KICAD::PCB_PAD::m_defaultPinDes
private

Definition at line 59 of file pcb_pad.h.

Referenced by AddToBoard(), Parse(), and PCB_PAD().

int PCAD2KICAD::PCB_PAD::m_hole

Definition at line 44 of file pcb_pad.h.

Referenced by AddToBoard(), AddToModule(), PCAD2KICAD::PCB_VIA::Parse(), Parse(), and PCB_PAD().

bool PCAD2KICAD::PCB_PAD::m_isHolePlated

Definition at line 45 of file pcb_pad.h.

Referenced by AddToModule(), Parse(), and PCB_PAD().

int PCAD2KICAD::PCB_PAD::m_number

Definition at line 43 of file pcb_pad.h.

Referenced by Parse(), and PCB_PAD().

wxString PCAD2KICAD::PCB_COMPONENT::m_patGraphRefName
inherited
PCB_PAD_SHAPES_ARRAY PCAD2KICAD::PCB_PAD::m_shapes

Definition at line 46 of file pcb_pad.h.

Referenced by AddToBoard(), AddToModule(), Flip(), PCAD2KICAD::PCB_VIA::Parse(), Parse(), and ~PCB_PAD().

int PCAD2KICAD::PCB_COMPONENT::m_tag
inherited

Definition at line 51 of file pcb_component.h.

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


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