KiCad PCB EDA Suite
place_file_exporter.cpp File Reference
#include <string_utils.h>
#include <macros.h>
#include <locale_io.h>
#include <board_design_settings.h>
#include <build_version.h>
#include <exporters/place_file_exporter.h>
#include <pad.h>
#include <wx/dirdlg.h>

Go to the source code of this file.

Classes

class  LIST_MOD
 

Enumerations

enum  SELECT_SIDE { PCB_NO_SIDE , PCB_BACK_SIDE , PCB_FRONT_SIDE , PCB_BOTH_SIDES }
 

Functions

static bool sortFPlist (const LIST_MOD &ref, const LIST_MOD &tst)
 

Variables

static const double conv_unit_inch = 0.001 / pcbIUScale.IU_PER_MILS
 
static const char unit_text_inch [] = "## Unit = inches, Angle = deg.\n"
 
static const double conv_unit_mm = 1.0 / pcbIUScale.IU_PER_MM
 
static const char unit_text_mm [] = "## Unit = mm, Angle = deg.\n"
 

Enumeration Type Documentation

◆ SELECT_SIDE

Enumerator
PCB_NO_SIDE 
PCB_BACK_SIDE 
PCB_FRONT_SIDE 
PCB_BOTH_SIDES 

Definition at line 68 of file place_file_exporter.cpp.

69{
74};
@ PCB_BACK_SIDE
@ PCB_NO_SIDE
@ PCB_BOTH_SIDES
@ PCB_FRONT_SIDE

Function Documentation

◆ sortFPlist()

static bool sortFPlist ( const LIST_MOD ref,
const LIST_MOD tst 
)
static

Definition at line 59 of file place_file_exporter.cpp.

60{
61 if( ref.m_Layer == tst.m_Layer )
62 return StrNumCmp( ref.m_Reference, tst.m_Reference ) < 0;
63
64 return ref.m_Layer > tst.m_Layer;
65}
wxString m_Reference
int StrNumCmp(const wxString &aString1, const wxString &aString2, bool aIgnoreCase)
Compare two strings with alphanumerical content.

References LIST_MOD::m_Layer, LIST_MOD::m_Reference, and StrNumCmp().

Referenced by PLACE_FILE_EXPORTER::GenPositionData().

Variable Documentation

◆ conv_unit_inch

const double conv_unit_inch = 0.001 / pcbIUScale.IU_PER_MILS
static

◆ conv_unit_mm

const double conv_unit_mm = 1.0 / pcbIUScale.IU_PER_MM
static

◆ unit_text_inch

const char unit_text_inch[] = "## Unit = inches, Angle = deg.\n"
static

◆ unit_text_mm

const char unit_text_mm[] = "## Unit = mm, Angle = deg.\n"
static