KiCad PCB EDA Suite
GBR_NETLIST_METADATA Class Reference

#include <gbr_netlist_metadata.h>

Public Types

enum  GBR_NETINFO_TYPE { GBR_NETINFO_UNSPECIFIED, GBR_NETINFO_PAD = 1, GBR_NETINFO_NET = 2, GBR_NETINFO_CMP = 4 }
 

Public Member Functions

 GBR_NETLIST_METADATA ()
 
void ClearAttribute (const wxString *aName)
 remove the net attribute specified by aName If aName == NULL or empty, remove all attributes More...
 

Public Attributes

int m_NetAttribType
 the type of net info (used to define the gerber string to create) More...
 
bool m_NotInNet
 true if a pad of a footprint cannot be connected (for instance a mechanical NPTH, ot a not named pad) in this case the pad net name is empty in gerber file More...
 
wxString m_Padname
 for a flashed pad: the pad name ((TO.P attribute) More...
 
wxString m_Cmpref
 the component reference parent of the data More...
 
wxString m_Netname
 for items associated to a net: the netname More...
 

Detailed Description

Definition at line 40 of file gbr_netlist_metadata.h.

Member Enumeration Documentation

Enumerator
GBR_NETINFO_UNSPECIFIED 

idle command (no command)

GBR_NETINFO_PAD 

print info associated to a flashed pad (TO.P attribute)

GBR_NETINFO_NET 

print info associated to a net (TO.N attribute)

GBR_NETINFO_CMP 

print info associated to a component (TO.C attribute)

Definition at line 46 of file gbr_netlist_metadata.h.

47  {
49  GBR_NETINFO_PAD = 1,
50  GBR_NETINFO_NET = 2,
51  GBR_NETINFO_CMP = 4
52  };
print info associated to a component (TO.C attribute)
print info associated to a flashed pad (TO.P attribute)
print info associated to a net (TO.N attribute)

Constructor & Destructor Documentation

GBR_NETLIST_METADATA::GBR_NETLIST_METADATA ( )
inline

Definition at line 64 of file gbr_netlist_metadata.h.

65  {
66  }
bool m_NotInNet
true if a pad of a footprint cannot be connected (for instance a mechanical NPTH, ot a not named pad)...
int m_NetAttribType
the type of net info (used to define the gerber string to create)

Member Function Documentation

void GBR_NETLIST_METADATA::ClearAttribute ( const wxString *  aName)
inline

remove the net attribute specified by aName If aName == NULL or empty, remove all attributes

Parameters
aNameis the name (.CN, .P .N or .C) of the attribute to remove

Definition at line 73 of file gbr_netlist_metadata.h.

References GBR_NETINFO_CMP, GBR_NETINFO_NET, GBR_NETINFO_PAD, and GBR_NETINFO_UNSPECIFIED.

Referenced by GERBER_PLOTTER::FlashPadCustom(), GERBER_PLOTTER::FlashPadOval(), GERBER_PLOTTER::FlashPadRoundRect(), GERBER_PLOTTER::FlashPadTrapez(), and GERBER_FILE_IMAGE::RemoveAttribute().

74  {
76  {
77  m_Padname.clear();
78  m_Cmpref.clear();
79  m_Netname.clear();
80  return;
81  }
82 
83  if( !aName || aName->IsEmpty() || *aName == ".CN" )
84  {
86  m_Padname.clear();
87  m_Cmpref.clear();
88  m_Netname.clear();
89  return;
90  }
91 
92  if( *aName == ".C" )
93  {
95  m_Cmpref.clear();
96  return;
97  }
98 
99  if( *aName == ".N" )
100  {
102  m_Netname.clear();
103  return;
104  }
105 
106  if( *aName == ".P" )
107  {
109  m_Cmpref.clear();
110  return;
111  }
112  }
print info associated to a component (TO.C attribute)
wxString m_Cmpref
the component reference parent of the data
wxString m_Padname
for a flashed pad: the pad name ((TO.P attribute)
wxString m_Netname
for items associated to a net: the netname
print info associated to a flashed pad (TO.P attribute)
print info associated to a net (TO.N attribute)
int m_NetAttribType
the type of net info (used to define the gerber string to create)

Member Data Documentation

int GBR_NETLIST_METADATA::m_NetAttribType
bool GBR_NETLIST_METADATA::m_NotInNet

true if a pad of a footprint cannot be connected (for instance a mechanical NPTH, ot a not named pad) in this case the pad net name is empty in gerber file

Definition at line 57 of file gbr_netlist_metadata.h.

Referenced by FormatNetAttribute(), BRDITEMS_PLOTTER::PlotPad(), and PlotStandardLayer().

wxString GBR_NETLIST_METADATA::m_Padname

for a flashed pad: the pad name ((TO.P attribute)

Definition at line 60 of file gbr_netlist_metadata.h.

Referenced by GERBER_FILE_IMAGE::ExecuteRS274XCommand(), FormatNetAttribute(), GERBER_DRAW_ITEM::GetMsgPanelInfo(), and GBR_METADATA::SetPadName().


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