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

#include <sch_easyeda_parser.h>

Inheritance diagram for SCH_EASYEDA_PARSER:
EASYEDA_PARSER_BASE

Public Member Functions

 SCH_EASYEDA_PARSER (SCHEMATIC *aSchematic, PROGRESS_REPORTER *aProgressReporter)
 
 ~SCH_EASYEDA_PARSER ()
 
double ScaleSize (double aValue) override
 
template<typename T >
VECTOR2< T > RelPosSym (const VECTOR2< T > &aVec)
 
std::pair< LIB_SYMBOL *, bool > MakePowerSymbol (const wxString &aFlagTypename, const wxString &aNetname)
 
void ParseSymbolShapes (LIB_SYMBOL *aContainer, std::map< wxString, wxString > paramMap, wxArrayString aShapes)
 
LIB_SYMBOLParseSymbol (const VECTOR2D &aOrigin, std::map< wxString, wxString > aParams, wxArrayString aShapes)
 
void ParseSchematic (SCHEMATIC *aSchematic, SCH_SHEET *aRootSheet, const wxString &aFileName, wxArrayString aShapes)
 
double ConvertSize (const wxString &aValue)
 
double ScaleSize (const wxString &aValue)
 
template<typename T >
VECTOR2< T > ScalePos (const VECTOR2< T > &aValue)
 
double RelPosX (double aValue)
 
double RelPosX (const wxString &aValue)
 
double RelPosY (double aValue)
 
double RelPosY (const wxString &aValue)
 
template<typename T >
VECTOR2< T > RelPos (const VECTOR2< T > &aVec)
 
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
 

Private Attributes

SCHEMATICm_schematic
 

Detailed Description

Definition at line 46 of file sch_easyeda_parser.h.

Constructor & Destructor Documentation

◆ SCH_EASYEDA_PARSER()

SCH_EASYEDA_PARSER::SCH_EASYEDA_PARSER ( SCHEMATIC aSchematic,
PROGRESS_REPORTER aProgressReporter 
)
explicit

Definition at line 52 of file sch_easyeda_parser.cpp.

References m_schematic.

◆ ~SCH_EASYEDA_PARSER()

SCH_EASYEDA_PARSER::~SCH_EASYEDA_PARSER ( )

Definition at line 59 of file sch_easyeda_parser.cpp.

Member Function Documentation

◆ Convert()

◆ ConvertSize()

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

◆ MakePowerSymbol()

std::pair< LIB_SYMBOL *, bool > SCH_EASYEDA_PARSER::MakePowerSymbol ( const wxString &  aFlagTypename,
const wxString &  aNetname 
)

◆ ParseLineChains()

◆ ParseSchematic()

void SCH_EASYEDA_PARSER::ParseSchematic ( SCHEMATIC aSchematic,
SCH_SHEET aRootSheet,
const wxString &  aFileName,
wxArrayString  aShapes 
)

Definition at line 1069 of file sch_easyeda_parser.cpp.

References SEG::A, std::abs(), SHAPE_LINE_CHAIN::Append(), SCH_SCREEN::Append(), SEG::B, SPIN_STYLE::BOTTOM, SHAPE::Centre(), color, EASYEDA_PARSER_BASE::Convert(), ConvertStrokeStyle(), SHAPE_LINE_CHAIN::CSegment(), SCHEMATIC::CurrentSheet(), EasyEdaToKiCadLibID(), ENDPOINT, SCH_SYMBOL::GetBodyBoundingBox(), KIFONT::FONT::GetFont(), BOX2< Vec >::GetHeight(), EDA_TEXT::GetHorizJustify(), SVG_IMPORT_PLUGIN::GetImageHeight(), SVG_IMPORT_PLUGIN::GetImageWidth(), GRAPHICS_IMPORTER::GetItems(), BOX2< Vec >::GetLeft(), SCH_SCREEN::GetPageSettings(), LIB_SYMBOL::GetReferenceField(), SCH_SHEET::GetScreen(), EDA_TEXT::GetText(), BOX2< Vec >::GetTop(), EDA_TEXT::GetVertJustify(), BOX2< Vec >::GetWidth(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_H_ALIGN_RIGHT, GR_TEXT_V_ALIGN_BOTTOM, GR_TEXT_V_ALIGN_CENTER, GR_TEXT_V_ALIGN_TOP, SVG_IMPORT_PLUGIN::Import(), EDA_IU_SCALE::IUToMils(), EDA_IU_SCALE::IUTomm(), KiROUND(), LAYER_WIRE, SPIN_STYLE::LEFT, left, SVG_IMPORT_PLUGIN::LoadFromMemory(), EASYEDA_PARSER_BASE::m_relOrigin, MakePowerSymbol(), BOX2< Vec >::Merge(), EDA_IU_SCALE::MilsToIU(), SHAPE_LINE_CHAIN::Move(), ParseImageTransform(), ParseSymbol(), EASYEDA_PARSER_BASE::RelPos(), EASYEDA_PARSER_BASE::RelPosX(), EASYEDA_PARSER_BASE::RelPosY(), SPIN_STYLE::RIGHT, SPIN_STYLE::RotateCCW(), EASYEDA_PARSER_BASE::ScalePos(), ScaleSize(), SCH_LINE_T, SCH_SYMBOL_T, schIUScale, SHAPE_LINE_CHAIN::SegmentCount(), EDA_TEXT::SetFont(), PAGE_INFO::SetHeightMils(), EDA_TEXT::SetHorizJustify(), GRAPHICS_IMPORT_PLUGIN::SetImporter(), GRAPHICS_IMPORTER::SetImportOffsetMM(), SCH_SCREEN::SetPageSettings(), SCH_FIELD::SetPosition(), GRAPHICS_IMPORTER::SetScale(), EDA_TEXT::SetTextAngleDegrees(), EDA_TEXT::SetTextSize(), EDA_TEXT::SetVertJustify(), PAGE_INFO::SetWidthMils(), STARTPOINT, SYM_MIRROR_X, SYM_ROTATE_CLOCKWISE, SYM_ROTATE_COUNTERCLOCKWISE, TransformToBaseline(), UnescapeHTML(), SPIN_STYLE::UP, VALUE_FIELD, VECTOR2< T >::x, and VECTOR2< T >::y.

Referenced by LoadSchematic().

◆ ParseSymbol()

LIB_SYMBOL * SCH_EASYEDA_PARSER::ParseSymbol ( const VECTOR2D aOrigin,
std::map< wxString, wxString >  aParams,
wxArrayString  aShapes 
)

◆ ParseSymbolShapes()

◆ RelPos()

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

◆ RelPosSym()

template<typename T >
VECTOR2< T > SCH_EASYEDA_PARSER::RelPosSym ( const VECTOR2< T > &  aVec)
inline

◆ RelPosX() [1/2]

double EASYEDA_PARSER_BASE::RelPosX ( const wxString &  aValue)
inherited

◆ RelPosX() [2/2]

double EASYEDA_PARSER_BASE::RelPosX ( double  aValue)
inherited

◆ RelPosY() [1/2]

double EASYEDA_PARSER_BASE::RelPosY ( const wxString &  aValue)
inherited

◆ RelPosY() [2/2]

double EASYEDA_PARSER_BASE::RelPosY ( double  aValue)
inherited

◆ ScalePos()

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

◆ ScaleSize() [1/2]

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

◆ ScaleSize() [2/2]

double SCH_EASYEDA_PARSER::ScaleSize ( double  aValue)
inlineoverridevirtual

Implements EASYEDA_PARSER_BASE.

Definition at line 52 of file sch_easyeda_parser.h.

References KiROUND(), EDA_IU_SCALE::MilsToIU(), and schIUScale.

Referenced by ParseSchematic(), and ParseSymbolShapes().

Member Data Documentation

◆ m_relOrigin

◆ m_schematic

SCHEMATIC* SCH_EASYEDA_PARSER::m_schematic
private

Definition at line 76 of file sch_easyeda_parser.h.

Referenced by SCH_EASYEDA_PARSER().


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