| 
    KiCad PCB EDA Suite
    
   | 
 
Information which can be added in a gerber P&P file as attribute of a component. More...
#include <gbr_netlist_metadata.h>
Public Types | |
| enum | MOUNT_TYPE { MOUNT_TYPE_UNSPECIFIED , MOUNT_TYPE_SMD , MOUNT_TYPE_TH } | 
Public Member Functions | |
| GBR_CMP_PNP_METADATA () | |
| void | ClearData () | 
| wxString | FormatCmpPnPMetadata () | 
| One line by non empty data the orientation (.CRot) and mount type (.CMnt) are always generated.   | |
Public Attributes | |
| double | m_Orientation | 
| wxString | m_Manufacturer | 
| wxString | m_MPN | 
| wxString | m_Package | 
| wxString | m_Footprint | 
| wxString | m_LibraryName | 
| wxString | m_LibraryDescr | 
| wxString | m_Value | 
| MOUNT_TYPE | m_MountType | 
Information which can be added in a gerber P&P file as attribute of a component.
This is only applicable to objects having the TA.AperFunction attribute "ComponentMain" There are specific attributes defined attached to the component by the TO command TO.CRot,<angle> The rotation angle of the component. The rotation angle is consistent with the one for graphics objects. Positive rotation is counter- clockwise as viewed from the top side, even if the component is on the board side. The base orientation of component - no rotation - on the top side is as in IPC-7351. Components on the bottom side are of course mirrored. The base orientation on the bottom side is the one on the top side mirrored around the X axis.
TO.CMfr,<string> Manufacturer TO.CMPN,<string> Manufacturer part number TO.Cpkg,<string> Package, as per IPC-7351 TO.CVal,<string> Value, a string. E.g. 220nF TO.CMnt,<string> Mount type: (SMD|TH|Other) TO.CFtp,<string> Footprint name, a string. E.g. LQFP-100_14x14mm_P0.5mm This is the footprint name coming from the CAD tool libraries. TO.CPgN,<string> Package name, like the JEDEC JEP95 standard. TO.CPgD,<string> Package description. TO.CHgt,<string> Height, a decimal, in the unit of the file. TO.CLbN,<string> Library name. TO.CLbD,<string> Library description. TO.Sup,<SN>,<SPN> SN is a field with the supplier name. SPN is a field with the supplier part name.
Definition at line 57 of file gbr_netlist_metadata.h.
| Enumerator | |
|---|---|
| MOUNT_TYPE_UNSPECIFIED | |
| MOUNT_TYPE_SMD | |
| MOUNT_TYPE_TH | |
Definition at line 60 of file gbr_netlist_metadata.h.
      
  | 
  inline | 
Definition at line 67 of file gbr_netlist_metadata.h.
References m_MountType, m_Orientation, and MOUNT_TYPE_UNSPECIFIED.
| void GBR_CMP_PNP_METADATA::ClearData | ( | ) | 
Definition at line 757 of file gbr_metadata.cpp.
References m_Manufacturer, m_MountType, m_MPN, m_Orientation, m_Package, m_Value, and MOUNT_TYPE_UNSPECIFIED.
| wxString GBR_CMP_PNP_METADATA::FormatCmpPnPMetadata | ( | ) | 
One line by non empty data the orientation (.CRot) and mount type (.CMnt) are always generated.
Definition at line 769 of file gbr_metadata.cpp.
References m_Footprint, m_LibraryDescr, m_LibraryName, m_Manufacturer, m_MountType, m_MPN, m_Orientation, m_Package, m_Value, and text.
Referenced by PLACEFILE_GERBER_WRITER::CreatePlaceFile().
| wxString GBR_CMP_PNP_METADATA::m_Footprint | 
Definition at line 87 of file gbr_netlist_metadata.h.
Referenced by PLACEFILE_GERBER_WRITER::CreatePlaceFile(), and FormatCmpPnPMetadata().
| wxString GBR_CMP_PNP_METADATA::m_LibraryDescr | 
Definition at line 89 of file gbr_netlist_metadata.h.
Referenced by FormatCmpPnPMetadata().
| wxString GBR_CMP_PNP_METADATA::m_LibraryName | 
Definition at line 88 of file gbr_netlist_metadata.h.
Referenced by PLACEFILE_GERBER_WRITER::CreatePlaceFile(), and FormatCmpPnPMetadata().
| wxString GBR_CMP_PNP_METADATA::m_Manufacturer | 
Definition at line 84 of file gbr_netlist_metadata.h.
Referenced by ClearData(), and FormatCmpPnPMetadata().
| MOUNT_TYPE GBR_CMP_PNP_METADATA::m_MountType | 
Definition at line 91 of file gbr_netlist_metadata.h.
Referenced by ClearData(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), FormatCmpPnPMetadata(), and GBR_CMP_PNP_METADATA().
| wxString GBR_CMP_PNP_METADATA::m_MPN | 
Definition at line 85 of file gbr_netlist_metadata.h.
Referenced by ClearData(), and FormatCmpPnPMetadata().
| double GBR_CMP_PNP_METADATA::m_Orientation | 
Definition at line 83 of file gbr_netlist_metadata.h.
Referenced by ClearData(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), FormatCmpPnPMetadata(), and GBR_CMP_PNP_METADATA().
| wxString GBR_CMP_PNP_METADATA::m_Package | 
Definition at line 86 of file gbr_netlist_metadata.h.
Referenced by ClearData(), and FormatCmpPnPMetadata().
| wxString GBR_CMP_PNP_METADATA::m_Value | 
Definition at line 90 of file gbr_netlist_metadata.h.
Referenced by ClearData(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), and FormatCmpPnPMetadata().