|
KiCad PCB EDA Suite
|
#include <easyeda_parser_base.h>
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_CHAIN > | ParseLineChains (const wxString &aData, int aMaxError, bool aForceClosed) |
Static Public Member Functions | |
| static double | Convert (const wxString &aValue) |
Protected Attributes | |
| VECTOR2D | m_relOrigin |
Definition at line 34 of file easyeda_parser_base.h.
|
static |
Definition at line 33 of file easyeda_parser_base.cpp.
References _, and THROW_IO_ERROR.
Referenced by ConvertSize(), PCB_IO_EASYEDA::FootprintLoad(), loadSymbol(), ParseLineChains(), SCH_EASYEDA_PARSER::ParseSchematic(), SCH_EASYEDA_PARSER::ParseSymbolShapes(), PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer(), RelPosX(), RelPosY(), and ScaleSize().
|
inline |
Definition at line 39 of file easyeda_parser_base.h.
References Convert(), and ScaleSize().
Referenced by PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer().
| std::vector< SHAPE_LINE_CHAIN > EASYEDA_PARSER_BASE::ParseLineChains | ( | const wxString & | aData, |
| int | aMaxError, | ||
| bool | aForceClosed ) |
Definition at line 111 of file easyeda_parser_base.cpp.
References chain, SHAPE_ARC::ConstructFromStartEndCenter(), Convert(), cw, delta, end, BEZIER_POLY::GetPoly(), RelPos(), result, unknown, and VECTOR2< T >::x.
Referenced by SCH_EASYEDA_PARSER::ParseSymbolShapes(), and PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer().
Definition at line 58 of file easyeda_parser_base.h.
References m_relOrigin, and ScalePos().
Referenced by ParseLineChains(), SCH_EASYEDA_PARSER::ParseSchematic(), and PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer().
| double EASYEDA_PARSER_BASE::RelPosX | ( | const wxString & | aValue | ) |
Definition at line 58 of file easyeda_parser_base.cpp.
| double EASYEDA_PARSER_BASE::RelPosX | ( | double | aValue | ) |
Definition at line 44 of file easyeda_parser_base.cpp.
References m_relOrigin, and ScaleSize().
Referenced by SCH_EASYEDA_PARSER::ParseSchematic(), PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer(), SCH_EASYEDA_PARSER::RelPosSym(), and RelPosX().
| double EASYEDA_PARSER_BASE::RelPosY | ( | const wxString & | aValue | ) |
Definition at line 64 of file easyeda_parser_base.cpp.
| double EASYEDA_PARSER_BASE::RelPosY | ( | double | aValue | ) |
Definition at line 51 of file easyeda_parser_base.cpp.
References m_relOrigin, and ScaleSize().
Referenced by SCH_EASYEDA_PARSER::ParseSchematic(), PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer(), SCH_EASYEDA_PARSER::RelPosSym(), and RelPosY().
|
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().
|
inline |
Definition at line 43 of file easyeda_parser_base.h.
References Convert(), and ScaleSize().
Referenced by ScaleSize().
|
pure virtual |
Implemented in PCB_IO_EASYEDA_PARSER, and SCH_EASYEDA_PARSER.
Referenced by ConvertSize(), RelPosX(), RelPosY(), and ScalePos().
| void EASYEDA_PARSER_BASE::TransformTextToBaseline | ( | EDA_TEXT * | textItem, |
| const wxString & | baselineAlign ) |
Definition at line 70 of file easyeda_parser_base.cpp.
References EDA_TEXT::GetTextAngle(), EDA_TEXT::GetTextPos(), EDA_TEXT::GetTextSize(), RotatePoint(), EDA_TEXT::SetTextPos(), and VECTOR2< T >::y.
Referenced by SCH_EASYEDA_PARSER::ParseSchematic(), SCH_EASYEDA_PARSER::ParseSymbolShapes(), and PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer().
|
protected |
Definition at line 68 of file easyeda_parser_base.h.
Referenced by SCH_EASYEDA_PARSER::MakePowerSymbol(), PCB_IO_EASYEDA_PARSER::ParseBoard(), PCB_IO_EASYEDA_PARSER::ParseFootprint(), SCH_EASYEDA_PARSER::ParseSchematic(), SCH_EASYEDA_PARSER::ParseSymbol(), PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer(), RelPos(), RelPosX(), and RelPosY().