27#ifndef LTSPICE_SCH_PARSER_H
28#define LTSPICE_SCH_PARSER_H
104 const std::vector<wxString>& aUniqueAscNames, std::map<wxString, SCH_SCREEN*>& aMapOfScreens,
119 const std::vector<wxString>& aUniqueAscNames,
120 std::map<wxString, SCH_SCREEN*>& aMapOfScreens );
197 std::vector<LTSPICE_SCHEMATIC::WIRE>& aWires );
A mix-in class (via multiple inheritance) that handles texts such as labels, parts,...
Define a library symbol object.
JUSTIFICATION
Defines in what ways the PIN or TEXT can be justified.
int ToLtSpiceCoords(int aCoordinate)
Method converts kicad coordinate(i.e scale) to ltspice coordinates.
void CreateKicadSymbolsAndSubsheets(LTSPICE_SCHEMATIC::LT_ASC &aAscfile, SCH_SCREEN *aScreen, const std::vector< wxString > &aUniqueAscNames, std::map< wxString, SCH_SCREEN * > &aMapOfScreens)
Create KiCad symbol objects and subsheets from ASC data.
void setTextJustification(EDA_TEXT *aText, LTSPICE_SCHEMATIC::JUSTIFICATION aJustification)
SCH_TEXT * CreateSCH_TEXT(const VECTOR2I &aOffset, const wxString &aText, int aFontSize, LTSPICE_SCHEMATIC::JUSTIFICATION aJustification)
Create schematic text.
STROKE_PARAMS getStroke(const LTSPICE_SCHEMATIC::LINEWIDTH &aLineWidth, const LTSPICE_SCHEMATIC::LINESTYLE &aLineStyle)
void CreateSymArc(const LTSPICE_SCHEMATIC::LT_SYMBOL &aLTSymbol, int aIndex, SCH_SHAPE *aArc)
Create a symbol arc from LTspice symbol data.
int getLineWidth(const LTSPICE_SCHEMATIC::LINEWIDTH &aLineWidth)
void AddAscLine(const LTSPICE_SCHEMATIC::LT_ASC &aAscfile, int aIndex, SCH_SCREEN *aScreen)
Create a schematic line from ASC data.
void CreateKicadSCH_ITEMs(LTSPICE_SCHEMATIC::LT_ASC &aAscfile, SCH_SCREEN *aScreen)
Create schematic items from ASC data.
VECTOR2I RotateMirror(const LTSPICE_SCHEMATIC::LT_SYMBOL &aLTSymbol, const VECTOR2I &aPoint)
Rotate and mirror a point according to LTspice symbol flags.
void CreateSymText(const LTSPICE_SCHEMATIC::LT_SYMBOL &aLTSymbol, int aIndex, SCH_TEXT *aText)
Create a symbol text from LTspice symbol data.
void AddSymFields(const LTSPICE_SCHEMATIC::LT_SYMBOL &aLTSymbol, SCH_SYMBOL *aSymbol)
Create and configure symbol fields from LTspice symbol data.
SCH_LABEL_BASE * CreateSCH_LABEL(KICAD_T aType, const VECTOR2I &aOffset, const wxString &aValue, int aFontSize, SCH_SCREEN *aScreen)
Create a schematic label.
void AssignSymOrientation(const LTSPICE_SCHEMATIC::LT_SYMBOL &aLTSymbol, SCH_SYMBOL *aSchSymbol)
Set KiCad symbol orientation based on LTspice symbol orientation.
void AddAscIopin(LTSPICE_SCHEMATIC::LT_ASC &aAscfile, int aIndex, SCH_SCREEN *aScreen)
Create a schematic I/O pin from ASC data.
void AddAscRect(const LTSPICE_SCHEMATIC::LT_ASC &aAscfile, int aIndex, SCH_SCREEN *aScreen)
Create a schematic rectangle from ASC data.
void AddAscArc(const LTSPICE_SCHEMATIC::LT_ASC &aAscfile, int aIndex, SCH_SCREEN *aScreen)
Create a schematic arc from ASC data.
SCH_SYMBOL * CreatePowerSymbol(const VECTOR2I &aOffset, const wxString &aValue, int aFontSize, SCH_SCREEN *aScreen, std::vector< LTSPICE_SCHEMATIC::WIRE > &aWires)
Create a power symbol for the schematic.
LINE_STYLE getLineStyle(const LTSPICE_SCHEMATIC::LINESTYLE &aLineStyle)
void CreateSymRect(const LTSPICE_SCHEMATIC::LT_SYMBOL &aLTSymbol, int aIndex, SCH_SHAPE *aRectangle)
Create a symbol rectangle from LTspice symbol data.
void AddAscBusEntry(LTSPICE_SCHEMATIC::LT_ASC &aAscfile, int aIndex, SCH_SCREEN *aScreen)
Create a schematic bus tap from ASC data.
LTSPICE_SCHEMATIC * m_lt_schematic
void CreateSymCircle(const LTSPICE_SCHEMATIC::LT_SYMBOL &aLTSymbol, int aIndex, SCH_SHAPE *aCircle)
Create a symbol circle from LTspice symbol data.
void RotateMirrorItem(const LTSPICE_SCHEMATIC::LT_SYMBOL &aLTSymbol, SCH_ITEM *aItem)
Rotate and mirror an item according to LTspice symbol flags.
static constexpr const wxChar * LT_INSTNAME_FIELD
int ToKicadCoords(int aCoordinate)
Method converts ltspice coordinate(i.e scale) to kicad coordinates.
void CreateSymPin(const LTSPICE_SCHEMATIC::LT_SYMBOL &aLTSymbol, int aIndex, SCH_PIN *aPin)
Create a symbol pin from LTspice symbol data.
void CreateSymLine(LIB_SYMBOL *aSymbol, const LTSPICE_SCHEMATIC::LT_SYMBOL &aLTSymbol, int aIndex, SCH_SHAPE *aShape)
Create a library-symbol line from LTspice symbol data.
SCH_IO_LTSPICE_PARSER(LTSPICE_SCHEMATIC *aLTSchematic)
void AddAscCircle(const LTSPICE_SCHEMATIC::LT_ASC &aAscfile, int aIndex, SCH_SCREEN *aScreen)
Create a schematic circle from ASC data.
void CreateItems(LTSPICE_SCHEMATIC::LT_ASC &aAscfile, SCH_SCREEN *aScreen, const std::vector< wxString > &aUniqueAscNames, std::map< wxString, SCH_SCREEN * > &aMapOfScreens, VECTOR2I aOriginOffset)
Create KiCad items based on LTspice data.
SCH_SHEET * AddAscSymAsSubsheet(LTSPICE_SCHEMATIC::LT_ASC &aAscfile, const LTSPICE_SCHEMATIC::LT_SYMBOL &aLTSymbol, SCH_SCREEN *aScreen)
VECTOR2I ToKicadFontSize(int aLTFontSize)
void CreateSymbol(LTSPICE_SCHEMATIC::LT_SYMBOL &aLtSymbol, LIB_SYMBOL *aLibSymbol)
Create a library symbol from LTspice symbol data.
void AddAscWire(const LTSPICE_SCHEMATIC::LT_ASC &aAscfile, int aIndex, SCH_SCREEN *aScreen, SCH_LAYER_ID aLayer)
Create a schematic wire from ASC data.
Base class for any item which can be embedded within the SCHEMATIC container class,...
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
Simple container to manage line stroke parameters.
SCH_LAYER_ID
Eeschema drawing layers.
LINE_STYLE
Dashed line types.
A struct to hold .asc file definition.
A struct to hold SYMBOL definition.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
VECTOR2< int32_t > VECTOR2I