KiCad PCB EDA Suite
Loading...
Searching...
No Matches
EASYEDA_PARSER_BASE Class Referenceabstract

#include <easyeda_parser_base.h>

Inheritance diagram for EASYEDA_PARSER_BASE:
PCB_IO_EASYEDA_PARSER SCH_EASYEDA_PARSER

Public Member Functions

double ConvertSize (const wxString &aValue)
 
virtual double ScaleSize (double aValue)=0
 
double ScaleSize (const wxString &aValue)
 
template<typename T >
VECTOR2< T > ScalePos (const VECTOR2< T > &aValue)
 
double RelPosX (double aValue)
 
double RelPosY (double aValue)
 
double RelPosX (const wxString &aValue)
 
double RelPosY (const wxString &aValue)
 
template<typename T >
VECTOR2< T > RelPos (const VECTOR2< T > &aVec)
 
void TransformTextToBaseline (EDA_TEXT *textItem, const wxString &baselineAlign)
 
std::vector< SHAPE_LINE_CHAINParseLineChains (const wxString &aData, int aArcMinSegLen, bool aForceClosed)
 

Static Public Member Functions

static double Convert (const wxString &aValue)
 

Protected Attributes

VECTOR2D m_relOrigin
 

Detailed Description

Definition at line 34 of file easyeda_parser_base.h.

Member Function Documentation

◆ Convert()

◆ ConvertSize()

double EASYEDA_PARSER_BASE::ConvertSize ( const wxString &  aValue)
inline

Definition at line 39 of file easyeda_parser_base.h.

References Convert(), and ScaleSize().

Referenced by PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer().

◆ ParseLineChains()

◆ RelPos()

template<typename T >
VECTOR2< T > EASYEDA_PARSER_BASE::RelPos ( const VECTOR2< T > &  aVec)
inline

◆ RelPosX() [1/2]

double EASYEDA_PARSER_BASE::RelPosX ( const wxString &  aValue)

Definition at line 58 of file easyeda_parser_base.cpp.

References Convert(), and RelPosX().

◆ RelPosX() [2/2]

double EASYEDA_PARSER_BASE::RelPosX ( double  aValue)

◆ RelPosY() [1/2]

double EASYEDA_PARSER_BASE::RelPosY ( const wxString &  aValue)

Definition at line 64 of file easyeda_parser_base.cpp.

References Convert(), and RelPosY().

◆ RelPosY() [2/2]

double EASYEDA_PARSER_BASE::RelPosY ( double  aValue)

◆ ScalePos()

template<typename T >
VECTOR2< T > EASYEDA_PARSER_BASE::ScalePos ( const VECTOR2< T > &  aValue)
inline

Definition at line 46 of file easyeda_parser_base.h.

References ScaleSize(), VECTOR2< T >::x, and VECTOR2< T >::y.

Referenced by SCH_EASYEDA_PARSER::ParseSchematic(), and RelPos().

◆ ScaleSize() [1/2]

double EASYEDA_PARSER_BASE::ScaleSize ( const wxString &  aValue)
inline

Definition at line 43 of file easyeda_parser_base.h.

References Convert(), and ScaleSize().

Referenced by ScaleSize().

◆ ScaleSize() [2/2]

virtual double EASYEDA_PARSER_BASE::ScaleSize ( double  aValue)
pure virtual

◆ TransformTextToBaseline()

void EASYEDA_PARSER_BASE::TransformTextToBaseline ( EDA_TEXT textItem,
const wxString &  baselineAlign 
)

Member Data Documentation

◆ m_relOrigin


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