KiCad PCB EDA Suite
|
#include <eagle_parser.h>
Public Types | |
enum | EAGLE_UNIT { EU_NM , EU_MM , EU_INCH , EU_MIL } |
Public Member Functions | |
ECOORD () | |
ECOORD (int aValue, enum EAGLE_UNIT aUnit) | |
ECOORD (const wxString &aValue, enum EAGLE_UNIT aUnit) | |
int | ToMils () const |
int | To100NanoMeters () const |
int | ToNanoMeters () const |
float | ToMm () const |
int | ToSchUnits () const |
int | ToPcbUnits () const |
ECOORD | operator+ (const ECOORD &aOther) const |
ECOORD | operator- (const ECOORD &aOther) const |
bool | operator== (const ECOORD &aOther) const |
Converts a size expressed in a certain unit to nanometers. | |
void | Report (const wxString &aMsg, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) |
void | AdvanceProgressPhase () |
Static Public Member Functions | |
static long long int | ConvertToNm (int aValue, enum EAGLE_UNIT aUnit) |
Public Attributes | |
long long int | value |
Unit used for the value field. | |
IO_BASE * | io |
Static Public Attributes | |
static constexpr EAGLE_UNIT | ECOORD_UNIT = EU_NM |
Definition at line 440 of file eagle_parser.h.
enum ECOORD::EAGLE_UNIT |
Enumerator | |
---|---|
EU_NM | nanometers |
EU_MM | millimeters |
EU_INCH | inches |
EU_MIL | mils/thous |
Definition at line 442 of file eagle_parser.h.
|
inline |
Definition at line 456 of file eagle_parser.h.
Referenced by operator+(), and operator-().
|
inline |
Definition at line 461 of file eagle_parser.h.
ECOORD::ECOORD | ( | const wxString & | aValue, |
enum EAGLE_UNIT | aUnit | ||
) |
Definition at line 228 of file eagle_parser.cpp.
References ConvertToNm(), and value.
|
inherited |
Definition at line 503 of file eagle_parser.cpp.
References IO_BASE::AdvanceProgressPhase(), and EAGLE_BASE::io.
Referenced by EAGLE_DOC::EAGLE_DOC(), EAPPROVED::EAPPROVED(), EATTR::EATTR(), EBUS::EBUS(), ECIRCLE::ECIRCLE(), ECLASS::ECLASS(), ECOMPATIBILITY::ECOMPATIBILITY(), ECONNECT::ECONNECT(), EDESCRIPTION::EDESCRIPTION(), EDEVICE::EDEVICE(), EDEVICE_SET::EDEVICE_SET(), EDIMENSION::EDIMENSION(), EDRAWING::EDRAWING(), EFILTER::EFILTER(), EFRAME::EFRAME(), EGATE::EGATE(), EGRID::EGRID(), EHOLE::EHOLE(), EINSTANCE::EINSTANCE(), EJUNCTION::EJUNCTION(), ELABEL::ELABEL(), ELAYER::ELAYER(), ELIBRARY::ELIBRARY(), EMODEL::EMODEL(), EMODULE::EMODULE(), EMODULEINST::EMODULEINST(), ENET::ENET(), ENOTE::ENOTE(), EPACKAGE::EPACKAGE(), EPACKAGE3D::EPACKAGE3D(), EPACKAGE3DINST::EPACKAGE3DINST(), EPACKAGEINSTANCE::EPACKAGEINSTANCE(), EPAD::EPAD(), EPART::EPART(), EPIN::EPIN(), EPINMAP::EPINMAP(), EPINMAPPING::EPINMAPPING(), EPINREF::EPINREF(), EPLAIN::EPLAIN(), EPOLYGON::EPOLYGON(), EPORT::EPORT(), EPORTREF::EPORTREF(), EPROBE::EPROBE(), ERECT::ERECT(), ESCHEMATIC::ESCHEMATIC(), ESCHEMATIC_GROUP::ESCHEMATIC_GROUP(), ESEGMENT::ESEGMENT(), ESETTING::ESETTING(), ESHEET::ESHEET(), ESMD::ESMD(), ESPICE::ESPICE(), ESPLINE::ESPLINE(), ESYMBOL::ESYMBOL(), ETECHNOLOGY::ETECHNOLOGY(), ETEXT::ETEXT(), EVARIANT::EVARIANT(), EVARIANTDEF::EVARIANTDEF(), EVERTEX::EVERTEX(), EVIA::EVIA(), and EWIRE::EWIRE().
|
static |
Definition at line 491 of file eagle_parser.h.
References ECOORD(), ECOORD_UNIT, and value.
Definition at line 496 of file eagle_parser.h.
References ECOORD(), ECOORD_UNIT, and value.
|
inline |
Converts a size expressed in a certain unit to nanometers.
Definition at line 501 of file eagle_parser.h.
References value.
|
inherited |
Definition at line 494 of file eagle_parser.cpp.
References EAGLE_BASE::io, and IO_BASE::Report().
|
inline |
|
inline |
Definition at line 468 of file eagle_parser.h.
References value.
|
inline |
Definition at line 483 of file eagle_parser.h.
References value.
|
inline |
|
inline |
Definition at line 489 of file eagle_parser.h.
References ToNanoMeters().
Referenced by PCB_IO_EAGLE::kicad_fontsize(), PCB_IO_EAGLE::kicad_x(), PCB_IO_EAGLE::kicad_y(), PCB_IO_EAGLE::loadPlain(), PCB_IO_EAGLE::loadPolygon(), PCB_IO_EAGLE::loadSignals(), PCB_IO_EAGLE::packageCircle(), PCB_IO_EAGLE::packageHole(), PCB_IO_EAGLE::packagePad(), PCB_IO_EAGLE::packagePolygon(), PCB_IO_EAGLE::packageSMD(), PCB_IO_EAGLE::packageText(), PCB_IO_EAGLE::packageWire(), and parseEagle().
|
inline |
Definition at line 488 of file eagle_parser.h.
References To100NanoMeters().
Referenced by ETEXT::ConvertSize().
|
staticconstexpr |
Definition at line 454 of file eagle_parser.h.
Referenced by operator+(), and operator-().
|
inherited |
Definition at line 403 of file eagle_parser.h.
Referenced by EAGLE_BASE::AdvanceProgressPhase(), and EAGLE_BASE::Report().
long long int ECOORD::value |
Unit used for the value field.
Definition at line 451 of file eagle_parser.h.
Referenced by ECOORD(), operator+(), operator-(), operator==(), PCB_IO_EAGLE::packageHole(), PCB_IO_EAGLE::packagePad(), PCB_IO_EAGLE::packageSMD(), To100NanoMeters(), ToMils(), ToMm(), and ToNanoMeters().