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

 PCBEXPR_UNIT_RESOLVER (bool aImpliedDegrees=false)
 
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
 

Private Attributes

bool m_impliedDegrees
 

Detailed Description

Definition at line 284 of file pcbexpr_evaluator.h.

Constructor & Destructor Documentation

◆ PCBEXPR_UNIT_RESOLVER()

PCBEXPR_UNIT_RESOLVER::PCBEXPR_UNIT_RESOLVER ( bool aImpliedDegrees = false)
inline

Definition at line 287 of file pcbexpr_evaluator.h.

References m_impliedDegrees.

Member Function Documentation

◆ Convert()

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

Reimplemented from LIBEVAL::UNIT_RESOLVER.

Definition at line 883 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 855 of file pcbexpr_evaluator.cpp.

◆ GetSupportedUnitsMessage()

wxString PCBEXPR_UNIT_RESOLVER::GetSupportedUnitsMessage ( ) const
overridevirtual

Reimplemented from LIBEVAL::UNIT_RESOLVER.

Definition at line 865 of file pcbexpr_evaluator.cpp.

References _, and m_impliedDegrees.

◆ GetSupportedUnitsTypes()

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

Reimplemented from LIBEVAL::UNIT_RESOLVER.

Definition at line 874 of file pcbexpr_evaluator.cpp.

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

Member Data Documentation

◆ m_impliedDegrees

bool PCBEXPR_UNIT_RESOLVER::m_impliedDegrees
private

Definition at line 302 of file pcbexpr_evaluator.h.

Referenced by GetSupportedUnitsMessage(), and PCBEXPR_UNIT_RESOLVER().


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