|
KiCad PCB EDA Suite
|
#include <core/map_helpers.h>#include <sch_io/ltspice/sch_io_ltspice_parser.h>#include <sch_io/ltspice/ltspice_schematic.h>#include <schematic.h>#include <sch_collectors.h>#include <sch_line.h>#include <sch_label.h>#include <sch_text.h>#include <sch_edit_frame.h>#include <sch_shape.h>#include <sch_sheet.h>#include <sch_sheet_pin.h>#include <sch_bus_entry.h>#include <string_utils.h>#include <trigo.h>#include <wx/buffer.h>#include <wx/ffile.h>#include <wx/filename.h>#include <wx/strconv.h>#include <wx/tokenzr.h>#include <wx/txtstrm.h>#include <wx/wfstream.h>#include <sim/spice_value.h>#include <fmt/format.h>#include <cmath>#include <set>Go to the source code of this file.
Functions | |
| static std::vector< wxString > | tokenizeQuoted (const wxString &aText) |
| Parses the datastructure produced by the LTSPICE_SCHEMATIC into a KiCad schematic file. | |
| static wxString | convertLtSpiceTextToNgspice (const wxString &aText) |
| static bool | convertPwlFileToNgspice (const wxFileName &aSourceFile, const wxFileName &aDestFile) |
| LABEL_FLAG_SHAPE | getLabelShape (LTSPICE_SCHEMATIC::POLARITY aPolarity) |
| SPIN_STYLE | autoLabelOrientation (SCH_SCREEN *aScreen, VECTOR2I aLabelPos, SPIN_STYLE aDefaultSpin) |
| SPIN_STYLE autoLabelOrientation | ( | SCH_SCREEN * | aScreen, |
| VECTOR2I | aLabelPos, | ||
| SPIN_STYLE | aDefaultSpin ) |
Definition at line 769 of file sch_io_ltspice_parser.cpp.
References SPIN_STYLE::BOTTOM, SCH_COLLECTOR::Collect(), BOX2< Vec >::GetEnd(), BOX2< Vec >::GetHeight(), BOX2< Vec >::GetOrigin(), BOX2< Vec >::GetWidth(), SPIN_STYLE::LEFT, BOX2< Vec >::Merge(), pin, PIN_DOWN, PIN_LEFT, PIN_RIGHT, PIN_UP, SPIN_STYLE::RIGHT, SCH_LINE_T, SCH_PIN_T, SCH_SHEET_PIN_T, and SPIN_STYLE::UP.
Referenced by SCH_IO_LTSPICE_PARSER::AddAscIopin(), SCH_IO_LTSPICE_PARSER::CreatePowerSymbol(), and SCH_IO_LTSPICE_PARSER::CreateSCH_LABEL().
|
static |
Definition at line 92 of file sch_io_ltspice_parser.cpp.
References SPICE_VALUE::ToDouble(), and SPICE_VALUE::ToSpiceString().
Referenced by SCH_IO_LTSPICE_PARSER::CreateKicadSCH_ITEMs().
|
static |
Definition at line 165 of file sch_io_ltspice_parser.cpp.
References SPICE_VALUE::ToDouble().
Referenced by SCH_IO_LTSPICE_PARSER::AddSymFields().
| LABEL_FLAG_SHAPE getLabelShape | ( | LTSPICE_SCHEMATIC::POLARITY | aPolarity | ) |
Definition at line 756 of file sch_io_ltspice_parser.cpp.
References LTSPICE_SCHEMATIC::BIDIR, L_BIDI, L_INPUT, L_OUTPUT, L_UNSPECIFIED, LTSPICE_SCHEMATIC::OUTPUT, and LTSPICE_SCHEMATIC::PIN_INPUT.
Referenced by SCH_IO_LTSPICE_PARSER::AddAscIopin().
|
static |
Parses the datastructure produced by the LTSPICE_SCHEMATIC into a KiCad schematic file.
Definition at line 58 of file sch_io_ltspice_parser.cpp.
Referenced by SCH_IO_LTSPICE_PARSER::AddSymFields().