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

#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. More...
 

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

Static Public Attributes

static constexpr EAGLE_UNIT ECOORD_UNIT = EU_NM
 

Detailed Description

Definition at line 389 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 391 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ ECOORD() [1/3]

ECOORD::ECOORD ( )
inline

Definition at line 405 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 410 of file eagle_parser.h.

◆ ECOORD() [3/3]

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

Definition at line 189 of file eagle_parser.cpp.

References ConvertToNm(), and value.

Member Function Documentation

◆ ConvertToNm()

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

Definition at line 235 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 440 of file eagle_parser.h.

References ECOORD(), ECOORD_UNIT, and value.

◆ operator-()

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

Definition at line 445 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 450 of file eagle_parser.h.

References value.

◆ To100NanoMeters()

int ECOORD::To100NanoMeters ( ) const
inline

Definition at line 422 of file eagle_parser.h.

References value.

Referenced by ToSchUnits().

◆ ToMils()

int ECOORD::ToMils ( ) const
inline

Definition at line 417 of file eagle_parser.h.

References value.

◆ ToMm()

float ECOORD::ToMm ( ) const
inline

Definition at line 432 of file eagle_parser.h.

References value.

◆ ToNanoMeters()

int ECOORD::ToNanoMeters ( ) const
inline

Definition at line 427 of file eagle_parser.h.

References value.

Referenced by ToPcbUnits().

◆ ToPcbUnits()

◆ ToSchUnits()

Member Data Documentation

◆ ECOORD_UNIT

constexpr EAGLE_UNIT ECOORD::ECOORD_UNIT = EU_NM
staticconstexpr

Definition at line 403 of file eagle_parser.h.

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

◆ value

long long int ECOORD::value

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