KiCad PCB EDA Suite
No Matches
export_d356.cpp File Reference

Export IPC-D-356 test format. More...

#include <confirm.h>
#include <gestfich.h>
#include <kiface_base.h>
#include <pcb_edit_frame.h>
#include <trigo.h>
#include <build_version.h>
#include <macros.h>
#include <wildcards_and_files_ext.h>
#include <locale_io.h>
#include <board.h>
#include <board_design_settings.h>
#include <footprint.h>
#include <pad.h>
#include <pcb_track.h>
#include <vector>
#include <cctype>
#include <math/util.h>
#include <export_d356.h>
#include <wx/filedlg.h>

Go to the source code of this file.


static int compute_pad_access_code (BOARD *aPcb, LSET aLayerMask)
static int iu_to_d356 (int iu, int clamp)
static void build_pad_testpoints (BOARD *aPcb, std::vector< D356_RECORD > &aRecords)
static int via_access_code (BOARD *aPcb, int top_layer, int bottom_layer)
static void build_via_testpoints (BOARD *aPcb, std::vector< D356_RECORD > &aRecords)
static const wxString intern_new_d356_netname (const wxString &aNetname, std::map< wxString, wxString > &aMap, std::set< wxString > &aSet)

Detailed Description

Export IPC-D-356 test format.

Definition in file export_d356.cpp.

Function Documentation

◆ build_pad_testpoints()

◆ build_via_testpoints()

◆ compute_pad_access_code()

static int compute_pad_access_code ( BOARD aPcb,
LSET  aLayerMask 

Definition at line 53 of file export_d356.cpp.

References LSET::AllCuMask(), B_Cu, F_Cu, BOARD::GetCopperLayerCount(), and In1_Cu.

Referenced by build_pad_testpoints().

◆ intern_new_d356_netname()

static const wxString intern_new_d356_netname ( const wxString &  aNetname,
std::map< wxString, wxString > &  aMap,
std::set< wxString > &  aSet 

Definition at line 216 of file export_d356.cpp.

Referenced by IPC356D_WRITER::write_D356_records().

◆ iu_to_d356()

static int iu_to_d356 ( int  iu,
int  clamp 

Definition at line 86 of file export_d356.cpp.

References EDA_IU_SCALE::IU_PER_MILS, KiROUND(), and pcbIUScale.

Referenced by IPC356D_WRITER::write_D356_records().

◆ via_access_code()

static int via_access_code ( BOARD aPcb,
int  top_layer,
int  bottom_layer 

Definition at line 152 of file export_d356.cpp.

References B_Cu, F_Cu, and BOARD::GetCopperLayerCount().

Referenced by build_via_testpoints().