KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_easyedapro_v3_parser.cpp File Reference
#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< TV3ScalePos (VECTOR2< T > aValue)
 
template<typename T>
static VECTOR2< TV3ScalePosSym (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
 

Function Documentation

◆ ApplyV3AttrToField()

◆ ApplyV3TextSizeIfDefined()

template<typename T>
static void ApplyV3TextSizeIfDefined ( T & aText,
const nlohmann::json & aInner )
static

◆ ConvertStrokeStyle()

static LINE_STYLE ConvertStrokeStyle ( const nlohmann::json & aStyle)
static

Definition at line 53 of file sch_easyedapro_v3_parser.cpp.

References DASH, DASHDOT, DOT, and SOLID.

◆ FlattenPoints()

static nlohmann::json FlattenPoints ( const nlohmann::json & aPoints)
static

◆ ResolveV3FootprintText()

static wxString ResolveV3FootprintText ( const wxString & aFootprintValue,
const nlohmann::json & aProject,
const wxString & aLibName )
static

◆ V3RowToSchAttr()

◆ V3ScalePos()

template<typename T>
static VECTOR2< T > V3ScalePos ( VECTOR2< T > aValue)
static

◆ V3ScalePosSym()

template<typename T>
static VECTOR2< T > V3ScalePosSym ( VECTOR2< T > aValue)
static

Variable Documentation

◆ c_v3TextSizeScale

double c_v3TextSizeScale = 0.62
staticconstexpr

Definition at line 124 of file sch_easyedapro_v3_parser.cpp.

Referenced by ApplyV3TextSizeIfDefined().