|
KiCad PCB EDA Suite
|
#include "sch_easyedapro_v3_parser.h"#include <io/easyedapro/easyedapro_import_utils.h>#include <core/map_helpers.h>#include <schematic.h>#include <sch_sheet.h>#include <sch_line.h>#include <sch_bitmap.h>#include <sch_no_connect.h>#include <sch_label.h>#include <sch_junction.h>#include <sch_screen.h>#include <sch_symbol.h>#include <sch_shape.h>#include <string_utils.h>#include <bezier_curves.h>#include <wx/base64.h>#include <wx/log.h>#include <wx/mstream.h>#include <gfx_import_utils.h>#include <import_gfx/svg_import_plugin.h>#include <import_gfx/graphics_importer_lib_symbol.h>#include <import_gfx/graphics_importer_sch.h>Go to the source code of this file.
Functions | |
| static LINE_STYLE | ConvertStrokeStyle (const nlohmann::json &aStyle) |
| template<typename T> | |
| static VECTOR2< T > | V3ScalePos (VECTOR2< T > aValue) |
| template<typename T> | |
| static VECTOR2< T > | V3ScalePosSym (VECTOR2< T > aValue) |
| template<typename T> | |
| static void | ApplyV3TextSizeIfDefined (T &aText, const nlohmann::json &aInner) |
| static wxString | ResolveV3FootprintText (const wxString &aFootprintValue, const nlohmann::json &aProject, const wxString &aLibName) |
| static nlohmann::json | FlattenPoints (const nlohmann::json &aPoints) |
| static EASYEDAPRO::SCH_ATTR | V3RowToSchAttr (const V3_ROW &aRow) |
| static void | ApplyV3AttrToField (SCH_FIELD *aField, const EASYEDAPRO::SCH_ATTR &aAttr, bool aIsSym, bool aToSym, const std::map< wxString, wxString > &aDeviceAttributes, SCH_SYMBOL *aParent, const nlohmann::json &aInner) |
Variables | |
| static constexpr double | c_v3TextSizeScale = 0.62 |
|
static |
Definition at line 860 of file sch_easyedapro_v3_parser.cpp.
References EASYEDAPRO::AlignToFontH(), EASYEDAPRO::AlignToFontV(), ANGLE_HORIZONTAL, ANGLE_VERTICAL, ApplyV3TextSizeIfDefined(), KIFONT::FONT::GetFont(), 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, EASYEDAPRO::SCH_ATTR::keyVisible, EASYEDAPRO::SCH_ATTR::position, EASYEDAPRO::ResolveDeviceFieldVariables(), EASYEDAPRO::SCH_ATTR::rotation, SCH_SYMBOL_T, SCH_FIELD::SetNameShown(), SCH_FIELD::SetPosition(), SYM_MIRROR_X, SYM_MIRROR_Y, SYM_ORIENT_0, SYM_ORIENT_180, SYM_ORIENT_270, SYM_ORIENT_90, text, EASYEDAPRO::V3GetString(), V3ScalePos(), V3ScalePosSym(), EASYEDAPRO::SCH_ATTR::value, and EASYEDAPRO::SCH_ATTR::valVisible.
Referenced by SCH_EASYEDAPRO_V3_PARSER::ParseSchematic().
|
static |
Definition at line 128 of file sch_easyedapro_v3_parser.cpp.
References c_v3TextSizeScale, SCH_EASYEDAPRO_PARSER::ScaleSize(), T, EASYEDAPRO::V3GetDouble(), and EASYEDAPRO::V3IsNullOrMissing().
Referenced by ApplyV3AttrToField(), SCH_EASYEDAPRO_V3_PARSER::ApplyV3FontStyle(), SCH_EASYEDAPRO_V3_PARSER::ParseSchematic(), and SCH_EASYEDAPRO_V3_PARSER::ParseSymbol().
|
static |
|
static |
Definition at line 249 of file sch_easyedapro_v3_parser.cpp.
References result.
Referenced by SCH_EASYEDAPRO_V3_PARSER::ParseSchematic(), and SCH_EASYEDAPRO_V3_PARSER::ParseSymbol().
|
static |
Definition at line 145 of file sch_easyedapro_v3_parser.cpp.
References EASYEDAPRO::V3GetString(), and EASYEDAPRO::V3JsonToString().
Referenced by SCH_EASYEDAPRO_V3_PARSER::ParseSchematic().
|
static |
Definition at line 839 of file sch_easyedapro_v3_parser.cpp.
References EASYEDAPRO::SCH_ATTR::fontStyle, EASYEDAPRO::V3_ROW::inner, EASYEDAPRO::SCH_ATTR::key, EASYEDAPRO::SCH_ATTR::keyVisible, EASYEDAPRO::SCH_ATTR::position, EASYEDAPRO::SCH_ATTR::rotation, EASYEDAPRO::V3GetBool(), EASYEDAPRO::V3GetDouble(), EASYEDAPRO::V3GetString(), EASYEDAPRO::V3IsNullOrMissing(), EASYEDAPRO::V3JsonToString(), EASYEDAPRO::SCH_ATTR::value, and EASYEDAPRO::SCH_ATTR::valVisible.
Referenced by SCH_EASYEDAPRO_V3_PARSER::ParseSchematic().
Definition at line 109 of file sch_easyedapro_v3_parser.cpp.
References SCH_EASYEDAPRO_PARSER::ScaleSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by ApplyV3AttrToField(), and SCH_EASYEDAPRO_V3_PARSER::ParseSchematic().
Definition at line 117 of file sch_easyedapro_v3_parser.cpp.
References SCH_EASYEDAPRO_PARSER::ScaleSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by ApplyV3AttrToField(), and SCH_EASYEDAPRO_V3_PARSER::ParseSymbol().
|
staticconstexpr |
Definition at line 124 of file sch_easyedapro_v3_parser.cpp.
Referenced by ApplyV3TextSizeIfDefined().