KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_io_eagle.cpp File Reference
#include <cerrno>
#include <wx/string.h>
#include <wx/xml/xml.h>
#include <wx/filename.h>
#include <wx/log.h>
#include <wx/wfstream.h>
#include <wx/txtstrm.h>
#include <wx/window.h>
#include <convert_basic_shapes_to_polygon.h>
#include <font/fontconfig.h>
#include <geometry/geometry_utils.h>
#include <string_utils.h>
#include <locale_io.h>
#include <trigo.h>
#include <progress_reporter.h>
#include <project.h>
#include <board.h>
#include <board_design_settings.h>
#include <footprint.h>
#include <pad.h>
#include <pcb_track.h>
#include <pcb_shape.h>
#include <zone.h>
#include <padstack.h>
#include <pcb_text.h>
#include <pcb_dimension.h>
#include <reporter.h>
#include <pcb_io/pcb_io.h>
#include <pcb_io/eagle/pcb_io_eagle.h>

Go to the source code of this file.

Macros

#define DIMENSION_PRECISION   DIM_PRECISION::X_XX
 

Functions

static int parseEagle (const wxString &aDistance)
 Parse an eagle distance which is either mm, or mils if there is "mil" suffix.
 
template<typename T >
static T eagleClamp (T aMin, T aValue, T aMax)
 
static wxString makeKey (const wxString &aFirst, const wxString &aSecond)
 Assemble a two part key as a simple concatenation of aFirst and aSecond parts, using a separator.
 

Macro Definition Documentation

◆ DIMENSION_PRECISION

#define DIMENSION_PRECISION   DIM_PRECISION::X_XX

Definition at line 652 of file pcb_io_eagle.cpp.

Function Documentation

◆ eagleClamp()

template<typename T >
static T eagleClamp ( aMin,
aValue,
aMax 
)
static

◆ makeKey()

static wxString makeKey ( const wxString &  aFirst,
const wxString &  aSecond 
)
static

Assemble a two part key as a simple concatenation of aFirst and aSecond parts, using a separator.

Definition at line 115 of file pcb_io_eagle.cpp.

Referenced by PCB_IO_EAGLE::loadElements(), PCB_IO_EAGLE::loadLibrary(), and PCB_IO_EAGLE::loadSignals().

◆ parseEagle()

static int parseEagle ( const wxString &  aDistance)
static

Parse an eagle distance which is either mm, or mils if there is "mil" suffix.

Return is in BIU.

Definition at line 91 of file pcb_io_eagle.cpp.

References ECOORD::EU_MIL, ECOORD::EU_MM, and ECOORD::ToPcbUnits().

Referenced by ERULES::parse().