KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PCBEXPR_UNIT_RESOLVER Class Reference

#include <pcbexpr_evaluator.h>

Inheritance diagram for PCBEXPR_UNIT_RESOLVER:
LIBEVAL::UNIT_RESOLVER

Public Member Functions

const std::vector< wxString > & GetSupportedUnits () const override
 
const std::vector< EDA_UNITS > & GetSupportedUnitsTypes () const override
 
wxString GetSupportedUnitsMessage () const override
 
double Convert (const wxString &aString, int unitId) const override
 

Detailed Description

Definition at line 214 of file pcbexpr_evaluator.h.

Member Function Documentation

◆ Convert()

double PCBEXPR_UNIT_RESOLVER::Convert ( const wxString & aString,
int unitId ) const
overridevirtual

Reimplemented from LIBEVAL::UNIT_RESOLVER.

Definition at line 702 of file pcbexpr_evaluator.cpp.

References EDA_UNIT_UTILS::UI::DoubleValueFromString(), FS, INCH, MILS, MM, pcbIUScale, and PS.

◆ GetSupportedUnits()

const std::vector< wxString > & PCBEXPR_UNIT_RESOLVER::GetSupportedUnits ( ) const
overridevirtual

Reimplemented from LIBEVAL::UNIT_RESOLVER.

Definition at line 677 of file pcbexpr_evaluator.cpp.

◆ GetSupportedUnitsMessage()

wxString PCBEXPR_UNIT_RESOLVER::GetSupportedUnitsMessage ( ) const
overridevirtual

Reimplemented from LIBEVAL::UNIT_RESOLVER.

Definition at line 687 of file pcbexpr_evaluator.cpp.

References _.

◆ GetSupportedUnitsTypes()

const std::vector< EDA_UNITS > & PCBEXPR_UNIT_RESOLVER::GetSupportedUnitsTypes ( ) const
overridevirtual

Reimplemented from LIBEVAL::UNIT_RESOLVER.

Definition at line 693 of file pcbexpr_evaluator.cpp.

References DEGREES, FS, INCH, MILS, MM, and PS.


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