KiCad PCB EDA Suite
|
#include <cadstar_sch_archive_loader.h>
Public Types | |
enum class | TERMINAL_SHAPE_TYPE { ANNULUS , BOX , BULLET , CIRCLE , CROSS , DIAMOND , FINGER , OCTAGON , PLUS , POINTER , RECTANGLE , ROUNDED_RECT , SQUARE , STAR , TRIANGLE , UNDEFINED } |
typedef wxString | TERMINALCODE_ID |
typedef wxString | SYMBOL_ID |
typedef wxString | BUS_ID |
typedef wxString | BLOCK_ID |
typedef wxString | SHEET_NAME |
enum class | TEXT_FIELD_NAME { DESIGN_TITLE , SHORT_JOBNAME , LONG_JOBNAME , NUM_OF_SHEETS , SHEET_NUMBER , SHEET_NAME , VARIANT_NAME , VARIANT_DESCRIPTION , REG_USER , COMPANY_NAME , CURRENT_USER , DATE , TIME , MACHINE_NAME , FROM_FILE , DISTANCE , UNITS_SHORT , UNITS_ABBREV , UNITS_FULL , HYPERLINK , NONE } |
These are special fields in text objects enclosed between the tokens '<@' and '>' such as <@[FIELD_NAME][FIELD_VALUE]>. More... | |
enum class | RESOLUTION { HUNDREDTH_MICRON } |
enum class | LINESTYLE { SOLID , DASH , DASHDOT , DASHDOTDOT , DOT } |
enum class | VERTEX_TYPE { POINT , CLOCKWISE_ARC , CLOCKWISE_SEMICIRCLE , ANTICLOCKWISE_ARC , ANTICLOCKWISE_SEMICIRCLE } |
enum class | SHAPE_TYPE { OPENSHAPE , OUTLINE , SOLID , HATCHED } |
enum class | UNITS { DESIGN , THOU , INCH , MICROMETRE , MM , CENTIMETER , METER } |
enum class | ANGUNITS { DEGREES , RADIANS } |
enum class | GRID_TYPE { FRACTIONALGRID , STEPGRID } |
enum class | ALIGNMENT { NO_ALIGNMENT , TOPLEFT , TOPCENTER , TOPRIGHT , CENTERLEFT , CENTERCENTER , CENTERRIGHT , BOTTOMLEFT , BOTTOMCENTER , BOTTOMRIGHT } |
From CADSTAR Help: "Text Alignment enables you to define the position of an alignment origin for all text items in CADSTAR. More... | |
enum class | JUSTIFICATION { LEFT , CENTER , RIGHT } |
From CADSTAR Help: "Multi Line Text can also be justified as Left, Centre or Right. More... | |
enum class | READABILITY { BOTTOM_TO_TOP , TOP_TO_BOTTOM } |
Sets the readability direction of text. More... | |
enum class | ATTROWNER { ALL_ITEMS , AREA , BOARD , COMPONENT , CONNECTION , COPPER , DOCSYMBOL , FIGURE , NET , NETCLASS , PART , PART_DEFINITION , PIN , SIGNALREF , SYMBOL , SYMDEF , TEMPLATE , TESTPOINT } |
enum class | ATTRUSAGE { BOTH , COMPONENT , PART_DEFINITION , PART_LIBRARY , SYMBOL , UNDEFINED } |
enum class | SWAP_RULE { NO_SWAP , USE_SWAP_LAYER , BOTH } |
Corresponds to "Display when" Item property. More... | |
typedef wxString | LINECODE_ID |
typedef wxString | HATCHCODE_ID |
typedef wxString | ROUTECODE_ID |
typedef wxString | NETCLASS_ID |
typedef wxString | SPACING_CLASS_ID |
typedef wxString | TEXTCODE_ID |
typedef wxString | LAYER_ID |
ID of a Sheet (if schematic) or board Layer (if PCB) | |
typedef wxString | VARIANT_ID |
typedef wxString | ATTRIBUTE_ID |
typedef wxString | SYMDEF_ID |
typedef wxString | PART_ID |
typedef wxString | GATE_ID |
typedef long | TERMINAL_ID |
Terminal is the pin identifier in the schematic. | |
typedef long | PART_DEFINITION_PIN_ID |
Pin identifier in the part definition. | |
typedef long | PART_PIN_ID |
Pin identifier in the part. | |
typedef wxString | TEXT_ID |
typedef wxString | FIGURE_ID |
typedef wxString | GROUP_ID |
typedef wxString | REUSEBLOCK_ID |
typedef wxString | NET_ID |
typedef wxString | NETELEMENT_ID |
typedef wxString | DOCUMENTATION_SYMBOL_ID |
typedef wxString | COLOR_ID |
Public Member Functions | |
CADSTAR_SCH_ARCHIVE_LOADER (const wxString &aFilename, REPORTER *aReporter, PROGRESS_REPORTER *aProgressReporter) | |
~CADSTAR_SCH_ARCHIVE_LOADER () | |
std::vector< LIB_SYMBOL * > | LoadPartsLib (const wxString &aFilename) |
const std::vector< LIB_SYMBOL * > & | GetLoadedSymbols () const |
void | SetFpLibName (const wxString &aLibName) |
void | Load (SCHEMATIC *aSchematic, SCH_SHEET *aRootSheet) |
Loads a CADSTAR Schematic Archive file into the KiCad SCHEMATIC object given. | |
void | Parse () |
Parses the file. | |
Static Public Member Functions | |
static wxString | CreateLibName (const wxFileName &aFileName, const SCH_SHEET *aRootSheet) |
static TERMINAL_SHAPE_TYPE | ParseTermShapeType (const wxString &aShapeStr) |
static wxString | ParseTextFields (const wxString &aTextString, PARSER_CONTEXT *aParserContext) |
Replaces CADSTAR fields for the equivalent in KiCad and stores the field values in aParserContext. | |
static UNITS | ParseUnits (XNODE *aNode) |
static ANGUNITS | ParseAngunits (XNODE *aNode) |
static ALIGNMENT | ParseAlignment (XNODE *aNode) |
static JUSTIFICATION | ParseJustification (XNODE *aNode) |
static READABILITY | ParseReadability (XNODE *aNode) |
static SWAP_RULE | ParseSwapRule (XNODE *aNode) |
static void | InsertAttributeAtEnd (XNODE *aNode, wxString aValue) |
static XNODE * | LoadArchiveFile (const wxString &aFileName, const wxString &aFileTypeIdentifier, PROGRESS_REPORTER *aProgressReporter=nullptr) |
Reads a CADSTAR Archive file (S-parameter format) | |
static bool | IsValidAttribute (wxXmlAttribute *aAttribute) |
static wxString | GetXmlAttributeIDString (XNODE *aNode, unsigned int aID, bool aIsRequired=true) |
static long | GetXmlAttributeIDLong (XNODE *aNode, unsigned int aID, bool aIsRequired=true) |
static void | CheckNoChildNodes (XNODE *aNode) |
static void | CheckNoNextNodes (XNODE *aNode) |
static void | ParseChildEValue (XNODE *aNode, PARSER_CONTEXT *aContext, EVALUE &aValueToParse) |
static std::vector< POINT > | ParseAllChildPoints (XNODE *aNode, PARSER_CONTEXT *aContext, bool aTestAllChildNodes=false, int aExpectedNumPoints=UNDEFINED_VALUE) |
if no children are present, it just returns an empty vector (without throwing an exception) | |
static std::vector< VERTEX > | ParseAllChildVertices (XNODE *aNode, PARSER_CONTEXT *aContext, bool aTestAllChildNodes=false) |
if no children are present, it just returns an empty vector (without throwing an exception) | |
static std::vector< CUTOUT > | ParseAllChildCutouts (XNODE *aNode, PARSER_CONTEXT *aContext, bool aTestAllChildNodes=false) |
if no children are present, it just returns an empty vector (without throwing an exception) | |
static long | GetNumberOfChildNodes (XNODE *aNode) |
static long | GetNumberOfStepsForReporting (XNODE *aRootNode, std::vector< wxString > aSubNodeChildrenToCount) |
static wxString | EscapeFieldText (const wxString &aFieldText) |
static wxString | HandleTextOverbar (wxString aCadstarString) |
Convert a string with CADSTAR overbar characters to equivalent in KiCad. | |
static void | FixTextPositionNoAlignment (EDA_TEXT *aKiCadTextItem) |
Corrects the position of a text element that had NO_ALIGNMENT in CADSTAR. | |
static wxString | generateLibName (const wxString &aRefName, const wxString &aAlternateName) |
Public Attributes | |
const int | SMALL_LABEL_SIZE = KiROUND( (double) SCH_IU_PER_MM * 0.4 ) |
const double | ARC_ACCURACY = SCH_IU_PER_MM * 0.01 |
wxString | Filename |
HEADER | Header |
ASSIGNMENTS_SCM | Assignments |
LIBRARY_SCM | Library |
PARTS | Parts |
SHEETS | Sheets |
CADSTAR_SCHEMATIC | Schematic |
ATTRCOLORS | AttrColors |
PARTNAMECOL | SymbolPartNameColor |
int | KiCadUnitDivider |
Use this value to convert units in this CSA file to KiCad units. | |
Static Public Attributes | |
static const long | UNDEFINED_VALUE = -1 |
static const double | TXT_HEIGHT_RATIO = ( 24.0 - 5.0 ) / 24.0 |
CADSTAR fonts are drawn on a 24x24 integer matrix, where the each axis goes from 0 to 24. | |
static const std::map< TEXT_FIELD_NAME, wxString > | CADSTAR_TO_KICAD_FIELDS |
Map between CADSTAR fields and KiCad text variables. | |
static const long | FONT_NORMAL = 400 |
static const long | FONT_BOLD = 700 |
Protected Member Functions | |
void | checkPoint () |
Updates m_progressReporter or throws if user cancelled. | |
Protected Attributes | |
PARSER_CONTEXT | m_context |
PROGRESS_REPORTER * | m_progressReporter |
Private Types | |
typedef std::pair< BLOCK_ID, TERMINAL_ID > | BLOCK_PIN_ID |
typedef std::pair< PART_ID, GATE_ID > | PART_GATE_ID |
typedef std::map< TERMINAL_ID, wxString > | TERMINAL_TO_PINNUM_MAP |
Map between a terminal ID in a symbol definition to the pin number that should be imported into KiCad. | |
typedef std::map< wxString, TERMINAL_ID > | PINNUM_TO_TERMINAL_MAP |
Private Member Functions | |
void | loadSheets () |
void | loadHierarchicalSheetPins () |
void | loadPartsLibrary () |
void | loadSchematicSymbolInstances () |
void | loadBusses () |
void | loadNets () |
void | loadFigures () |
void | loadTexts () |
void | loadDocumentationSymbols () |
void | loadTextVariables () |
std::unique_ptr< LIB_SYMBOL > | loadLibPart (const CADSTAR_PART_ENTRY &aPart) |
void | copySymbolItems (std::unique_ptr< LIB_SYMBOL > &aSourceSym, std::unique_ptr< LIB_SYMBOL > &aDestSym, int aDestUnit, bool aOverrideFields=true) |
void | loadSheetAndChildSheets (const LAYER_ID &aCadstarSheetID, const VECTOR2I &aPosition, const VECTOR2I &aSheetSize, const SCH_SHEET_PATH &aParentSheet) |
void | loadChildSheets (const LAYER_ID &aCadstarSheetID, const SCH_SHEET_PATH &aSheet) |
std::vector< LAYER_ID > | findOrphanSheets () |
int | getSheetNumber (const LAYER_ID &aCadstarSheetID) |
void | loadItemOntoKiCadSheet (const LAYER_ID &aCadstarSheetID, SCH_ITEM *aItem) |
const LIB_SYMBOL * | loadSymdef (const SYMDEF_ID &aSymdefID) |
void | loadSymbolGateAndPartFields (const SYMDEF_ID &aSymdefID, const PART &aCadstarPart, const GATE_ID &aGateID, LIB_SYMBOL *aSymbol) |
void | setFootprintOnSymbol (std::unique_ptr< LIB_SYMBOL > &aKiCadSymbol, const wxString &aFootprintName, const wxString &aFootprintAlternate) |
void | loadLibrarySymbolShapeVertices (const std::vector< VERTEX > &aCadstarVertices, const VECTOR2I &aSymbolOrigin, LIB_SYMBOL *aSymbol, int aGateNumber, int aLineThickness) |
void | applyToLibraryFieldAttribute (const ATTRIBUTE_LOCATION &aCadstarAttrLoc, const VECTOR2I &aSymbolOrigin, SCH_FIELD *aKiCadField) |
SCH_SYMBOL * | loadSchematicSymbol (const SYMBOL &aCadstarSymbol, const LIB_SYMBOL &aKiCadPart, EDA_ANGLE &aComponentOrientation) |
void | loadSymbolFieldAttribute (const ATTRIBUTE_LOCATION &aCadstarAttrLoc, const EDA_ANGLE &aComponentOrientation, bool aIsMirrored, SCH_FIELD *aKiCadField) |
int | getComponentOrientation (const EDA_ANGLE &aOrientAngle, EDA_ANGLE &aReturnedOrientation) |
POINT | getLocationOfNetElement (const NET_SCH &aNet, const NETELEMENT_ID &aNetElementID) |
wxString | getNetName (const NET_SCH &aNet) |
void | loadShapeVertices (const std::vector< VERTEX > &aCadstarVertices, LINECODE_ID aCadstarLineCodeID, LAYER_ID aCadstarSheetID, SCH_LAYER_ID aKiCadSchLayerID, const VECTOR2I &aMoveVector={ 0, 0 }, const EDA_ANGLE &aRotation=ANGLE_0, const double &aScalingFactor=1.0, const VECTOR2I &aTransformCentre={ 0, 0 }, const bool &aMirrorInvert=false) |
void | loadFigure (const FIGURE &aCadstarFigure, const LAYER_ID &aCadstarSheetIDOverride, SCH_LAYER_ID aKiCadSchLayerID, const VECTOR2I &aMoveVector={ 0, 0 }, const EDA_ANGLE &aRotation=ANGLE_0, const double &aScalingFactor=1.0, const VECTOR2I &aTransformCentre={ 0, 0 }, const bool &aMirrorInvert=false) |
void | applyTextCodeIfExists (EDA_TEXT *aKiCadTextItem, const TEXTCODE_ID &aCadstarTextCodeID) |
void | applyTextSettings (EDA_TEXT *aKiCadTextItem, const TEXTCODE_ID &aCadstarTextCodeID, const ALIGNMENT &aCadstarAlignment, const JUSTIFICATION &aCadstarJustification, const long long aCadstarOrientAngle=0, bool aMirrored=false) |
SCH_TEXT * | getKiCadSchText (const TEXT &aCadstarTextElement) |
SYMDEF_ID | getSymDefFromName (const wxString &aSymdefName, const wxString &aSymDefAlternate) |
bool | isAttributeVisible (const ATTRIBUTE_ID &aCadstarAttributeID) |
int | getLineThickness (const LINECODE_ID &aCadstarLineCodeID) |
LINE_STYLE | getLineStyle (const LINECODE_ID &aCadstarLineCodeID) |
PART | getPart (const PART_ID &aCadstarPartID) |
ROUTECODE | getRouteCode (const ROUTECODE_ID &aCadstarRouteCodeID) |
TEXTCODE | getTextCode (const TEXTCODE_ID &aCadstarTextCodeID) |
int | getTextHeightFromTextCode (const TEXTCODE_ID &aCadstarTextCodeID) |
wxString | getAttributeName (const ATTRIBUTE_ID &aCadstarAttributeID) |
PART::DEFINITION::PIN | getPartDefinitionPin (const PART &aCadstarPart, const GATE_ID &aGateID, const TERMINAL_ID &aTerminalID) |
ELECTRICAL_PINTYPE | getKiCadPinType (const CADSTAR_PIN_TYPE &aPinType) |
int | getKiCadUnitNumberFromGate (const GATE_ID &aCadstarGateID) |
SPIN_STYLE | getSpinStyle (const long long &aCadstarOrientation, bool aMirror) |
SPIN_STYLE | getSpinStyle (const EDA_ANGLE &aOrientation) |
ALIGNMENT | mirrorX (const ALIGNMENT &aCadstarAlignment) |
ALIGNMENT | rotate180 (const ALIGNMENT &aCadstarAlignment) |
LIB_SYMBOL * | getScaledLibPart (const LIB_SYMBOL *aSymbol, long long aScalingFactorNumerator, long long aScalingFactorDenominator) |
void | fixUpLibraryPins (LIB_SYMBOL *aSymbolToFix, int aGateNumber) |
std::pair< VECTOR2I, VECTOR2I > | getFigureExtentsKiCad (const FIGURE &aCadstarFigure) |
VECTOR2I | getKiCadPoint (const VECTOR2I &aCadstarPoint) |
VECTOR2I | getKiCadLibraryPoint (const VECTOR2I &aCadstarPoint, const VECTOR2I &aCadstarCentre) |
VECTOR2I | applyTransform (const VECTOR2I &aPoint, const VECTOR2I &aMoveVector={ 0, 0 }, const EDA_ANGLE &aRotation=ANGLE_0, const double &aScalingFactor=1.0, const VECTOR2I &aTransformCentre={ 0, 0 }, const bool &aMirrorInvert=false) |
void | checkDesignLimits () |
int | getKiCadLength (long long aCadstarLength) |
EDA_ANGLE | getAngle (const long long &aCadstarAngle) |
long long | getCadstarAngle (const EDA_ANGLE &aAngle) |
double | getPolarRadius (const VECTOR2I &aPoint) |
Static Private Member Functions | |
static SCH_FIELD * | addNewFieldToSymbol (const wxString &aFieldName, std::unique_ptr< LIB_SYMBOL > &aKiCadSymbol) |
Private Attributes | |
REPORTER * | m_reporter |
SCHEMATIC * | m_schematic |
SCH_SHEET * | m_rootSheet |
wxFileName | m_fileName |
wxString | m_footprintLibName |
Name of the footprint library to prepend all footprints with. | |
VECTOR2I | m_designCenter |
Required for calculating the offset to apply to the Cadstar design so that it fits in the KiCad canvas. | |
std::map< LAYER_ID, SCH_SHEET * > | m_sheetMap |
Cadstar->KiCad Sheets. | |
std::map< BLOCK_PIN_ID, SCH_HIERLABEL * > | m_sheetPinMap |
Cadstar->KiCad Sheet Pins. | |
std::map< PART_ID, LIB_SYMBOL * > | m_partMap |
Cadstar->KiCad Parts. | |
std::map< SYMBOL_ID, SCH_SYMBOL * > | m_powerSymMap |
Cadstar->KiCad Power Symbols. | |
std::map< wxString, LIB_SYMBOL * > | m_powerSymLibMap |
NetName->KiCad Power Lib Symbol. | |
std::map< SYMBOL_ID, SCH_GLOBALLABEL * > | m_globalLabelsMap |
Cadstar->KiCad Global Labels. | |
std::map< BUS_ID, std::shared_ptr< BUS_ALIAS > > | m_busesMap |
Cadstar->KiCad Buses. | |
std::map< PART_ID, TERMINAL_TO_PINNUM_MAP > | m_pinNumsMap |
Cadstar Part->KiCad Pin number map. | |
std::map< SYMDEF_ID, PINNUM_TO_TERMINAL_MAP > | m_symDefTerminalsMap |
std::map< std::pair< wxString, wxString >, SYMDEF_ID > | m_SymDefNamesCache |
Cache storing symbol names and alternates to symdef IDs. | |
std::map< wxString, SYMDEF_ID > | m_DefaultSymDefNamesCache |
Cache storing symbol names (default alternate) to symdef IDs. | |
std::map< SYMDEF_ID, std::unique_ptr< const LIB_SYMBOL > > | m_symDefMap |
Cadstar->KiCad Lib Symbols loaded so far. | |
std::vector< LIB_SYMBOL * > | m_loadedSymbols |
Loaded symbols so far. | |
std::map< PART_GATE_ID, SYMDEF_ID > | m_partSymbolsMap |
Map holding the symbols loaded so far for a particular PART_ID and GATE_ID. | |
XNODE * | m_rootNode |
Definition at line 57 of file cadstar_sch_archive_loader.h.
|
inherited |
Definition at line 108 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 64 of file cadstar_sch_archive_parser.h.
|
private |
Definition at line 103 of file cadstar_sch_archive_loader.h.
|
inherited |
Definition at line 63 of file cadstar_sch_archive_parser.h.
|
inherited |
Definition at line 122 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 121 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 116 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 111 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 117 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 101 of file cadstar_archive_parser.h.
|
inherited |
ID of a Sheet (if schematic) or board Layer (if PCB)
Definition at line 106 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 100 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 119 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 103 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 120 of file cadstar_archive_parser.h.
|
inherited |
Pin identifier in the part definition.
Definition at line 113 of file cadstar_archive_parser.h.
|
private |
Definition at line 104 of file cadstar_sch_archive_loader.h.
|
inherited |
Definition at line 110 of file cadstar_archive_parser.h.
|
inherited |
Pin identifier in the part.
Definition at line 114 of file cadstar_archive_parser.h.
|
private |
Definition at line 112 of file cadstar_sch_archive_loader.h.
|
inherited |
Definition at line 118 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 102 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 65 of file cadstar_sch_archive_parser.h.
|
inherited |
Definition at line 104 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 62 of file cadstar_sch_archive_parser.h.
|
inherited |
Definition at line 109 of file cadstar_archive_parser.h.
|
inherited |
Terminal is the pin identifier in the schematic.
Definition at line 112 of file cadstar_archive_parser.h.
|
private |
Map between a terminal ID in a symbol definition to the pin number that should be imported into KiCad.
Definition at line 110 of file cadstar_sch_archive_loader.h.
|
inherited |
Definition at line 61 of file cadstar_sch_archive_parser.h.
|
inherited |
Definition at line 115 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 105 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 107 of file cadstar_archive_parser.h.
|
stronginherited |
From CADSTAR Help: "Text Alignment enables you to define the position of an alignment origin for all text items in CADSTAR.
The alignment origin is a point on or within the text boundary and defines how the text is displayed.
For example, with an alignment of bottom-right the origin will be positioned at the bottom right of the text boundary. This makes it easier to right-align several text items regardless of the length of text displayed.
Text Alignment applies to all CADSTAR text. [...]
Note: Unaligned text operates in the way CADSTAR text always has. In most cases this behaves as Bottom Left alignment, but there are a few exceptions, e.g. pin names. Also unaligned multiline text has an origin Bottom Left of the first line."
See also JUSTIFICATION
Enumerator | |
---|---|
NO_ALIGNMENT | NO_ALIGNMENT has different meaning depending on the object type. |
TOPLEFT | |
TOPCENTER | |
TOPRIGHT | |
CENTERLEFT | |
CENTERCENTER | |
CENTERRIGHT | |
BOTTOMLEFT | |
BOTTOMCENTER | |
BOTTOMRIGHT |
Definition at line 612 of file cadstar_archive_parser.h.
|
stronginherited |
Enumerator | |
---|---|
DEGREES | |
RADIANS |
Definition at line 519 of file cadstar_archive_parser.h.
|
stronginherited |
Definition at line 666 of file cadstar_archive_parser.h.
|
stronginherited |
Enumerator | |
---|---|
BOTH | From CADSTAR Help: Assigned to both Schematic symbols and PCB components, and displayed on Schematic and PCB designs. |
COMPONENT | From CADSTAR Help: Assigned to PCB components and displayed on PCB designs. |
PART_DEFINITION | From CADSTAR Help: Assigned to Parts library Definitions and displayed by the Library searcher. |
PART_LIBRARY | From CADSTAR Help: Only used by non-Cadstar applications. |
SYMBOL | From CADSTAR Help: Assigned to Schematic Symbols and displayed on Schematic Designs. |
UNDEFINED | Note: It seems that some attribute have no "ATTRUSAGE" defined. It appears that the attributes that fall under this category are the ones associated with the design itself (i.e. not inherited from the library) |
Definition at line 689 of file cadstar_archive_parser.h.
|
stronginherited |
Enumerator | |
---|---|
FRACTIONALGRID | Param1 = Units, Param2 = Divisor. The grid is equal in X and Y dimensions with a step size equal to Param1/Param2 |
STEPGRID | Param1 = X Step, Param2 = Y Step. A standard x,y grid. |
Definition at line 529 of file cadstar_archive_parser.h.
|
stronginherited |
From CADSTAR Help: "Multi Line Text can also be justified as Left, Centre or Right.
This does not affect the text alignment. Note: Justification of single line text has no effect."
This only affects multiline text
See also ALIGNMENT
Enumerator | |
---|---|
LEFT | |
CENTER | |
RIGHT |
Definition at line 638 of file cadstar_archive_parser.h.
|
stronginherited |
Enumerator | |
---|---|
SOLID | |
DASH | |
DASHDOT | |
DASHDOTDOT | |
DOT |
Definition at line 288 of file cadstar_archive_parser.h.
|
stronginherited |
Sets the readability direction of text.
From CADSTAR Help: "Horizontal text will always be displayed from left to right (i.e. never upside down). Vertical text can be set as readable from either the left or right edge of the design."
I.e. Vertical text can either be rotated 90 degrees clockwise or 90 degrees anticlockwise from horizontal. This does not impact vertical text
Enumerator | |
---|---|
BOTTOM_TO_TOP | When text is vertical, show it rotated 90 degrees anticlockwise. |
TOP_TO_BOTTOM | When text is vertical, show it rotated 90 degrees clockwise. |
Definition at line 656 of file cadstar_archive_parser.h.
|
stronginherited |
Enumerator | |
---|---|
HUNDREDTH_MICRON |
Definition at line 250 of file cadstar_archive_parser.h.
|
stronginherited |
Enumerator | |
---|---|
OPENSHAPE | Unfilled open shape. Cannot have cutouts. |
OUTLINE | Unfilled closed shape. |
SOLID | Filled closed shape (solid fill). |
HATCHED | Filled closed shape (hatch fill). |
Definition at line 475 of file cadstar_archive_parser.h.
|
stronginherited |
Corresponds to "Display when" Item property.
From CADSTAR Help: "This parameter enables you to make the visibility of a component outline/area (or an area of component copper, or a string of component text) dependent on the current mirror status of the component. For example, you may require a string of component text to be displayed only when the component is mirrored."
Enumerator | |
---|---|
NO_SWAP | Display when Unmirrored. |
USE_SWAP_LAYER | Display when Mirrored. |
BOTH | Always display (Mirrored and Unmirrored) |
Definition at line 846 of file cadstar_archive_parser.h.
|
stronginherited |
Definition at line 68 of file cadstar_sch_archive_parser.h.
|
stronginherited |
These are special fields in text objects enclosed between the tokens '<@' and '>' such as <@[FIELD_NAME][FIELD_VALUE]>.
For example: "<@DESIGN TITLEProject Title@>"
Definition at line 143 of file cadstar_archive_parser.h.
|
stronginherited |
Enumerator | |
---|---|
DESIGN | Inherits from design units (assumed Assignments->Technology->Units) |
THOU | |
INCH | |
MICROMETRE | |
MM | |
CENTIMETER | |
METER |
Definition at line 504 of file cadstar_archive_parser.h.
|
stronginherited |
Enumerator | |
---|---|
POINT | |
CLOCKWISE_ARC | |
CLOCKWISE_SEMICIRCLE | |
ANTICLOCKWISE_ARC | |
ANTICLOCKWISE_SEMICIRCLE |
Definition at line 429 of file cadstar_archive_parser.h.
|
inlineexplicit |
Definition at line 64 of file cadstar_sch_archive_loader.h.
References CADSTAR_SCH_ARCHIVE_PARSER::Filename, m_designCenter, m_fileName, m_footprintLibName, CADSTAR_ARCHIVE_PARSER::m_progressReporter, m_reporter, m_rootSheet, m_schematic, VECTOR2< T >::x, and VECTOR2< T >::y.
|
inline |
Definition at line 82 of file cadstar_sch_archive_loader.h.
|
staticprivate |
Definition at line 1594 of file cadstar_sch_archive_loader.cpp.
References SCH_FIELD::SetName(), and EDA_TEXT::SetVisible().
Referenced by copySymbolItems(), loadLibPart(), loadSymbolGateAndPartFields(), and loadSymdef().
|
private |
Definition at line 2971 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::Assignments, CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Codedefs, CADSTAR_ARCHIVE_PARSER::TEXTCODE::Font, CADSTAR_ARCHIVE_PARSER::FONT_BOLD, getKiCadLength(), EDA_TEXT::GetText(), getTextCode(), CADSTAR_ARCHIVE_PARSER::HandleTextOverbar(), CADSTAR_ARCHIVE_PARSER::TEXTCODE::Height, CADSTAR_ARCHIVE_PARSER::FONT::Italic, KiROUND(), CADSTAR_ARCHIVE_PARSER::TEXTCODE::LineWidth, CADSTAR_ARCHIVE_PARSER::FONT::Modifier1, EDA_TEXT::SetBold(), EDA_TEXT::SetItalic(), EDA_TEXT::SetText(), EDA_TEXT::SetTextHeight(), EDA_TEXT::SetTextThickness(), EDA_TEXT::SetTextWidth(), CADSTAR_ARCHIVE_PARSER::CODEDEFS::TextCodes, CADSTAR_ARCHIVE_PARSER::TXT_HEIGHT_RATIO, and CADSTAR_ARCHIVE_PARSER::TEXTCODE::Width.
Referenced by applyTextSettings(), and loadSymdef().
|
private |
Definition at line 3004 of file cadstar_sch_archive_loader.cpp.
References ANGLE_HORIZONTAL, ANGLE_VERTICAL, applyTextCodeIfExists(), EDA_ANGLE::AsDegrees(), SPIN_STYLE::BOTTOM, CADSTAR_ARCHIVE_PARSER::BOTTOMCENTER, CADSTAR_ARCHIVE_PARSER::BOTTOMLEFT, CADSTAR_ARCHIVE_PARSER::BOTTOMRIGHT, CADSTAR_ARCHIVE_PARSER::CENTERCENTER, CADSTAR_ARCHIVE_PARSER::CENTERLEFT, CADSTAR_ARCHIVE_PARSER::CENTERRIGHT, CADSTAR_ARCHIVE_PARSER::FixTextPositionNoAlignment(), getAngle(), BOX2< Vec >::GetBottom(), EDA_ITEM::GetBoundingBox(), BOX2< Vec >::GetLeft(), BOX2< Vec >::GetRight(), getSpinStyle(), EDA_TEXT::GetTextAngle(), BOX2< Vec >::GetTop(), 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, KI_FALLTHROUGH, KiROUND(), SPIN_STYLE::LEFT, mirrorX(), CADSTAR_ARCHIVE_PARSER::NO_ALIGNMENT, EDA_ANGLE::Normalize(), SPIN_STYLE::RIGHT, rotate180(), SCH_FIELD_T, SCH_TEXT_T, EDA_TEXT::SetHorizJustify(), EDA_TEXT::SetTextAngle(), EDA_TEXT::SetTextPos(), EDA_TEXT::SetVertJustify(), CADSTAR_ARCHIVE_PARSER::TOPCENTER, CADSTAR_ARCHIVE_PARSER::TOPLEFT, CADSTAR_ARCHIVE_PARSER::TOPRIGHT, EDA_ITEM::Type(), and SPIN_STYLE::UP.
Referenced by applyToLibraryFieldAttribute(), getKiCadSchText(), loadBusses(), loadChildSheets(), loadNets(), loadSchematicSymbolInstances(), loadSymbolFieldAttribute(), loadSymbolGateAndPartFields(), and loadSymdef().
|
private |
Definition at line 2075 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Alignment, applyTextSettings(), getKiCadLibraryPoint(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Justification, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Mirror, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::OrientAngle, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Position, EDA_TEXT::SetTextPos(), and CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::TextCodeID.
Referenced by loadSymbolGateAndPartFields(), and loadSymdef().
|
private |
Definition at line 3428 of file cadstar_sch_archive_loader.cpp.
References EDA_ANGLE::IsZero(), KiROUND(), MIRROR(), RotatePoint(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by loadDocumentationSymbols(), and loadShapeVertices().
|
private |
Definition at line 524 of file cadstar_sch_archive_loader.cpp.
References _, CADSTAR_SCH_ARCHIVE_PARSER::Assignments, CADSTAR_ARCHIVE_PARSER::SETTINGS::DesignLimit, CADSTAR_SCH_ARCHIVE_PARSER::KiCadUnitDivider, SCH_IU_PER_MM, CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Settings, THROW_IO_ERROR, CADSTAR_ARCHIVE_PARSER::LONGPOINT::x, and CADSTAR_ARCHIVE_PARSER::LONGPOINT::y.
Referenced by Load().
|
staticinherited |
aNode |
IO_ERROR | if a child node was found |
Definition at line 2626 of file cadstar_archive_parser.cpp.
References XNODE::GetChildren(), and THROW_UNKNOWN_NODE_IO_ERROR.
Referenced by CADSTAR_ARCHIVE_PARSER::ATTRNAME::COLUMNORDER::Parse(), CADSTAR_ARCHIVE_PARSER::ATTRNAME::COLUMNWIDTH::Parse(), CADSTAR_ARCHIVE_PARSER::REUSEBLOCKREF::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::GATE::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::PIN_EQUIVALENCE::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::SWAP_GATE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYERDEFS::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SPACINGCODE::REASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_COPPER::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_AREA::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PAD_EXITS::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::AREA::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::PIN::Parse().
|
staticinherited |
aNode |
IO_ERROR | if a node adjacent to aNode was found |
Definition at line 2633 of file cadstar_archive_parser.cpp.
References XNODE::GetNext(), XNODE::GetParent(), and THROW_UNKNOWN_NODE_IO_ERROR.
Referenced by CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL_SHAPE::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOLVARIANT::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::CADSTAR_PAD_SHAPE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PADREASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::VIAREASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYERPAIR::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::TEXTFORMAT::Parse().
|
protectedinherited |
Updates m_progressReporter or throws if user cancelled.
Definition at line 2807 of file cadstar_archive_parser.cpp.
References _, PROGRESS_REPORTER::AdvanceProgress(), PROGRESS_REPORTER::KeepRefreshing(), CADSTAR_ARCHIVE_PARSER::m_progressReporter, and THROW_IO_ERROR.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::calculateZonePriorities(), Load(), CADSTAR_PCB_ARCHIVE_LOADER::loadCoppers(), LoadPartsLib(), loadPartsLibrary(), CADSTAR_SCH_ARCHIVE_PARSER::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::Parse().
|
private |
Definition at line 300 of file cadstar_sch_archive_loader.cpp.
References addNewFieldToSymbol(), EDA_ITEM::SetParent(), and SCH_ITEM::SetUnit().
Referenced by loadLibPart(), and loadSymbolGateAndPartFields().
|
static |
Definition at line 59 of file cadstar_sch_archive_loader.cpp.
References LIB_ID::FixIllegalChars(), SCH_SHEET::GetFileName(), and UTF8::wx_str().
Referenced by SCH_IO_CADSTAR_ARCHIVE::LoadSchematicFile(), and loadSchematicSymbol().
|
inlinestaticinherited |
Definition at line 1404 of file cadstar_archive_parser.h.
Referenced by loadSymbolGateAndPartFields().
|
private |
Definition at line 2622 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::AssocLayerID, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Blocks, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, CADSTAR_SCH_ARCHIVE_PARSER::SHEETS::SheetOrder, CADSTAR_SCH_ARCHIVE_PARSER::Sheets, and CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::Type.
Referenced by loadSheets().
|
staticinherited |
Corrects the position of a text element that had NO_ALIGNMENT in CADSTAR.
Assumes that the provided text element has been initialised with a position and orientation.
aKiCadTextItem | a Kicad item to correct |
Definition at line 2778 of file cadstar_archive_parser.cpp.
References EDA_TEXT::GetInterline(), EDA_TEXT::GetText(), EDA_TEXT::GetTextAngle(), EDA_TEXT::Offset(), RotatePoint(), text, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::addAttribute(), applyTextSettings(), and CADSTAR_PCB_ARCHIVE_LOADER::drawCadstarText().
|
private |
Definition at line 3278 of file cadstar_sch_archive_loader.cpp.
References ANGLE_135, ANGLE_45, MULTIVECTOR< T, FIRST_TYPE_VAL, LAST_TYPE_VAL >::begin(), SHAPE_LINE_CHAIN::CPoint(), MULTIVECTOR< T, FIRST_TYPE_VAL, LAST_TYPE_VAL >::end(), VECTOR2< T >::EuclideanNorm(), LIB_SYMBOL::GetDrawItems(), LIB_SYMBOL::GetPins(), SHAPE_LINE_CHAIN::GetPointCount(), EDA_SHAPE::GetPolyShape(), EDA_SHAPE::GetShape(), SCH_ITEM::GetUnit(), LexicographicalCompare(), EDA_ANGLE::Normalize180(), SHAPE_POLY_SET::Outline(), pin, SCH_SHAPE_T, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by loadSymdef().
|
staticinherited |
Definition at line 2797 of file cadstar_archive_parser.cpp.
References CTX_LIBID, and EscapeString().
Referenced by CADSTAR_ARCHIVE_PARSER::SYMDEF::BuildLibName(), loadLibPart(), and setFootprintOnSymbol().
|
inlineprivate |
Definition at line 305 of file cadstar_sch_archive_loader.h.
References DEGREES_T, CADSTAR_ARCHIVE_PARSER::HEADER::Format, CADSTAR_SCH_ARCHIVE_PARSER::Header, TENTHS_OF_A_DEGREE_T, and CADSTAR_ARCHIVE_PARSER::FORMAT::Version.
Referenced by applyTextSettings(), getLocationOfNetElement(), getSpinStyle(), loadDocumentationSymbols(), loadNets(), loadSchematicSymbol(), loadSchematicSymbolInstances(), and loadSymbolFieldAttribute().
|
private |
Definition at line 2811 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::Assignments, CADSTAR_ARCHIVE_PARSER::CODEDEFS::AttributeNames, and CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Codedefs.
Referenced by loadSchematicSymbolInstances(), loadSymbolGateAndPartFields(), and loadSymdef().
|
inlineprivate |
Definition at line 320 of file cadstar_sch_archive_loader.h.
References EDA_ANGLE::AsDegrees(), EDA_ANGLE::AsTenthsOfADegree(), CADSTAR_ARCHIVE_PARSER::HEADER::Format, CADSTAR_SCH_ARCHIVE_PARSER::Header, KiROUND(), and CADSTAR_ARCHIVE_PARSER::FORMAT::Version.
Referenced by loadSymbolFieldAttribute().
|
private |
Definition at line 2233 of file cadstar_sch_archive_loader.cpp.
References ANGLE_0, ANGLE_135, ANGLE_180, ANGLE_270, ANGLE_45, ANGLE_90, and EDA_ANGLE::Normalize180().
Referenced by getLocationOfNetElement(), and loadSchematicSymbol().
|
private |
Definition at line 3358 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::Assignments, CADSTAR_ARCHIVE_PARSER::SHAPE::Cutouts, CADSTAR_ARCHIVE_PARSER::SETTINGS::DesignLimit, CADSTAR_ARCHIVE_PARSER::VERTEX::End, getKiCadPoint(), CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Settings, CADSTAR_ARCHIVE_PARSER::FIGURE::Shape, CADSTAR_ARCHIVE_PARSER::SHAPE::Vertices, CADSTAR_ARCHIVE_PARSER::LONGPOINT::x, VECTOR2< T >::x, CADSTAR_ARCHIVE_PARSER::LONGPOINT::y, and VECTOR2< T >::y.
Referenced by loadChildSheets().
|
inlineprivate |
Definition at line 292 of file cadstar_sch_archive_loader.h.
References CADSTAR_SCH_ARCHIVE_PARSER::KiCadUnitDivider, and sign().
Referenced by applyTextCodeIfExists(), getKiCadLibraryPoint(), getKiCadPoint(), getLineThickness(), getTextHeightFromTextCode(), and Load().
|
private |
Definition at line 3416 of file cadstar_sch_archive_loader.cpp.
References getKiCadLength(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by applyToLibraryFieldAttribute(), loadLibrarySymbolShapeVertices(), loadSchematicSymbolInstances(), and loadSymdef().
|
private |
Definition at line 2858 of file cadstar_sch_archive_loader.cpp.
Referenced by loadLibPart(), and loadSymbolGateAndPartFields().
Definition at line 3405 of file cadstar_sch_archive_loader.cpp.
References getKiCadLength(), m_designCenter, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by getFigureExtentsKiCad(), getKiCadSchText(), loadBusses(), loadChildSheets(), loadDocumentationSymbols(), loadHierarchicalSheetPins(), loadNets(), loadSchematicSymbol(), loadSchematicSymbolInstances(), loadShapeVertices(), and loadSymbolFieldAttribute().
Definition at line 3182 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::TEXT::Alignment, applyTextSettings(), getKiCadPoint(), CADSTAR_ARCHIVE_PARSER::TEXT::Justification, m_schematic, CADSTAR_ARCHIVE_PARSER::TEXT::Mirror, CADSTAR_ARCHIVE_PARSER::TEXT::OrientAngle, CADSTAR_ARCHIVE_PARSER::TEXT::Position, EDA_ITEM::SetParent(), SCH_TEXT::SetPosition(), EDA_TEXT::SetText(), CADSTAR_ARCHIVE_PARSER::TEXT::Text, and CADSTAR_ARCHIVE_PARSER::TEXT::TextCodeID.
Referenced by loadDocumentationSymbols(), and loadTexts().
|
private |
Definition at line 2877 of file cadstar_sch_archive_loader.cpp.
Referenced by loadSchematicSymbol(), and loadSymbolGateAndPartFields().
|
private |
Definition at line 2772 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::Assignments, CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Codedefs, CADSTAR_ARCHIVE_PARSER::DASH, CADSTAR_ARCHIVE_PARSER::DASHDOT, CADSTAR_ARCHIVE_PARSER::DASHDOTDOT, CADSTAR_ARCHIVE_PARSER::DOT, CADSTAR_ARCHIVE_PARSER::CODEDEFS::LineCodes, and CADSTAR_ARCHIVE_PARSER::SOLID.
Referenced by loadShapeVertices(), and loadSymdef().
|
private |
Definition at line 2762 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::Assignments, CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Codedefs, DEFAULT_WIRE_WIDTH_MILS, getKiCadLength(), CADSTAR_ARCHIVE_PARSER::CODEDEFS::LineCodes, EDA_IU_SCALE::MilsToIU(), and schIUScale.
Referenced by loadBusses(), loadNets(), loadShapeVertices(), and loadSymdef().
|
inline |
Definition at line 88 of file cadstar_sch_archive_loader.h.
References m_loadedSymbols.
Referenced by SCH_IO_CADSTAR_ARCHIVE::LoadSchematicFile().
|
private |
Definition at line 2267 of file cadstar_sch_archive_loader.cpp.
References _, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Blocks, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::BlockTerminals, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::BusTerminals, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::Danglers, getAngle(), getComponentOrientation(), getNetName(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::Junctions, CADSTAR_SCH_ARCHIVE_PARSER::Library, m_reporter, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Mirror, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::OrientAngle, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Origin, REPORTER::Report(), RotatePoint(), RPT_SEVERITY_ERROR, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::ScaleRatioDenominator, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::ScaleRatioNumerator, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, CADSTAR_SCH_ARCHIVE_PARSER::LIBRARY_SCM::SymbolDefinitions, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Symbols, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::SymdefID, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::Terminals, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by loadNets().
|
private |
Definition at line 2369 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::NET::Name, and CADSTAR_ARCHIVE_PARSER::NET::SignalNum.
Referenced by getLocationOfNetElement().
|
staticinherited |
Definition at line 2736 of file cadstar_archive_parser.cpp.
References XNODE::GetChildren(), and XNODE::GetNext().
Referenced by CADSTAR_ARCHIVE_PARSER::GetNumberOfStepsForReporting().
|
staticinherited |
Definition at line 2748 of file cadstar_archive_parser.cpp.
References XNODE::GetChildren(), XNODE::GetNext(), and CADSTAR_ARCHIVE_PARSER::GetNumberOfChildNodes().
Referenced by CADSTAR_SCH_ARCHIVE_PARSER::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::Parse().
|
private |
Definition at line 2822 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::PARTS::PartDefinitions, and CADSTAR_SCH_ARCHIVE_PARSER::Parts.
Referenced by loadSchematicSymbolInstances().
|
private |
Definition at line 2842 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::PART::Definition, and CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::Pins.
Referenced by loadSymbolGateAndPartFields().
|
private |
aPoint |
Definition at line 3459 of file cadstar_sch_archive_loader.cpp.
References VECTOR2< T >::x, and VECTOR2< T >::y.
|
private |
Definition at line 2831 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::Assignments, CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Codedefs, and CADSTAR_ARCHIVE_PARSER::CODEDEFS::RouteCodes.
|
private |
Definition at line 3198 of file cadstar_sch_archive_loader.cpp.
References SHAPE_LINE_CHAIN::CPoint(), LIB_SYMBOL::GetDrawItems(), EDA_SHAPE::GetEnd(), SHAPE_LINE_CHAIN::GetPointCount(), EDA_SHAPE::GetPolyShape(), SCH_SHAPE::GetPosition(), SCH_TEXT::GetPosition(), EDA_SHAPE::GetShape(), EDA_SHAPE::GetStart(), EDA_TEXT::GetTextSize(), SHAPE_POLY_SET::Outline(), pin, EDA_SHAPE::SetEnd(), SHAPE_LINE_CHAIN::SetPoint(), SCH_SHAPE::SetPosition(), SCH_TEXT::SetPosition(), EDA_SHAPE::SetStart(), and EDA_TEXT::SetTextSize().
Referenced by loadSchematicSymbolInstances().
|
private |
Definition at line 2647 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::SHEETS::SheetOrder, and CADSTAR_SCH_ARCHIVE_PARSER::Sheets.
Referenced by loadSheetAndChildSheets(), and loadSheets().
|
private |
Definition at line 2902 of file cadstar_sch_archive_loader.cpp.
References ANGLE_135, ANGLE_45, SPIN_STYLE::BOTTOM, SPIN_STYLE::LEFT, EDA_ANGLE::Normalize180(), SPIN_STYLE::RIGHT, and SPIN_STYLE::UP.
|
private |
Definition at line 2886 of file cadstar_sch_archive_loader.cpp.
References getAngle(), getSpinStyle(), and SPIN_STYLE::RotateCCW().
Referenced by applyTextSettings(), getSpinStyle(), loadHierarchicalSheetPins(), loadNets(), and loadSchematicSymbolInstances().
|
private |
Definition at line 2703 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::Library, m_DefaultSymDefNamesCache, m_SymDefNamesCache, and CADSTAR_SCH_ARCHIVE_PARSER::LIBRARY_SCM::SymbolDefinitions.
Referenced by loadLibPart(), and loadPartsLibrary().
|
private |
Definition at line 2793 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::Assignments, CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Codedefs, and CADSTAR_ARCHIVE_PARSER::CODEDEFS::TextCodes.
Referenced by applyTextCodeIfExists(), and getTextHeightFromTextCode().
|
private |
Definition at line 2803 of file cadstar_sch_archive_loader.cpp.
References getKiCadLength(), getTextCode(), CADSTAR_ARCHIVE_PARSER::TEXTCODE::Height, KiROUND(), and CADSTAR_ARCHIVE_PARSER::TXT_HEIGHT_RATIO.
Referenced by loadSymdef().
|
staticinherited |
aNode | |
aID | |
aIsRequired | Prevents exception throwing if false. |
IO_ERROR | if attribute does not exist |
Definition at line 2608 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), THROW_PARSING_IO_ERROR, and CADSTAR_ARCHIVE_PARSER::UNDEFINED_VALUE.
Referenced by CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::ROUTE_VERTEX::Parse(), CADSTAR_ARCHIVE_PARSER::FORMAT::Parse(), CADSTAR_ARCHIVE_PARSER::HATCH::Parse(), CADSTAR_ARCHIVE_PARSER::FONT::Parse(), CADSTAR_ARCHIVE_PARSER::TEXTCODE::Parse(), CADSTAR_ARCHIVE_PARSER::ROUTEREASSIGN::Parse(), CADSTAR_ARCHIVE_PARSER::ROUTECODE::Parse(), CADSTAR_ARCHIVE_PARSER::POINT::Parse(), CADSTAR_ARCHIVE_PARSER::LONGPOINT::Parse(), CADSTAR_ARCHIVE_PARSER::GRID::Parse(), CADSTAR_ARCHIVE_PARSER::ATTRNAME::COLUMNORDER::Parse(), CADSTAR_ARCHIVE_PARSER::ATTRNAME::COLUMNWIDTH::Parse(), CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), CADSTAR_ARCHIVE_PARSER::REUSEBLOCK::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::GATE::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::PIN::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::Parse(), CADSTAR_ARCHIVE_PARSER::PART::PART_PIN::Parse(), CADSTAR_ARCHIVE_PARSER::PART::Parse(), CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL_SHAPE::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::PIN_NUM_LABEL_LOC::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::TERMATTR::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SYMPINNAME_LABEL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::PIN_NUM::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::SYM_TERM::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::BLOCK_TERM::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYER::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COPREASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COPPERCODE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SPACINGCODE::REASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SPACINGCODE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::CADSTAR_PAD_SHAPE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PADCODE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::VIACODE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYERPAIR::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SPCCLASSSPACE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::TECHNOLOGY_SECTION::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_PAD::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::ARROW::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::TEXTFORMAT::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::EXTENSION_LINE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::LINE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SYMDEF_PCB::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::AREA::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PIN_ATTRIBUTE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PADEXCEPTION::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::PIN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::COPPER_TERMINAL::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::TEMPLATE::POURING::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COPPER::NETREF::COPPER_TERM::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DRILL_TABLE::Parse(), CADSTAR_ARCHIVE_PARSER::TEXT::Parse(), CADSTAR_ARCHIVE_PARSER::SETTINGS::ParseSubNode(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::ParseSubNode(), CADSTAR_ARCHIVE_PARSER::SYMDEF::ParseSubNode(), and CADSTAR_ARCHIVE_PARSER::NET::ParseSubNode().
|
staticinherited |
aNode | |
aID | |
aIsRequired | Prevents exception throwing if false. |
IO_ERROR | if attribute does not exist |
Definition at line 2582 of file cadstar_archive_parser.cpp.
References THROW_MISSING_PARAMETER_IO_ERROR.
Referenced by CADSTAR_ARCHIVE_PARSER::PART::GetPinType(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), CADSTAR_ARCHIVE_PARSER::FORMAT::Parse(), CADSTAR_ARCHIVE_PARSER::TIMESTAMP::Parse(), CADSTAR_ARCHIVE_PARSER::HEADER::Parse(), CADSTAR_ARCHIVE_PARSER::VARIANT::Parse(), CADSTAR_ARCHIVE_PARSER::LINECODE::Parse(), CADSTAR_ARCHIVE_PARSER::HATCHCODE::Parse(), CADSTAR_ARCHIVE_PARSER::FONT::Parse(), CADSTAR_ARCHIVE_PARSER::TEXTCODE::Parse(), CADSTAR_ARCHIVE_PARSER::ROUTEREASSIGN::Parse(), CADSTAR_ARCHIVE_PARSER::ROUTECODE::Parse(), CADSTAR_ARCHIVE_PARSER::EVALUE::Parse(), CADSTAR_ARCHIVE_PARSER::SHAPE::Parse(), CADSTAR_ARCHIVE_PARSER::GRID::Parse(), CADSTAR_ARCHIVE_PARSER::ATTRNAME::Parse(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::Parse(), CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), CADSTAR_ARCHIVE_PARSER::CADSTAR_NETCLASS::Parse(), CADSTAR_ARCHIVE_PARSER::SPCCLASSNAME::Parse(), CADSTAR_ARCHIVE_PARSER::REUSEBLOCK::Parse(), CADSTAR_ARCHIVE_PARSER::REUSEBLOCKREF::Parse(), CADSTAR_ARCHIVE_PARSER::GROUP::Parse(), CADSTAR_ARCHIVE_PARSER::FIGURE::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::GATE::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::PIN::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::SWAP_GROUP::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::Parse(), CADSTAR_ARCHIVE_PARSER::PART::PART_PIN::Parse(), CADSTAR_ARCHIVE_PARSER::PART::Parse(), CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::Parse(), CADSTAR_ARCHIVE_PARSER::DFLTSETTINGS::Parse(), CADSTAR_ARCHIVE_PARSER::ATTRCOL::Parse(), CADSTAR_ARCHIVE_PARSER::PARTNAMECOL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::TERMINALCODE::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::PIN_NUM_LABEL_LOC::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SHEETS::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::COMP::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::PARTREF::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SYMPINNAME_LABEL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOLVARIANT::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SIGNALREFERENCELINK::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SIGLOC::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::BUS::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::JUNCTION_SCH::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::SYM_TERM::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::BUS_TERM::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::BLOCK_TERM::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::DANGLER::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::CONNECTION_SCH::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::MATERIAL::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYER::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYERDEFS::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COPREASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COPPERCODE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SPACINGCODE::REASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SPACINGCODE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PADREASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PADCODE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::VIAREASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::VIACODE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYERPAIR::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SPCCLASSSPACE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::RULESET::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_COPPER::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_AREA::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_PAD::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::ARROW::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::TEXTFORMAT::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::EXTENSION_LINE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::LINE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::CADSTAR_BOARD::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::AREA::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PADEXCEPTION::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::TRUNK::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::PIN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::JUNCTION_PCB::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::COPPER_TERMINAL::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::ROUTE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::CONNECTION_PCB::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::TEMPLATE::POURING::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::TEMPLATE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COPPER::NETREF::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COPPER::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DRILL_TABLE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYOUT::Parse(), CADSTAR_ARCHIVE_PARSER::TEXT::Parse(), CADSTAR_ARCHIVE_PARSER::ParseAlignment(), CADSTAR_ARCHIVE_PARSER::ParseAngunits(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::ParseIdentifiers(), CADSTAR_ARCHIVE_PARSER::SYMDEF::ParseIdentifiers(), CADSTAR_ARCHIVE_PARSER::NET::JUNCTION::ParseIdentifiers(), CADSTAR_ARCHIVE_PARSER::NET::CONNECTION::ParseIdentifiers(), CADSTAR_ARCHIVE_PARSER::NET::ParseIdentifiers(), CADSTAR_ARCHIVE_PARSER::ParseJustification(), CADSTAR_ARCHIVE_PARSER::ParseReadability(), CADSTAR_ARCHIVE_PARSER::NET::JUNCTION::ParseSubNode(), CADSTAR_ARCHIVE_PARSER::NET::CONNECTION::ParseSubNode(), CADSTAR_ARCHIVE_PARSER::NET::ParseSubNode(), CADSTAR_ARCHIVE_PARSER::ParseSwapRule(), CADSTAR_PCB_ARCHIVE_PARSER::ParseTestlandSide(), and CADSTAR_ARCHIVE_PARSER::ParseUnits().
|
staticinherited |
Convert a string with CADSTAR overbar characters to equivalent in KiCad.
aCadstarString | Input string |
Definition at line 2768 of file cadstar_archive_parser.cpp.
References ConvertToNewOverbarNotation().
Referenced by applyTextCodeIfExists(), loadBusses(), loadLibPart(), loadNets(), loadSchematicSymbol(), and loadSymbolGateAndPartFields().
|
staticinherited |
Definition at line 2422 of file cadstar_archive_parser.cpp.
Referenced by CADSTAR_ARCHIVE_PARSER::LoadArchiveFile().
|
private |
Definition at line 2752 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::AttrColors, and CADSTAR_ARCHIVE_PARSER::ATTRCOLORS::AttributeColors.
Referenced by loadSchematicSymbolInstances(), and loadSymbolGateAndPartFields().
|
staticinherited |
aAttribute |
Definition at line 2576 of file cadstar_archive_parser.cpp.
Referenced by CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::PIN_EQUIVALENCE::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::SWAP_GATE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYERDEFS::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_COPPER::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_AREA::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PAD_EXITS::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::AREA::Parse().
Loads a CADSTAR Schematic Archive file into the KiCad SCHEMATIC object given.
aSchematic | Schematic to add the design onto |
aRootSheet | Root sheet to add the design onto |
Definition at line 332 of file cadstar_sch_archive_loader.cpp.
References _, CADSTAR_SCH_ARCHIVE_PARSER::Assignments, EE_RTREE::begin(), PROGRESS_REPORTER::BeginPhase(), BOX2< Vec >::Centre(), checkDesignLimits(), CADSTAR_ARCHIVE_PARSER::checkPoint(), EE_RTREE::end(), CADSTAR_ARCHIVE_PARSER::FRACTIONALGRID, SCH_SYMBOL::GetBodyAndPinsBoundingBox(), SCH_TEXT::GetBoundingBox(), SCH_SYMBOL::GetFields(), getKiCadLength(), SCH_SCREEN::GetPageSettings(), SCH_SHEET::GetScreen(), BOX2< Vec >::GetSize(), PAGE_INFO::GetSizeIU(), EDA_TEXT::GetText(), grid, CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Grids, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Groups, SCH_SCREEN::Items(), EDA_IU_SCALE::IU_PER_MILS, EDA_IU_SCALE::IUToMils(), loadBusses(), loadDocumentationSymbols(), loadFigures(), loadHierarchicalSheetPins(), loadNets(), loadPartsLibrary(), loadSchematicSymbolInstances(), loadSheets(), loadTexts(), loadTextVariables(), m_designCenter, CADSTAR_ARCHIVE_PARSER::m_progressReporter, m_reporter, m_rootSheet, m_schematic, m_sheetMap, BOX2< Vec >::Merge(), CADSTAR_ARCHIVE_PARSER::GRID::Param1, CADSTAR_ARCHIVE_PARSER::GRID::Param2, CADSTAR_SCH_ARCHIVE_PARSER::Parse(), CADSTAR_ARCHIVE_PARSER::PARTS::PartDefinitions, CADSTAR_SCH_ARCHIVE_PARSER::Parts, REPORTER::Report(), CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::ReuseBlocks, RPT_SEVERITY_WARNING, SCH_SYMBOL_T, SCH_TEXT_T, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, schIUScale, CADSTAR_ARCHIVE_PARSER::GRIDS::ScreenGrid, PAGE_INFO::SetHeightMils(), PROGRESS_REPORTER::SetMaxProgress(), PROGRESS_REPORTER::SetNumPhases(), SCH_SCREEN::SetPageSettings(), PAGE_INFO::SetWidthMils(), sign(), CADSTAR_ARCHIVE_PARSER::GRID::Type, SCH_SCREEN::Update(), CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::VariantHierarchy, CADSTAR_ARCHIVE_PARSER::VARIANT_HIERARCHY::Variants, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by SCH_IO_CADSTAR_ARCHIVE::LoadSchematicFile().
|
staticinherited |
Reads a CADSTAR Archive file (S-parameter format)
aFileName | |
aFileTypeIdentifier | Identifier of the first node in the file to check against. E.g. "CADSTARPCB" |
aProgressReporter | Pointer to a Progress Reporter to report progress to. |
IO_ERROR |
Definition at line 2451 of file cadstar_archive_parser.cpp.
References _, DSNLEXER::CurText(), DSN_EOF, DSN_LEFT, DSN_RIGHT, XNODE::GetParent(), CADSTAR_ARCHIVE_PARSER::InsertAttributeAtEnd(), PROGRESS_REPORTER::KeepRefreshing(), DSNLEXER::NextTok(), PROGRESS_REPORTER::SetCurrentProgress(), and THROW_IO_ERROR.
Referenced by CADSTAR_SCH_ARCHIVE_PARSER::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::Parse().
|
private |
Definition at line 1027 of file cadstar_sch_archive_loader.cpp.
References SCH_SCREEN::AddBusAlias(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Alignment, SHAPE_LINE_CHAIN::Append(), SCH_SCREEN::Append(), applyTextSettings(), CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Buses, CADSTAR_SCH_ARCHIVE_PARSER::BUS::BusLabel, CADSTAR_ARCHIVE_PARSER::VERTEX::End, getKiCadPoint(), getLineThickness(), CADSTAR_ARCHIVE_PARSER::HandleTextOverbar(), CADSTAR_SCH_ARCHIVE_PARSER::BUS::HasBusLabel, CADSTAR_SCH_ARCHIVE_PARSER::BUS::ID, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Justification, LAYER_BUS, CADSTAR_SCH_ARCHIVE_PARSER::BUS::LayerID, CADSTAR_SCH_ARCHIVE_PARSER::BUS::LineCodeID, m_busesMap, m_sheetMap, CADSTAR_SCH_ARCHIVE_PARSER::BUS::Name, SHAPE_LINE_CHAIN::NearestPoint(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Position, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, SCH_LINE::SetEndPoint(), SCH_ITEM::SetLayer(), SCH_LINE::SetLineWidth(), SCH_LABEL_BASE::SetPosition(), SCH_LINE::SetStartPoint(), EDA_TEXT::SetText(), EDA_TEXT::SetVisible(), CADSTAR_SCH_ARCHIVE_PARSER::BUS::Shape, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::TextCodeID, and CADSTAR_ARCHIVE_PARSER::SHAPE::Vertices.
Referenced by Load().
|
private |
Definition at line 2524 of file cadstar_sch_archive_loader.cpp.
References _, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Alignment, applyTextSettings(), CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::AssocLayerID, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::BlockLabel, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Blocks, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::Figures, SCH_SHEET::GetFields(), getFigureExtentsKiCad(), getKiCadPoint(), CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::HasBlockLabel, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::ID, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Justification, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::LayerID, loadItemOntoKiCadSheet(), loadSheetAndChildSheets(), m_reporter, m_schematic, m_sheetMap, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Mirror, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::Name, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::OrientAngle, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Position, REPORTER::Report(), RPT_SEVERITY_ERROR, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, SCH_SHEET::SetFields(), EDA_ITEM::SetParent(), SCH_TEXT::SetPosition(), EDA_TEXT::SetText(), CADSTAR_SCH_ARCHIVE_PARSER::SHEETS::SheetNames, CADSTAR_SCH_ARCHIVE_PARSER::Sheets, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::TextCodeID, THROW_IO_ERROR, and CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::Type.
Referenced by loadSheetAndChildSheets(), and loadSheets().
|
private |
Definition at line 1469 of file cadstar_sch_archive_loader.cpp.
References _, applyTransform(), CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::DocumentationSymbols, CADSTAR_ARCHIVE_PARSER::SYMDEF::Figures, getAngle(), getKiCadPoint(), getKiCadSchText(), SCH_TEXT::GetPosition(), EDA_TEXT::GetTextHeight(), EDA_TEXT::GetTextThickness(), EDA_TEXT::GetTextWidth(), CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::ID, KiROUND(), LAYER_NOTES, CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::LayerID, CADSTAR_SCH_ARCHIVE_PARSER::Library, loadFigure(), loadItemOntoKiCadSheet(), m_reporter, CADSTAR_ARCHIVE_PARSER::TEXT::Mirror, CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::Mirror, CADSTAR_ARCHIVE_PARSER::TEXT::OrientAngle, CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::OrientAngle, CADSTAR_ARCHIVE_PARSER::SYMDEF::Origin, CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::Origin, REPORTER::Report(), RPT_SEVERITY_ERROR, CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::ScaleRatioDenominator, CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::ScaleRatioNumerator, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, SCH_TEXT::SetPosition(), EDA_TEXT::SetTextHeight(), EDA_TEXT::SetTextThickness(), EDA_TEXT::SetTextWidth(), CADSTAR_SCH_ARCHIVE_PARSER::LIBRARY_SCM::SymbolDefinitions, CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::SymdefID, and CADSTAR_ARCHIVE_PARSER::SYMDEF::Texts.
Referenced by Load().
|
private |
Definition at line 2453 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::SHAPE::Cutouts, CADSTAR_ARCHIVE_PARSER::FIGURE::LineCodeID, loadShapeVertices(), CADSTAR_ARCHIVE_PARSER::FIGURE::Shape, CADSTAR_ARCHIVE_PARSER::CUTOUT::Vertices, and CADSTAR_ARCHIVE_PARSER::SHAPE::Vertices.
Referenced by loadDocumentationSymbols(), and loadFigures().
|
private |
Definition at line 1446 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Figures, LAYER_NOTES, CADSTAR_ARCHIVE_PARSER::FIGURE::LayerID, loadFigure(), and CADSTAR_SCH_ARCHIVE_PARSER::Schematic.
Referenced by Load().
|
private |
Definition at line 609 of file cadstar_sch_archive_loader.cpp.
References SCH_SHEET::AddPin(), SCH_SCREEN::Append(), CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::AssocLayerID, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Blocks, getKiCadPoint(), SCH_SHEET::GetScreen(), getSpinStyle(), CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL::ID, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::ID, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::LayerID, m_sheetMap, m_sheetPinMap, name, CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL::OrientAngle, CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL::Position, SCH_SHEET_PIN_T, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, SCH_LABEL_BASE::SetPosition(), SCH_LABEL_BASE::SetShape(), SCH_HIERLABEL::SetSpinStyle(), EDA_TEXT::SetText(), CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::Terminals, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::Type, and EDA_ITEM::Type().
Referenced by Load().
|
private |
Definition at line 2663 of file cadstar_sch_archive_loader.cpp.
References SCH_ITEM::Duplicate(), m_sheetMap, CADSTAR_SCH_ARCHIVE_PARSER::SHEETS::SheetNames, and CADSTAR_SCH_ARCHIVE_PARSER::Sheets.
Referenced by loadChildSheets(), loadDocumentationSymbols(), loadShapeVertices(), and loadTexts().
|
private |
Definition at line 118 of file cadstar_sch_archive_loader.cpp.
References _, addNewFieldToSymbol(), copySymbolItems(), CTX_LIBID, delta, EscapeString(), CADSTAR_ARCHIVE_PARSER::generateLibName(), getKiCadPinType(), getSymDefFromName(), CADSTAR_ARCHIVE_PARSER::HandleTextOverbar(), CADSTAR_SCH_ARCHIVE_PARSER::Library, loadSymdef(), CADSTAR_PART_ENTRY::m_AcceptancePartName, CADSTAR_PART_ENTRY::m_ComponentStem, CADSTAR_PART_ENTRY::m_Description, CADSTAR_PART_ENTRY::m_HiddenPins, CADSTAR_PART_ENTRY::m_Name, CADSTAR_PART_ENTRY::m_Number, CADSTAR_PART_ENTRY::m_PartAttributes, CADSTAR_PART_ENTRY::m_Pcb_alternate, CADSTAR_PART_ENTRY::m_Pcb_component, CADSTAR_PART_ENTRY::m_PcbAttributes, CADSTAR_PART_ENTRY::m_PinLabelsMap, CADSTAR_PART_ENTRY::m_PinNamesMap, CADSTAR_PART_SYMBOL_ENTRY::m_Pins, CADSTAR_PART_ENTRY::m_PinsVisible, m_reporter, CADSTAR_PART_ENTRY::m_SchAndPcbAttributes, CADSTAR_PART_ENTRY::m_SchAttributes, CADSTAR_PART_ENTRY::m_SpiceModel, CADSTAR_PART_SYMBOL_ENTRY::m_SymbolAlternateName, CADSTAR_PART_SYMBOL_ENTRY::m_SymbolName, CADSTAR_PART_ENTRY::m_Symbols, m_symDefTerminalsMap, CADSTAR_PART_ENTRY::m_UserAttributes, CADSTAR_PART_ENTRY::m_Value, CADSTAR_PART_ENTRY::m_Version, EDA_IU_SCALE::MilsToIU(), name, PartAcceptanceFieldName, PartNameFieldName, PartNumberFieldName, PartVersionFieldName, pin, REPORTER::Report(), RPT_SEVERITY_ERROR, schIUScale, setFootprintOnSymbol(), SCH_FIELD::SetText(), SIM_DEVICE_FIELD, SIM_PARAMS_FIELD, CADSTAR_SCH_ARCHIVE_PARSER::LIBRARY_SCM::SymbolDefinitions, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by LoadPartsLib().
|
private |
Definition at line 1999 of file cadstar_sch_archive_loader.cpp.
References LIB_SYMBOL::AddDrawItem(), SCH_SHAPE::AddPoint(), CADSTAR_ARCHIVE_PARSER::ANTICLOCKWISE_ARC, CADSTAR_ARCHIVE_PARSER::ANTICLOCKWISE_SEMICIRCLE, CADSTAR_ARCHIVE_PARSER::VERTEX::Center, CADSTAR_ARCHIVE_PARSER::CLOCKWISE_ARC, CADSTAR_ARCHIVE_PARSER::CLOCKWISE_SEMICIRCLE, CADSTAR_ARCHIVE_PARSER::VERTEX::End, LIB_SYMBOL::GetDrawItems(), getKiCadLibraryPoint(), KI_FALLTHROUGH, LAYER_DEVICE, CADSTAR_ARCHIVE_PARSER::POINT, EDA_SHAPE::SetEnd(), SCH_SHAPE::SetPosition(), EDA_SHAPE::SetStart(), SCH_SHAPE::SetStroke(), SCH_ITEM::SetUnit(), MULTIVECTOR< T, FIRST_TYPE_VAL, LAST_TYPE_VAL >::sort(), and CADSTAR_ARCHIVE_PARSER::VERTEX::Type.
Referenced by loadSymdef().
|
private |
Definition at line 1108 of file cadstar_sch_archive_loader.cpp.
References SHAPE_LINE_CHAIN::Append(), applyTextSettings(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::BlockTerminals, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Buses, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::BusTerminals, SCH_SHEET::ClassOf(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::Connections, alg::contains(), SHAPE_LINE_CHAIN::CPoints(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::Danglers, SHAPE_LINE_CHAIN::FindSegment(), getAngle(), SCH_LINE::GetEndPoint(), getKiCadPoint(), getLineThickness(), getLocationOfNetElement(), EDA_ITEM::GetParent(), SCH_SHEET::GetPosition(), SCH_TEXT::GetPosition(), SCH_SHEET::GetSize(), getSpinStyle(), SCH_LINE::GetStartPoint(), CADSTAR_ARCHIVE_PARSER::HandleTextOverbar(), CADSTAR_ARCHIVE_PARSER::NET::ID, CADSTAR_SCH_ARCHIVE_PARSER::BUS::ID, SHAPE_LINE_CHAIN::Intersect(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::Junctions, LAYER_WIRE, CADSTAR_SCH_ARCHIVE_PARSER::BUS::LayerID, m_busesMap, m_globalLabelsMap, m_powerSymMap, m_sheetMap, m_sheetPinMap, SPIN_STYLE::MirrorX(), SPIN_STYLE::MirrorY(), CADSTAR_ARCHIVE_PARSER::NET::Name, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Nets, SHAPE_LINE_CHAIN::Replace(), SHAPE_LINE_CHAIN::Reverse(), SCH_SHEET_PIN_T, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, EDA_TEXT::SetBold(), SCH_LINE::SetEndPoint(), SCH_ITEM::SetLayer(), SCH_LINE::SetLineWidth(), SCH_FIELD::SetPosition(), SCH_JUNCTION::SetPosition(), SCH_LABEL_BASE::SetPosition(), SCH_BUS_ENTRY_BASE::SetSize(), SCH_LABEL_BASE::SetSpinStyle(), SCH_HIERLABEL::SetSpinStyle(), SCH_LINE::SetStartPoint(), EDA_TEXT::SetText(), SCH_FIELD::SetText(), EDA_TEXT::SetTextSize(), EDA_TEXT::SetVisible(), CADSTAR_ARCHIVE_PARSER::NET::SignalNum, SMALL_LABEL_SIZE, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Symbols, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::Terminals, EDA_ITEM::Type(), CADSTAR_ARCHIVE_PARSER::UNDEFINED_VALUE, VALUE_FIELD, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by Load().
std::vector< LIB_SYMBOL * > CADSTAR_SCH_ARCHIVE_LOADER::LoadPartsLib | ( | const wxString & | aFilename | ) |
Definition at line 79 of file cadstar_sch_archive_loader.cpp.
References _, PROGRESS_REPORTER::BeginPhase(), CADSTAR_PARTS_LIB_PARSER::CheckFileHeader(), CADSTAR_ARCHIVE_PARSER::checkPoint(), loadLibPart(), CADSTAR_PARTS_LIB_MODEL::m_PartEntries, CADSTAR_ARCHIVE_PARSER::m_progressReporter, CADSTAR_SCH_ARCHIVE_PARSER::Parse(), CADSTAR_PARTS_LIB_PARSER::ReadFile(), PROGRESS_REPORTER::SetMaxProgress(), PROGRESS_REPORTER::SetNumPhases(), and THROW_IO_ERROR.
Referenced by SCH_IO_CADSTAR_ARCHIVE::ensureLoadedLibrary().
|
private |
Definition at line 657 of file cadstar_sch_archive_loader.cpp.
References _, CADSTAR_ARCHIVE_PARSER::checkPoint(), CTX_LIBID, CADSTAR_ARCHIVE_PARSER::PART::Definition, EscapeString(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::GateSymbols, getSymDefFromName(), loadSymbolGateAndPartFields(), m_loadedSymbols, m_partMap, m_partSymbolsMap, m_reporter, CADSTAR_ARCHIVE_PARSER::PART::Name, CADSTAR_ARCHIVE_PARSER::PARTS::PartDefinitions, CADSTAR_SCH_ARCHIVE_PARSER::Parts, REPORTER::Report(), RPT_SEVERITY_WARNING, and LIB_SYMBOL::SetUnitCount().
Referenced by Load().
|
private |
Definition at line 2087 of file cadstar_sch_archive_loader.cpp.
References _, SCH_SCREEN::Append(), EDA_ANGLE::AsDegrees(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::ComponentRef, CreateLibName(), CADSTAR_SCH_ARCHIVE_PARSER::COMP::Designator, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::GateID, getAngle(), getComponentOrientation(), getKiCadPoint(), getKiCadUnitNumberFromGate(), SCH_SYMBOL::GetLibSymbolRef(), LIB_SYMBOL::GetName(), SCH_SHEET::GetScreen(), CADSTAR_ARCHIVE_PARSER::HandleTextOverbar(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::IsComponent, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::LayerID, SCH_SHEET::LocatePathOfScreen(), m_footprintLibName, m_pinNumsMap, m_reporter, m_rootSheet, m_sheetMap, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Mirror, EDA_ANGLE::Normalize180(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::OrientAngle, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Origin, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::PartRef, pin, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::PinNames, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::PinNumbers, CADSTAR_SCH_ARCHIVE_PARSER::PARTREF::RefID, REPORTER::Report(), RPT_SEVERITY_ERROR, LIB_ID::SetLibItemName(), LIB_ID::SetLibNickname(), SCH_PIN::SetNumber(), SCH_SYMBOL::SetOrientation(), SCH_SYMBOL::SetPosition(), SCH_SYMBOL::SetRef(), and SCH_SYMBOL::UpdatePins().
Referenced by loadSchematicSymbolInstances().
|
private |
Definition at line 723 of file cadstar_sch_archive_loader.cpp.
References _, SCH_SYMBOL::AddField(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Alignment, CADSTAR_ARCHIVE_PARSER::SYMDEF::Alternate, ANGLE_0, ANGLE_180, SCH_SCREEN::Append(), applyTextSettings(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::AttributeID, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::AttributeLocation, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::AttributeValues, CADSTAR_SCH_ARCHIVE_PARSER::COMP::AttrLoc, CADSTAR_SCH_ARCHIVE_PARSER::PARTREF::AttrLoc, SCH_LABEL_BASE::AutoplaceFields(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::ComponentRef, copy, CTX_LIBID, CADSTAR_SCH_ARCHIVE_PARSER::COMP::Designator, EscapeString(), SCH_SYMBOL::FindField(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::GateID, LIB_SYMBOL::GetAllLibPins(), getAngle(), getAttributeName(), SCH_SYMBOL::GetField(), SCH_SYMBOL::GetFieldCount(), getKiCadLibraryPoint(), getKiCadPoint(), SCH_FIELD::GetName(), getPart(), LIB_SYMBOL::GetReferenceField(), getScaledLibPart(), getSpinStyle(), EDA_TEXT::GetText(), LIB_SYMBOL::GetValueField(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::HasLocation, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::HasPartRef, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::ID, isAttributeVisible(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::IsComponent, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::IsSymbolVariant, CADSTAR_ARCHIVE_PARSER::PARTNAMECOL::IsVisible, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Justification, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::LayerID, CADSTAR_SCH_ARCHIVE_PARSER::Library, LINK_ORIGIN_ATTRID, loadSchematicSymbol(), loadSymbolFieldAttribute(), loadSymbolGateAndPartFields(), loadSymdef(), m_globalLabelsMap, m_loadedSymbols, m_partMap, m_partSymbolsMap, m_powerSymLibMap, m_powerSymMap, m_reporter, m_sheetMap, EDA_IU_SCALE::MilsToIU(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Mirror, CADSTAR_ARCHIVE_PARSER::PART::Name, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::OrientAngle, CADSTAR_ARCHIVE_PARSER::SYMDEF::Origin, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Origin, CADSTAR_ARCHIVE_PARSER::PARTS::PartDefinitions, PartNameFieldName, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::PartRef, CADSTAR_SCH_ARCHIVE_PARSER::Parts, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Position, CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL::Position, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOLVARIANT::Reference, REFERENCE_FIELD, CADSTAR_SCH_ARCHIVE_PARSER::PARTREF::RefID, REPORTER::Report(), RotatePoint(), RPT_SEVERITY_ERROR, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::ScaleRatioDenominator, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::ScaleRatioNumerator, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, schIUScale, LIB_SYMBOL::SetName(), SCH_FIELD::SetPosition(), SCH_LABEL_BASE::SetPosition(), LIB_SYMBOL::SetPower(), SCH_LABEL_BASE::SetShape(), SYMBOL::SetShowPinNames(), SYMBOL::SetShowPinNumbers(), SCH_GLOBALLABEL::SetSpinStyle(), EDA_TEXT::SetText(), SCH_FIELD::SetText(), EDA_TEXT::SetTextSize(), EDA_TEXT::SetVisible(), SIGNALNAME_ORIGIN_ATTRID, CADSTAR_SCH_ARCHIVE_PARSER::LIBRARY_SCM::SymbolDefinitions, CADSTAR_SCH_ARCHIVE_PARSER::SymbolPartNameColor, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Symbols, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::SymbolVariant, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::SymdefID, CADSTAR_SCH_ARCHIVE_PARSER::SYMDEF_SCM::Terminals, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::TextCodeID, CADSTAR_ARCHIVE_PARSER::SYMDEF::TextLocations, THROW_IO_ERROR, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOLVARIANT::Type, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::Value, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::VariantID, and CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::VariantParentSymbolID.
Referenced by Load().
|
private |
Definition at line 2380 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::ANTICLOCKWISE_ARC, CADSTAR_ARCHIVE_PARSER::ANTICLOCKWISE_SEMICIRCLE, applyTransform(), CADSTAR_ARCHIVE_PARSER::VERTEX::BuildArc(), CADSTAR_ARCHIVE_PARSER::CLOCKWISE_ARC, CADSTAR_ARCHIVE_PARSER::CLOCKWISE_SEMICIRCLE, CADSTAR_ARCHIVE_PARSER::VERTEX::End, SHAPE_ARC::GetArcMid(), getKiCadPoint(), getLineStyle(), getLineThickness(), SHAPE_ARC::GetP0(), SHAPE_ARC::GetP1(), KiROUND(), LAYER_NOTES, loadItemOntoKiCadSheet(), CADSTAR_ARCHIVE_PARSER::POINT, EDA_SHAPE::SetArcGeometry(), SCH_LINE::SetEndPoint(), SCH_ITEM::SetLayer(), SCH_LINE::SetLineStyle(), SCH_LINE::SetLineWidth(), SCH_LINE::SetStartPoint(), and CADSTAR_ARCHIVE_PARSER::VERTEX::Type.
Referenced by loadFigure().
|
private |
Definition at line 2475 of file cadstar_sch_archive_loader.cpp.
References SCH_SCREEN::Append(), SCH_SHEET::AutoplaceFields(), CADSTAR_SCH_ARCHIVE_PARSER::Filename, SCH_SHEET::GetFields(), PROJECT::GetProjectPath(), SCH_SHEET::GetScreen(), getSheetNumber(), FILEEXT::KiCadSchematicFileExtension, SCH_SHEET_PATH::Last(), loadChildSheets(), m_schematic, m_sheetMap, name, SCHEMATIC::Prj(), SCH_SHEET_PATH::push_back(), ReplaceIllegalFileNameChars(), SCH_SCREEN::SetFileName(), SCH_SHEET_PATH::SetPageNumber(), SCH_SHEET::SetScreen(), SCH_FIELD::SetText(), SHEETFILENAME, SHEETNAME, CADSTAR_SCH_ARCHIVE_PARSER::SHEETS::SheetNames, and CADSTAR_SCH_ARCHIVE_PARSER::Sheets.
Referenced by loadChildSheets(), and loadSheets().
|
private |
Definition at line 551 of file cadstar_sch_archive_loader.cpp.
References _, CADSTAR_SCH_ARCHIVE_PARSER::Filename, findOrphanSheets(), CADSTAR_ARCHIVE_PARSER::HEADER::Format, PROJECT::GetProjectPath(), SCH_SHEET::GetScreen(), getSheetNumber(), CADSTAR_SCH_ARCHIVE_PARSER::Header, FILEEXT::KiCadSchematicFileExtension, loadChildSheets(), loadSheetAndChildSheets(), m_rootSheet, m_schematic, m_sheetMap, EDA_IU_SCALE::MilsToIU(), SCHEMATIC::Prj(), SCH_SHEET_PATH::push_back(), ReplaceIllegalFileNameChars(), schIUScale, SCH_SCREEN::SetFileName(), SCH_SHEET_PATH::SetPageNumber(), THROW_IO_ERROR, and CADSTAR_ARCHIVE_PARSER::FORMAT::Type.
Referenced by Load().
|
private |
Definition at line 2202 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Alignment, applyTextSettings(), EDA_ANGLE::AsDegrees(), getAngle(), getCadstarAngle(), getKiCadPoint(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Justification, KiROUND(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Mirror, mirrorX(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::OrientAngle, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Position, rotate180(), SCH_FIELD::SetPosition(), EDA_TEXT::SetVisible(), and CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::TextCodeID.
Referenced by loadSchematicSymbolInstances().
|
private |
Definition at line 1834 of file cadstar_sch_archive_loader.cpp.
References addNewFieldToSymbol(), applyTextSettings(), applyToLibraryFieldAttribute(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::AttributeValues, CADSTAR_ARCHIVE_PARSER::PART::AttributeValues, copySymbolItems(), CADSTAR_ARCHIVE_PARSER::PART::Definition, CADSTAR_ARCHIVE_PARSER::EscapeFieldText(), getAttributeName(), getKiCadPinType(), getKiCadUnitNumberFromGate(), SCH_FIELD::GetName(), getPartDefinitionPin(), CADSTAR_ARCHIVE_PARSER::HandleTextOverbar(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::HidePinNames, CADSTAR_ARCHIVE_PARSER::PART::ID, isAttributeVisible(), CADSTAR_ARCHIVE_PARSER::LEFT, CADSTAR_SCH_ARCHIVE_PARSER::Library, loadSymdef(), m_pinNumsMap, m_symDefTerminalsMap, CADSTAR_ARCHIVE_PARSER::PART::Name, CADSTAR_ARCHIVE_PARSER::NO_ALIGNMENT, PartNameFieldName, pin, setFootprintOnSymbol(), SCH_FIELD::SetText(), SCH_ITEM::SetUnit(), EDA_TEXT::SetVisible(), CADSTAR_SCH_ARCHIVE_PARSER::LIBRARY_SCM::SymbolDefinitions, and CADSTAR_ARCHIVE_PARSER::UNDEFINED_VALUE.
Referenced by loadPartsLibrary(), and loadSchematicSymbolInstances().
|
private |
Definition at line 1618 of file cadstar_sch_archive_loader.cpp.
References addNewFieldToSymbol(), CADSTAR_ARCHIVE_PARSER::TEXT::Alignment, applyTextCodeIfExists(), applyTextSettings(), applyToLibraryFieldAttribute(), ARC_ACCURACY, CADSTAR_ARCHIVE_PARSER::SYMDEF::AttributeValues, CADSTAR_ARCHIVE_PARSER::SYMDEF::BuildLibName(), CADSTAR_ARCHIVE_PARSER::SHAPE::ConvertToPolySet(), CADSTAR_ARCHIVE_PARSER::SYMDEF::Figures, fixUpLibraryPins(), getAttributeName(), BOX2< Vec >::GetBottom(), getKiCadLibraryPoint(), BOX2< Vec >::GetLeft(), getLineStyle(), getLineThickness(), SCH_FIELD::GetName(), getTextHeightFromTextCode(), GR_TEXT_H_ALIGN_LEFT, GR_TEXT_V_ALIGN_BOTTOM, CADSTAR_ARCHIVE_PARSER::HATCHED, CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL::ID, CADSTAR_ARCHIVE_PARSER::PARTNAMECOL::IsVisible, CADSTAR_ARCHIVE_PARSER::TEXT::Justification, LAYER_DEVICE, CADSTAR_SCH_ARCHIVE_PARSER::Library, CADSTAR_ARCHIVE_PARSER::FIGURE::LineCodeID, LINK_ORIGIN_ATTRID, loadLibrarySymbolShapeVertices(), m_symDefMap, m_symDefTerminalsMap, CADSTAR_ARCHIVE_PARSER::TEXT::Mirror, CADSTAR_ARCHIVE_PARSER::OPENSHAPE, CADSTAR_ARCHIVE_PARSER::TEXT::OrientAngle, CADSTAR_ARCHIVE_PARSER::SYMDEF::Origin, CADSTAR_ARCHIVE_PARSER::OUTLINE, PART_NAME_ATTRID, PartNameFieldName, pin, CADSTAR_SCH_ARCHIVE_PARSER::SYMDEF_SCM::PinLabelLocations, CADSTAR_SCH_ARCHIVE_PARSER::SYMDEF_SCM::PinNumberLocations, CADSTAR_ARCHIVE_PARSER::TEXT::Position, CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL::Position, RotatePoint(), EDA_SHAPE::SetFillMode(), EDA_TEXT::SetHorizJustify(), EDA_TEXT::SetMultilineAllowed(), EDA_SHAPE::SetPolyShape(), SCH_SHAPE::SetStroke(), EDA_TEXT::SetText(), EDA_TEXT::SetTextPos(), SCH_ITEM::SetUnit(), EDA_TEXT::SetVertJustify(), EDA_TEXT::SetVisible(), CADSTAR_ARCHIVE_PARSER::FIGURE::Shape, SIGNALNAME_ORIGIN_ATTRID, CADSTAR_ARCHIVE_PARSER::SOLID, SYMBOL_NAME_ATTRID, CADSTAR_SCH_ARCHIVE_PARSER::LIBRARY_SCM::SymbolDefinitions, CADSTAR_SCH_ARCHIVE_PARSER::SymbolPartNameColor, CADSTAR_SCH_ARCHIVE_PARSER::SYMDEF_SCM::Terminals, CADSTAR_ARCHIVE_PARSER::TEXT::Text, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::TextCodeID, CADSTAR_ARCHIVE_PARSER::TEXT::TextCodeID, CADSTAR_ARCHIVE_PARSER::SYMDEF::TextLocations, CADSTAR_ARCHIVE_PARSER::SYMDEF::Texts, CADSTAR_ARCHIVE_PARSER::SHAPE::Type, CADSTAR_ARCHIVE_PARSER::SHAPE::Vertices, and wxStringSplit().
Referenced by loadLibPart(), loadSchematicSymbolInstances(), and loadSymbolGateAndPartFields().
|
private |
Definition at line 1457 of file cadstar_sch_archive_loader.cpp.
References getKiCadSchText(), CADSTAR_ARCHIVE_PARSER::TEXT::LayerID, loadItemOntoKiCadSheet(), CADSTAR_SCH_ARCHIVE_PARSER::Schematic, and CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Texts.
Referenced by Load().
|
private |
Definition at line 1530 of file cadstar_sch_archive_loader.cpp.
References _, CADSTAR_ARCHIVE_PARSER::CADSTAR_TO_KICAD_FIELDS, CADSTAR_ARCHIVE_PARSER::VARIANT::Description, CADSTAR_ARCHIVE_PARSER::DESIGN_TITLE, CADSTAR_ARCHIVE_PARSER::PARSER_CONTEXT::FilenamesToTextMap, PROJECT::GetTextVars(), CADSTAR_SCH_ARCHIVE_PARSER::Header, CADSTAR_ARCHIVE_PARSER::PARSER_CONTEXT::InconsistentTextFields, CADSTAR_ARCHIVE_PARSER::HEADER::JobTitle, CADSTAR_ARCHIVE_PARSER::m_context, m_reporter, m_schematic, CADSTAR_ARCHIVE_PARSER::VARIANT::Name, SCHEMATIC::Prj(), REPORTER::Report(), RPT_SEVERITY_ERROR, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, CADSTAR_ARCHIVE_PARSER::PARSER_CONTEXT::TextFieldToValuesMap, CADSTAR_ARCHIVE_PARSER::VARIANT_DESCRIPTION, CADSTAR_ARCHIVE_PARSER::VARIANT_NAME, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::VariantHierarchy, and CADSTAR_ARCHIVE_PARSER::VARIANT_HIERARCHY::Variants.
Referenced by Load().
|
private |
Definition at line 2923 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::BOTTOMCENTER, CADSTAR_ARCHIVE_PARSER::BOTTOMLEFT, CADSTAR_ARCHIVE_PARSER::BOTTOMRIGHT, CADSTAR_ARCHIVE_PARSER::CENTERCENTER, CADSTAR_ARCHIVE_PARSER::CENTERLEFT, CADSTAR_ARCHIVE_PARSER::CENTERRIGHT, CADSTAR_ARCHIVE_PARSER::NO_ALIGNMENT, CADSTAR_ARCHIVE_PARSER::TOPCENTER, CADSTAR_ARCHIVE_PARSER::TOPLEFT, and CADSTAR_ARCHIVE_PARSER::TOPRIGHT.
Referenced by applyTextSettings(), and loadSymbolFieldAttribute().
|
inherited |
Parses the file.
IO_ERROR | if file could not be opened or there was an error while parsing |
Definition at line 33 of file cadstar_sch_archive_parser.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::Assignments, CADSTAR_SCH_ARCHIVE_PARSER::AttrColors, PROGRESS_REPORTER::BeginPhase(), CADSTAR_ARCHIVE_PARSER::checkPoint(), CADSTAR_ARCHIVE_PARSER::PARSER_CONTEXT::CheckPointCallback, CADSTAR_SCH_ARCHIVE_PARSER::Filename, XNODE::GetChildren(), XNODE::GetNext(), CADSTAR_ARCHIVE_PARSER::GetNumberOfStepsForReporting(), CADSTAR_SCH_ARCHIVE_PARSER::Header, CADSTAR_ARCHIVE_PARSER::HUNDREDTH_MICRON, CADSTAR_SCH_ARCHIVE_PARSER::KiCadUnitDivider, CADSTAR_SCH_ARCHIVE_PARSER::Library, CADSTAR_ARCHIVE_PARSER::LoadArchiveFile(), CADSTAR_ARCHIVE_PARSER::m_context, CADSTAR_ARCHIVE_PARSER::m_progressReporter, CADSTAR_SCH_ARCHIVE_PARSER::m_rootNode, CADSTAR_ARCHIVE_PARSER::HEADER::Parse(), CADSTAR_ARCHIVE_PARSER::PARTS::Parse(), CADSTAR_ARCHIVE_PARSER::ATTRCOLORS::Parse(), CADSTAR_ARCHIVE_PARSER::PARTNAMECOL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::LIBRARY_SCM::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SHEETS::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::Parts, CADSTAR_ARCHIVE_PARSER::HEADER::Resolution, SCH_IU_PER_MM, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, PROGRESS_REPORTER::SetMaxProgress(), CADSTAR_SCH_ARCHIVE_PARSER::Sheets, CADSTAR_SCH_ARCHIVE_PARSER::SymbolPartNameColor, THROW_MISSING_NODE_IO_ERROR, and THROW_UNKNOWN_NODE_IO_ERROR.
Referenced by Load(), and LoadPartsLib().
|
staticinherited |
Definition at line 1050 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::BOTTOMCENTER, CADSTAR_ARCHIVE_PARSER::BOTTOMLEFT, CADSTAR_ARCHIVE_PARSER::BOTTOMRIGHT, CADSTAR_ARCHIVE_PARSER::CENTERCENTER, CADSTAR_ARCHIVE_PARSER::CENTERLEFT, CADSTAR_ARCHIVE_PARSER::CENTERRIGHT, CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), CADSTAR_ARCHIVE_PARSER::NO_ALIGNMENT, THROW_UNKNOWN_PARAMETER_IO_ERROR, CADSTAR_ARCHIVE_PARSER::TOPCENTER, CADSTAR_ARCHIVE_PARSER::TOPLEFT, and CADSTAR_ARCHIVE_PARSER::TOPRIGHT.
Referenced by CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), CADSTAR_ARCHIVE_PARSER::TEXT::Parse(), and CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::ParseSubNode().
|
staticinherited |
if no children are present, it just returns an empty vector (without throwing an exception)
aNode | containing a series of CUTOUT objects |
aTestAllChildNodes | |
aExpectedNumPoints | if -1, this is check is disabled |
IO_ERROR | if one of the following:
|
Definition at line 2710 of file cadstar_archive_parser.cpp.
References XNODE::GetChildren(), XNODE::GetNext(), CADSTAR_ARCHIVE_PARSER::CUTOUT::Parse(), and THROW_UNKNOWN_NODE_IO_ERROR.
Referenced by CADSTAR_ARCHIVE_PARSER::SHAPE::Parse().
|
staticinherited |
if no children are present, it just returns an empty vector (without throwing an exception)
aNode | containing a series of POINT objects |
aTestAllChildNodes | |
aExpectedNumPoints | if UNDEFINED_VALUE (i.e. -1), this is check is disabled |
IO_ERROR | if one of the following:
|
Definition at line 2650 of file cadstar_archive_parser.cpp.
References _, XNODE::GetChildren(), XNODE::GetNext(), CADSTAR_ARCHIVE_PARSER::POINT::Parse(), THROW_IO_ERROR, THROW_UNKNOWN_NODE_IO_ERROR, and CADSTAR_ARCHIVE_PARSER::UNDEFINED_VALUE.
Referenced by CADSTAR_ARCHIVE_PARSER::VERTEX::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::CONNECTION_SCH::Parse(), and CADSTAR_ARCHIVE_PARSER::SETTINGS::ParseSubNode().
|
staticinherited |
if no children are present, it just returns an empty vector (without throwing an exception)
aNode | containing a series of VERTEX objects |
aTestAllChildNodes | |
aExpectedNumPoints | if -1, this is check is disabled |
IO_ERROR | if one of the following: |
Definition at line 2684 of file cadstar_archive_parser.cpp.
References XNODE::GetChildren(), XNODE::GetNext(), CADSTAR_ARCHIVE_PARSER::VERTEX::IsVertex(), CADSTAR_ARCHIVE_PARSER::VERTEX::Parse(), and THROW_UNKNOWN_NODE_IO_ERROR.
Referenced by CADSTAR_ARCHIVE_PARSER::CUTOUT::Parse(), and CADSTAR_ARCHIVE_PARSER::SHAPE::Parse().
|
staticinherited |
Definition at line 681 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::DEGREES, CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), CADSTAR_ARCHIVE_PARSER::RADIANS, and THROW_UNKNOWN_PARAMETER_IO_ERROR.
Referenced by CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Parse().
|
staticinherited |
aNode | with a child node containing an EVALUE |
aValueToParse |
IO_ERROR | if unable to parse or node is not an EVALUE |
Definition at line 2640 of file cadstar_archive_parser.cpp.
References XNODE::GetChildren(), CADSTAR_ARCHIVE_PARSER::EVALUE::Parse(), and THROW_UNKNOWN_NODE_IO_ERROR.
Referenced by CADSTAR_PCB_ARCHIVE_PARSER::MATERIAL::Parse().
|
staticinherited |
Definition at line 1082 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::CENTER, CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), CADSTAR_ARCHIVE_PARSER::LEFT, CADSTAR_ARCHIVE_PARSER::RIGHT, and THROW_UNKNOWN_PARAMETER_IO_ERROR.
Referenced by CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), CADSTAR_ARCHIVE_PARSER::TEXT::Parse(), and CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::ParseSubNode().
|
staticinherited |
Definition at line 1101 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::BOTTOM_TO_TOP, CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), THROW_UNKNOWN_PARAMETER_IO_ERROR, and CADSTAR_ARCHIVE_PARSER::TOP_TO_BOTTOM.
Referenced by CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::DRILL_TABLE::Parse().
|
staticinherited |
Definition at line 1513 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), CADSTAR_ARCHIVE_PARSER::NO_SWAP, THROW_UNKNOWN_PARAMETER_IO_ERROR, and CADSTAR_ARCHIVE_PARSER::USE_SWAP_LAYER.
Referenced by CADSTAR_ARCHIVE_PARSER::FIGURE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_COPPER::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_AREA::Parse(), and CADSTAR_ARCHIVE_PARSER::TEXT::Parse().
|
staticinherited |
Definition at line 153 of file cadstar_sch_archive_parser.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::ANNULUS, CADSTAR_SCH_ARCHIVE_PARSER::BOX, CADSTAR_SCH_ARCHIVE_PARSER::BULLET, CADSTAR_SCH_ARCHIVE_PARSER::CIRCLE, CADSTAR_SCH_ARCHIVE_PARSER::CROSS, CADSTAR_SCH_ARCHIVE_PARSER::DIAMOND, CADSTAR_SCH_ARCHIVE_PARSER::FINGER, CADSTAR_SCH_ARCHIVE_PARSER::OCTAGON, CADSTAR_SCH_ARCHIVE_PARSER::PLUS, CADSTAR_SCH_ARCHIVE_PARSER::POINTER, CADSTAR_SCH_ARCHIVE_PARSER::RECTANGLE, CADSTAR_SCH_ARCHIVE_PARSER::ROUNDED_RECT, CADSTAR_SCH_ARCHIVE_PARSER::SQUARE, CADSTAR_SCH_ARCHIVE_PARSER::STAR, CADSTAR_SCH_ARCHIVE_PARSER::TRIANGLE, and CADSTAR_SCH_ARCHIVE_PARSER::UNDEFINED.
Referenced by CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL_SHAPE::IsTermShape(), and CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL_SHAPE::Parse().
|
staticinherited |
Replaces CADSTAR fields for the equivalent in KiCad and stores the field values in aParserContext.
aTextString | Text string to parse |
aParserContext | PARSER_CONTEXT in which to store the values of the found fields |
Definition at line 856 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::CADSTAR_TO_KICAD_FIELDS, CADSTAR_ARCHIVE_PARSER::COMPANY_NAME, CADSTAR_ARCHIVE_PARSER::CURRENT_USER, CADSTAR_ARCHIVE_PARSER::DATE, CADSTAR_ARCHIVE_PARSER::DESIGN_TITLE, CADSTAR_ARCHIVE_PARSER::DISTANCE, CADSTAR_ARCHIVE_PARSER::PARSER_CONTEXT::FilenamesToTextMap, CADSTAR_ARCHIVE_PARSER::FROM_FILE, CADSTAR_ARCHIVE_PARSER::HYPERLINK, CADSTAR_ARCHIVE_PARSER::PARSER_CONTEXT::InconsistentTextFields, KI_FALLTHROUGH, CADSTAR_ARCHIVE_PARSER::LONG_JOBNAME, CADSTAR_ARCHIVE_PARSER::MACHINE_NAME, CADSTAR_ARCHIVE_PARSER::NONE, CADSTAR_ARCHIVE_PARSER::NUM_OF_SHEETS, CADSTAR_ARCHIVE_PARSER::ParseTextFields(), CADSTAR_ARCHIVE_PARSER::REG_USER, CADSTAR_ARCHIVE_PARSER::SHEET_NAME, CADSTAR_ARCHIVE_PARSER::SHEET_NUMBER, CADSTAR_ARCHIVE_PARSER::SHORT_JOBNAME, CADSTAR_ARCHIVE_PARSER::PARSER_CONTEXT::TextFieldToValuesMap, CADSTAR_ARCHIVE_PARSER::PARSER_CONTEXT::TextToHyperlinksMap, CADSTAR_ARCHIVE_PARSER::TIME, CADSTAR_ARCHIVE_PARSER::UNITS_ABBREV, CADSTAR_ARCHIVE_PARSER::UNITS_FULL, CADSTAR_ARCHIVE_PARSER::UNITS_SHORT, CADSTAR_ARCHIVE_PARSER::VARIANT_DESCRIPTION, and CADSTAR_ARCHIVE_PARSER::VARIANT_NAME.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::applyDimensionSettings(), CADSTAR_PCB_ARCHIVE_LOADER::loadDimensions(), CADSTAR_ARCHIVE_PARSER::TEXT::Parse(), and CADSTAR_ARCHIVE_PARSER::ParseTextFields().
|
staticinherited |
Definition at line 654 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::CENTIMETER, CADSTAR_ARCHIVE_PARSER::DESIGN, CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), CADSTAR_ARCHIVE_PARSER::INCH, CADSTAR_ARCHIVE_PARSER::METER, CADSTAR_ARCHIVE_PARSER::MICROMETRE, CADSTAR_ARCHIVE_PARSER::MM, CADSTAR_ARCHIVE_PARSER::THOU, and THROW_UNKNOWN_PARAMETER_IO_ERROR.
Referenced by CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Parse(), and CADSTAR_ARCHIVE_PARSER::SETTINGS::ParseSubNode().
|
private |
Definition at line 2950 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::BOTTOMCENTER, CADSTAR_ARCHIVE_PARSER::BOTTOMLEFT, CADSTAR_ARCHIVE_PARSER::BOTTOMRIGHT, CADSTAR_ARCHIVE_PARSER::CENTERCENTER, CADSTAR_ARCHIVE_PARSER::CENTERLEFT, CADSTAR_ARCHIVE_PARSER::CENTERRIGHT, CADSTAR_ARCHIVE_PARSER::NO_ALIGNMENT, CADSTAR_ARCHIVE_PARSER::TOPCENTER, CADSTAR_ARCHIVE_PARSER::TOPLEFT, and CADSTAR_ARCHIVE_PARSER::TOPRIGHT.
Referenced by applyTextSettings(), and loadSymbolFieldAttribute().
|
private |
Definition at line 1977 of file cadstar_sch_archive_loader.cpp.
References LIB_ID::Format(), CADSTAR_ARCHIVE_PARSER::generateLibName(), and m_footprintLibName.
Referenced by loadLibPart(), and loadSymbolGateAndPartFields().
|
inline |
Definition at line 90 of file cadstar_sch_archive_loader.h.
References m_footprintLibName.
Referenced by SCH_IO_CADSTAR_ARCHIVE::ensureLoadedLibrary().
const double CADSTAR_SCH_ARCHIVE_LOADER::ARC_ACCURACY = SCH_IU_PER_MM * 0.01 |
Definition at line 62 of file cadstar_sch_archive_loader.h.
Referenced by loadSymdef().
|
inherited |
Definition at line 457 of file cadstar_sch_archive_parser.h.
Referenced by applyTextCodeIfExists(), checkDesignLimits(), getAttributeName(), getFigureExtentsKiCad(), getLineStyle(), getLineThickness(), getRouteCode(), getTextCode(), Load(), and CADSTAR_SCH_ARCHIVE_PARSER::Parse().
|
inherited |
Definition at line 462 of file cadstar_sch_archive_parser.h.
Referenced by isAttributeVisible(), and CADSTAR_SCH_ARCHIVE_PARSER::Parse().
|
staticinherited |
Map between CADSTAR fields and KiCad text variables.
This is used as a lookup table when parsing CADSTAR text fields. Most variables have a similar name in KiCad as in CADSTAR.
Definition at line 172 of file cadstar_archive_parser.h.
Referenced by loadTextVariables(), CADSTAR_PCB_ARCHIVE_LOADER::loadTextVariables(), and CADSTAR_ARCHIVE_PARSER::ParseTextFields().
|
inherited |
Definition at line 455 of file cadstar_sch_archive_parser.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER(), loadSheetAndChildSheets(), loadSheets(), and CADSTAR_SCH_ARCHIVE_PARSER::Parse().
|
staticinherited |
Definition at line 330 of file cadstar_archive_parser.h.
Referenced by applyTextCodeIfExists().
|
staticinherited |
Definition at line 329 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 456 of file cadstar_sch_archive_parser.h.
Referenced by getAngle(), getCadstarAngle(), loadSheets(), loadTextVariables(), and CADSTAR_SCH_ARCHIVE_PARSER::Parse().
|
inherited |
Use this value to convert units in this CSA file to KiCad units.
Definition at line 465 of file cadstar_sch_archive_parser.h.
Referenced by checkDesignLimits(), getKiCadLength(), and CADSTAR_SCH_ARCHIVE_PARSER::Parse().
|
inherited |
Definition at line 458 of file cadstar_sch_archive_parser.h.
Referenced by getLocationOfNetElement(), getSymDefFromName(), loadDocumentationSymbols(), loadLibPart(), loadSchematicSymbolInstances(), loadSymbolGateAndPartFields(), loadSymdef(), and CADSTAR_SCH_ARCHIVE_PARSER::Parse().
Cadstar->KiCad Buses.
Definition at line 132 of file cadstar_sch_archive_loader.h.
Referenced by loadBusses(), and loadNets().
|
protectedinherited |
Definition at line 1434 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::applyDimensionSettings(), CADSTAR_PCB_ARCHIVE_LOADER::loadDimensions(), loadTextVariables(), CADSTAR_PCB_ARCHIVE_LOADER::loadTextVariables(), CADSTAR_SCH_ARCHIVE_PARSER::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::Parse().
|
private |
Cache storing symbol names (default alternate) to symdef IDs.
Definition at line 144 of file cadstar_sch_archive_loader.h.
Referenced by getSymDefFromName().
|
private |
Required for calculating the offset to apply to the Cadstar design so that it fits in the KiCad canvas.
Definition at line 124 of file cadstar_sch_archive_loader.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER(), getKiCadPoint(), and Load().
|
private |
Definition at line 117 of file cadstar_sch_archive_loader.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER().
|
private |
Name of the footprint library to prepend all footprints with.
Definition at line 118 of file cadstar_sch_archive_loader.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER(), loadSchematicSymbol(), setFootprintOnSymbol(), and SetFpLibName().
|
private |
Cadstar->KiCad Global Labels.
Definition at line 131 of file cadstar_sch_archive_loader.h.
Referenced by loadNets(), and loadSchematicSymbolInstances().
|
private |
Loaded symbols so far.
Definition at line 153 of file cadstar_sch_archive_loader.h.
Referenced by GetLoadedSymbols(), loadPartsLibrary(), and loadSchematicSymbolInstances().
|
private |
Cadstar->KiCad Parts.
Definition at line 128 of file cadstar_sch_archive_loader.h.
Referenced by loadPartsLibrary(), and loadSchematicSymbolInstances().
|
private |
Map holding the symbols loaded so far for a particular PART_ID and GATE_ID.
Definition at line 154 of file cadstar_sch_archive_loader.h.
Referenced by loadPartsLibrary(), and loadSchematicSymbolInstances().
|
private |
Cadstar Part->KiCad Pin number map.
Definition at line 133 of file cadstar_sch_archive_loader.h.
Referenced by loadSchematicSymbol(), and loadSymbolGateAndPartFields().
|
private |
NetName->KiCad Power Lib Symbol.
Definition at line 130 of file cadstar_sch_archive_loader.h.
Referenced by loadSchematicSymbolInstances().
|
private |
Cadstar->KiCad Power Symbols.
Definition at line 129 of file cadstar_sch_archive_loader.h.
Referenced by loadNets(), and loadSchematicSymbolInstances().
|
protectedinherited |
Definition at line 1435 of file cadstar_archive_parser.h.
Referenced by CADSTAR_ARCHIVE_PARSER::CADSTAR_ARCHIVE_PARSER(), CADSTAR_PCB_ARCHIVE_LOADER::CADSTAR_PCB_ARCHIVE_LOADER(), CADSTAR_SCH_ARCHIVE_LOADER(), CADSTAR_ARCHIVE_PARSER::checkPoint(), CADSTAR_PCB_ARCHIVE_LOADER::Load(), Load(), CADSTAR_PCB_ARCHIVE_LOADER::LoadLibrary(), LoadPartsLib(), CADSTAR_SCH_ARCHIVE_PARSER::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::Parse().
|
private |
Definition at line 114 of file cadstar_sch_archive_loader.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER(), getLocationOfNetElement(), Load(), loadChildSheets(), loadDocumentationSymbols(), loadLibPart(), loadPartsLibrary(), loadSchematicSymbol(), loadSchematicSymbolInstances(), and loadTextVariables().
|
privateinherited |
Definition at line 468 of file cadstar_sch_archive_parser.h.
Referenced by CADSTAR_SCH_ARCHIVE_PARSER::Parse(), and CADSTAR_SCH_ARCHIVE_PARSER::~CADSTAR_SCH_ARCHIVE_PARSER().
|
private |
Definition at line 116 of file cadstar_sch_archive_loader.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER(), Load(), loadSchematicSymbol(), and loadSheets().
|
private |
Definition at line 115 of file cadstar_sch_archive_loader.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER(), getKiCadSchText(), Load(), loadChildSheets(), loadSheetAndChildSheets(), loadSheets(), and loadTextVariables().
Cadstar->KiCad Sheets.
Definition at line 126 of file cadstar_sch_archive_loader.h.
Referenced by Load(), loadBusses(), loadChildSheets(), loadHierarchicalSheetPins(), loadItemOntoKiCadSheet(), loadNets(), loadSchematicSymbol(), loadSchematicSymbolInstances(), loadSheetAndChildSheets(), and loadSheets().
|
private |
Cadstar->KiCad Sheet Pins.
Definition at line 127 of file cadstar_sch_archive_loader.h.
Referenced by loadHierarchicalSheetPins(), and loadNets().
|
private |
Cadstar->KiCad Lib Symbols loaded so far.
Note that in CADSTAR each symbol represents just a gate, so the LIB_SYMBOLs contained here are not imported directly - they are just an interim step.
Definition at line 151 of file cadstar_sch_archive_loader.h.
Referenced by loadSymdef().
|
private |
Cache storing symbol names and alternates to symdef IDs.
Definition at line 139 of file cadstar_sch_archive_loader.h.
Referenced by getSymDefFromName().
|
private |
Definition at line 134 of file cadstar_sch_archive_loader.h.
Referenced by loadLibPart(), loadSymbolGateAndPartFields(), and loadSymdef().
|
inherited |
Definition at line 459 of file cadstar_sch_archive_parser.h.
Referenced by getPart(), Load(), loadPartsLibrary(), loadSchematicSymbolInstances(), and CADSTAR_SCH_ARCHIVE_PARSER::Parse().
|
inherited |
Definition at line 461 of file cadstar_sch_archive_parser.h.
Referenced by findOrphanSheets(), getLocationOfNetElement(), Load(), loadBusses(), loadChildSheets(), loadDocumentationSymbols(), loadFigures(), loadHierarchicalSheetPins(), loadNets(), loadSchematicSymbolInstances(), loadTexts(), loadTextVariables(), and CADSTAR_SCH_ARCHIVE_PARSER::Parse().
|
inherited |
Definition at line 460 of file cadstar_sch_archive_parser.h.
Referenced by findOrphanSheets(), getSheetNumber(), loadChildSheets(), loadItemOntoKiCadSheet(), loadSheetAndChildSheets(), and CADSTAR_SCH_ARCHIVE_PARSER::Parse().
const int CADSTAR_SCH_ARCHIVE_LOADER::SMALL_LABEL_SIZE = KiROUND( (double) SCH_IU_PER_MM * 0.4 ) |
Definition at line 61 of file cadstar_sch_archive_loader.h.
Referenced by loadNets().
|
inherited |
Definition at line 463 of file cadstar_sch_archive_parser.h.
Referenced by loadSchematicSymbolInstances(), loadSymdef(), and CADSTAR_SCH_ARCHIVE_PARSER::Parse().
|
staticinherited |
CADSTAR fonts are drawn on a 24x24 integer matrix, where the each axis goes from 0 to 24.
The characters can each specify a width of between 12 and 24, but the height is fixed at 24.
The default CADSTAR font uses y=5 as the starting point for capital letters, leaving space for the tails of letters such as "g", "p", "y", "q", etc.
The font height in CADSTAR corresponds to the full 24 point height. In KiCad it only corresponds to the height above the guide line, meaning the overall text height will be larger in KiCad.
Definition at line 137 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::applyTextCode(), applyTextCodeIfExists(), and getTextHeightFromTextCode().
|
staticinherited |
Definition at line 124 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::getKiCadPad(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), loadNets(), loadSymbolGateAndPartFields(), CADSTAR_PCB_ARCHIVE_LOADER::loadTemplates(), CADSTAR_ARCHIVE_PARSER::VERTEX::Parse(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Parse(), CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::PIN_NUM_LABEL_LOC::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SYMDEF_SCM::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SIGNALREFERENCELINK::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SIGLOC::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SYMDEF_PCB::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::TEMPLATE::POURING::Parse(), and CADSTAR_ARCHIVE_PARSER::ParseAllChildPoints().