KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ECOORD Struct Reference

#include <eagle_parser.h>

Inheritance diagram for ECOORD:
EAGLE_BASE

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_BASEio
 

Static Public Attributes

static constexpr EAGLE_UNIT ECOORD_UNIT = EU_NM
 

Detailed Description

Definition at line 440 of file eagle_parser.h.

Member Enumeration Documentation

◆ 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.

Constructor & Destructor Documentation

◆ ECOORD() [1/3]

ECOORD::ECOORD ( )
inline

Definition at line 456 of file eagle_parser.h.

Referenced by operator+(), and operator-().

◆ ECOORD() [2/3]

ECOORD::ECOORD ( int  aValue,
enum EAGLE_UNIT  aUnit 
)
inline

Definition at line 461 of file eagle_parser.h.

◆ ECOORD() [3/3]

ECOORD::ECOORD ( const wxString &  aValue,
enum EAGLE_UNIT  aUnit 
)

Definition at line 228 of file eagle_parser.cpp.

References ConvertToNm(), and value.

Member Function Documentation

◆ AdvanceProgressPhase()

◆ ConvertToNm()

long long int ECOORD::ConvertToNm ( int  aValue,
enum EAGLE_UNIT  aUnit 
)
static

Definition at line 274 of file eagle_parser.cpp.

References _, EU_INCH, EU_MIL, EU_MM, and EU_NM.

Referenced by ECOORD().

◆ operator+()

ECOORD ECOORD::operator+ ( const ECOORD aOther) const
inline

Definition at line 491 of file eagle_parser.h.

References ECOORD(), ECOORD_UNIT, and value.

◆ operator-()

ECOORD ECOORD::operator- ( const ECOORD aOther) const
inline

Definition at line 496 of file eagle_parser.h.

References ECOORD(), ECOORD_UNIT, and value.

◆ operator==()

bool ECOORD::operator== ( const ECOORD aOther) const
inline

Converts a size expressed in a certain unit to nanometers.

Definition at line 501 of file eagle_parser.h.

References value.

◆ Report()

void EAGLE_BASE::Report ( const wxString &  aMsg,
SEVERITY  aSeverity = RPT_SEVERITY_UNDEFINED 
)
inherited

Definition at line 494 of file eagle_parser.cpp.

References EAGLE_BASE::io, and IO_BASE::Report().

◆ To100NanoMeters()

int ECOORD::To100NanoMeters ( ) const
inline

Definition at line 473 of file eagle_parser.h.

References value.

Referenced by ToSchUnits().

◆ ToMils()

int ECOORD::ToMils ( ) const
inline

Definition at line 468 of file eagle_parser.h.

References value.

◆ ToMm()

float ECOORD::ToMm ( ) const
inline

Definition at line 483 of file eagle_parser.h.

References value.

◆ ToNanoMeters()

int ECOORD::ToNanoMeters ( ) const
inline

Definition at line 478 of file eagle_parser.h.

References value.

Referenced by ToPcbUnits().

◆ ToPcbUnits()

◆ ToSchUnits()

int ECOORD::ToSchUnits ( ) const
inline

Definition at line 488 of file eagle_parser.h.

References To100NanoMeters().

Referenced by ETEXT::ConvertSize().

Member Data Documentation

◆ ECOORD_UNIT

constexpr EAGLE_UNIT ECOORD::ECOORD_UNIT = EU_NM
staticconstexpr

Definition at line 454 of file eagle_parser.h.

Referenced by operator+(), and operator-().

◆ io

IO_BASE* EAGLE_BASE::io
inherited

Definition at line 403 of file eagle_parser.h.

Referenced by EAGLE_BASE::AdvanceProgressPhase(), and EAGLE_BASE::Report().

◆ value

long long int ECOORD::value

The documentation for this struct was generated from the following files: