|
KiCad PCB EDA Suite
|
#include <orcad_converter.h>
Classes | |
| struct | INTERFACE_LABEL_SOURCE |
| struct | LIB_ENTRY |
| One emitted KiCad lib symbol (possibly multi-unit). More... | |
| struct | NET_LABEL_INTENT |
| struct | OFFPAGE_NET |
| One resolved off-page connector: index into page.offpage, net, pin position. More... | |
| struct | PLACED_PACKAGE_UNIT |
| struct | SOURCE_PIN_IDENTITY |
| struct | UNIT_INFO |
| – shared bookkeeping types ------------------------------------------------— More... | |
Public Member Functions | |
| ORCAD_CONVERTER (ORCAD_DESIGN &aDesign, SCHEMATIC *aSchematic, REPORTER *aReporter, PROGRESS_REPORTER *aProgressReporter=nullptr) | |
| aDesign is mutated and must outlive the converter. | |
| ~ORCAD_CONVERTER () | |
| Out-of-line: LIB_ENTRY holds LIB_SYMBOL by unique_ptr. | |
| SCH_SHEET * | Convert (SCH_SHEET *aRootSheet) |
| aRootSheet must have a screen and be registered on the schematic. | |
| std::vector< LIB_SYMBOL * > | BuildSymbolLibrary () |
| The caller owns the returned library symbols. | |
Static Public Attributes | |
| static constexpr const char * | LIB_NICK = "orcad_import" |
| Symbol library nickname used in every emitted LIB_ID. | |
Private Types | |
| using | PKG_KEY = std::tuple<std::string, std::string, int, std::string> |
| (sourcePackage-or-pkgName, pkgName, variant index, unit discriminator) -> (lib name, unit number). | |
Private Member Functions | |
| void | warn (const wxString &aMsg) |
| – reporting [orcad_converter_sheet.cpp] ---------------------------------------— | |
| void | note (const wxString &aMsg) |
| Fact about the source design (not a conversion problem): RPT_SEVERITY_INFO. | |
| void | prepareGlobalNetNames () |
| Capture net names ignore case; KiCad net names do not. | |
| std::string | canonicalGlobalNetName (const std::string &aName) const |
| Return the design-wide spelling selected by prepareGlobalNetNames(). | |
| std::string | effectiveInterfaceNetName (const std::string &aName) const |
| std::string | occurrenceElectricalNetName (uint32_t aOccurrenceId, const std::string &aName) const |
| bool | isPowerNetName (const std::string &aName) const |
| bool | isOffpageNetName (const std::string &aName) const |
| void | prepareSymbols () |
| ORCAD_SYMBOL_DEF | synthesizeSymbol (const std::string &aPkgName, const std::vector< const ORCAD_PLACED_INSTANCE * > &aInstances) const |
| Use placed pin positions to keep uncached symbols connected. | |
| std::string | unitLetter (const ORCAD_PLACED_INSTANCE &aInst) const |
| The unit key includes a non-Normal view so DeMorgan graphics remain distinct. | |
| std::pair< const ORCAD_SYMBOL_DEF *, int > | pickVariant (const ORCAD_PLACED_INSTANCE &aInst) const |
| Match cached variants to placed pin positions; use the first entry if none matches. | |
| std::pair< std::string, int > | libForInstance (const ORCAD_PLACED_INSTANCE &aInst, const PKG_KEY **aSourceUnit=nullptr) |
| Returns the registered library name and unit number. | |
| void | finalizeNativePowerPackages () |
| std::optional< uint32_t > | occurrenceNetIdFor (const std::string *aName) const |
| Return the occurrence net id owning aName, which the table identifies by address. | |
| void | finishConversion () |
| Run the shared finalization sequence that ends every conversion entry point. | |
| std::string | powerLibFor (const std::string &aSymbolName, const std::string &aNetName) |
| Key power symbols by net name because users can rename their ports. | |
| LIB_SYMBOL * | kicadSymbolFor (const std::string &aLibName) |
| void | addSymbolPrimitive (LIB_SYMBOL *aSymbol, const ORCAD_PRIMITIVE &aPrim, int aUnit, int aColor, int aOffsetX=0, int aOffsetY=0) |
| void | addSymbolArc (LIB_SYMBOL *aSymbol, const ORCAD_PRIMITIVE &aPrim, int aUnit, int aColor, int aOffsetX=0, int aOffsetY=0) |
| Polyline approximation of an arc primitive. | |
| void | addSymbolPin (LIB_SYMBOL *aSymbol, const ORCAD_SYMBOL_PIN &aPin, const wxString &aNumber, int aUnit, bool aPower, const std::string &aNameOverride, bool aNameVisible, bool aShowPinNumbers, bool aNumberVisible, const BOX2I *aBodyBox, bool aHidden=false, bool aExplicitNet=false) |
| void | placeInstance (ORCAD_RAW_PAGE &aPage, const ORCAD_PLACED_INSTANCE &aInst, SCH_SCREEN *aScreen, const SCH_SHEET_PATH &aSheetPath) |
| wxString | resolveReference (const ORCAD_PLACED_INSTANCE &aInst) const |
| Use the occurrence reference when the instance has an unannotated template. | |
| void | placePowerSymbol (ORCAD_RAW_PAGE &aPage, const ORCAD_GRAPHIC_INST &aInst, const std::string &aNet, SCH_SCREEN *aScreen, const SCH_SHEET_PATH &aSheetPath) |
| void | placeSymbolFields (SCH_SYMBOL *aSymbol, const ORCAD_PLACED_INSTANCE &aInst, const ORCAD_SYMBOL_DEF &aDef, int aOrient, const std::string &aValue, const std::string &aFootprint) |
| const ORCAD_PACKAGE * | packageFor (const ORCAD_PLACED_INSTANCE &aInst) const |
| The cache package backing a placement, or nullptr when the design has none. | |
| std::map< std::string, std::string > | effectiveProps (const ORCAD_PLACED_INSTANCE &aInst, const ORCAD_SYMBOL_DEF &aDef) const |
| Empty package and placement values must not clear a library property. | |
| void | computeFontBaseline () |
| int | displayFontId (const ORCAD_DISPLAY_PROP &aProp) const |
| bool | displayUsesTemplateFont (const ORCAD_DISPLAY_PROP &aProp) const |
| int | wireAliasFontId (const ORCAD_ALIAS &aAlias) const |
| int | textBaselineOffset (int aTextSize, int aFontIdx, bool aTemplateFont=true) const |
| int | resolveFontIndex (int aFontIdx) const |
| Resolve a Design Template font ID to its 1-based LOGFONT index. | |
| int | fontHeightDbu (int aFontIdx, bool aTemplateFont=true) const |
| |lfHeight| of a Design Template font ID; ID 0 selects the template default. | |
| int | textSizeIU (int aFontIdx, bool aTemplateFont=true) const |
| VECTOR2I | textSize (int aFontIdx, bool aTemplateFont=true) const |
| Preserve an explicit LOGFONT width while retaining natural font aspect when it is zero. | |
| void | applyFont (EDA_TEXT *aText, int aFontIdx, bool aTemplateFont=true) const |
| void | applyMultilineSpacing (SCH_TEXT *aText, int aFontIdx, bool aTemplateFont=true) const |
| void | convertPage (ORCAD_RAW_PAGE &aPage, SCH_SCREEN *aScreen, const SCH_SHEET_PATH &aSheetPath, bool aContainerPage=false, bool aSharedFolderPage=false) |
| void | placeHierarchicalBlockFields (SCH_SHEET *aSheet, const ORCAD_DRAWN_INSTANCE &aBlock, const std::string &aChildFolder) |
| void | placeHierarchicalBlockPinFill (SCH_SCREEN *aScreen, SCH_SHEET_PIN *aPin) |
| void | appendNetIntent (SCH_SCREEN *aScreen, SCH_LABEL *aLabel, bool aExplicitName, uint32_t aNetId=0) |
| void | minimizeNetLabels () |
| void | finalizeNetNames () |
| void | recordNetNameMap () |
| void | convertUnreferencedPages () |
| KIID | deterministicUuid (const std::string &aRole, size_t aOrdinal) const |
| void | appendPageItem (SCH_SCREEN *aScreen, SCH_ITEM *aItem) |
| void | assignPageItemUuids (size_t aPageOrdinal) |
| void | applyPageSettings (ORCAD_RAW_PAGE &aPage, SCH_SCREEN *aScreen) |
| Shift content on the 10-DBU grid to preserve connectivity. | |
| void | placePageFrame (const ORCAD_RAW_PAGE &aPage, SCH_SCREEN *aScreen) |
| void | applyTitleBlock (const ORCAD_RAW_PAGE &aPage, SCH_SCREEN *aScreen) |
| void | buildNetLookup (const ORCAD_RAW_PAGE &aPage) |
| Rebuild m_wireEndpoints for a page (both endpoints of every wire). | |
| std::string | netAt (const ORCAD_RAW_PAGE &aPage, int aX, int aY) const |
| Prefer endpoint nets, then intersecting wires, then endpoint aliases. | |
| std::string | powerNet (const ORCAD_RAW_PAGE &aPage, const ORCAD_GRAPHIC_INST &aInst) const |
| VECTOR2I | graphicPinPos (const ORCAD_GRAPHIC_INST &aInst) const |
| Use the transformed cache pin position, or the instance anchor if no pin is available. | |
| VECTOR2I | namedGraphicPinPos (const ORCAD_RAW_PAGE &aPage, const ORCAD_GRAPHIC_INST &aInst) const |
| Graphic-symbol connection point, corrected to a nearby endpoint of its named wire. | |
| VECTOR2I | powerPinPos (const ORCAD_RAW_PAGE &aPage, const ORCAD_GRAPHIC_INST &aInst) const |
| Power-symbol connection point, corrected to a nearby endpoint of its named wire. | |
| std::vector< int > | placedStackedPinOffsets (const ORCAD_PLACED_INSTANCE &aInstance) const |
| VECTOR2I | placedPinElectricalPosition (const ORCAD_PLACED_INSTANCE &aInstance, size_t aPinIndex) const |
| bool | hasImplicitPowerPinName (const ORCAD_PLACED_INSTANCE &aInstance, size_t aPinIndex, const std::string &aNetName) const |
| std::vector< OFFPAGE_NET > | offpageNets (const ORCAD_RAW_PAGE &aPage) const |
| Resolve every off-page connector on the page to (index, net, pin position). | |
| std::vector< VECTOR2I > | computeJunctions (const ORCAD_RAW_PAGE &aPage) const |
| Use both geometry and net IDs; a crossing alone does not create a junction. | |
| void | placeJunctions (const ORCAD_RAW_PAGE &aPage, SCH_SCREEN *aScreen) |
| Append computed junctions as SCH_JUNCTION items. | |
| void | placeWires (const ORCAD_RAW_PAGE &aPage, SCH_SCREEN *aScreen, bool aHierarchical, bool aNestedHierarchy, bool aSharedFolderPage) |
| void | placeBusEntries (const ORCAD_RAW_PAGE &aPage, SCH_SCREEN *aScreen) |
| SCH_BUS_WIRE_ENTRY per bus entry (position x1,y1; size x2-x1, y2-y1). | |
| void | placeGraphicDisplayText (const ORCAD_GRAPHIC_INST &aGraphic, const ORCAD_DISPLAY_PROP &aDisplay, const std::string &aText, SCH_SCREEN *aScreen) |
| One displayed property attached to a placed page symbol, preserving source text geometry. | |
| void | placeOffpageConnectors (const ORCAD_RAW_PAGE &aPage, SCH_SCREEN *aScreen, const SCH_SHEET_PATH &aSheetPath, bool aHierarchical) |
| Keep computed intersheet references hidden; display the stored OrCAD IREF text. | |
| void | placePorts (const ORCAD_RAW_PAGE &aPage, SCH_SCREEN *aScreen, bool aHierarchical) |
| void | placeGraphics (const ORCAD_RAW_PAGE &aPage, SCH_SCREEN *aScreen) |
| void | placeBitmap (const ORCAD_PRIMITIVE &aPrim, SCH_SCREEN *aScreen, int aOrient=0, bool *aUsedEmbeddedEmf=nullptr) |
| Skip undecodable images with a warning. | |
| void | placeDefinitionImages (const ORCAD_SYMBOL_DEF &aDefinition, int aBaseX, int aBaseY, int aOrient, SCH_SCREEN *aScreen) |
| void | placeDefinitionVectors (const ORCAD_SYMBOL_DEF &aDefinition, int aBaseX, int aBaseY, int aOrient, SCH_SCREEN *aScreen, double aTextScaleX=1.0, double aTextScaleY=1.0, bool aUseGenericTextBaseline=false, const std::string &aTextFaceOverride={}) |
| void | rememberInterfaceLabelSource (SCH_SCREEN *aScreen, SCH_LABEL_BASE *aLabel, const std::vector< SEG > &aSourceWires) |
Static Private Member Functions | |
| static int | toKicadOrientation (int aOrient) |
| static std::string | SymbolId (const std::string &aName) |
| LIB_ID-safe symbol name: ':', '"', '/' and whitespace runs -> '_'; "SYM" if empty. | |
| static wxString | MakePageFileName (int aPageIndex, const std::string &aPageName) |
| static BOX2I | pageExtentDbu (const ORCAD_RAW_PAGE &aPage) |
| Free graphics use nested primitive bounds; their outer boxes do not describe page coordinates. | |
| static void | offsetPage (ORCAD_RAW_PAGE &aPage, int aDx, int aDy) |
| aDx and aDy must be multiples of the 10-DBU grid. | |
| static VECTOR2I | snapToWire (int aX, int aY, const ORCAD_WIRE &aWire) |
| Closest point (DBU) on a wire segment to (aX, aY); exact for H/V wires. | |
| static bool | onSegment (int aX, int aY, const ORCAD_WIRE &aWire) |
| True when the point lies strictly INSIDE (not at an endpoint of) an H/V wire. | |
| static wxString | SanitizeFileName (const std::string &aName) |
Private Attributes | |
| ORCAD_DESIGN & | m_design |
| SCHEMATIC * | m_schematic |
| REPORTER * | m_reporter |
| PROGRESS_REPORTER * | m_progressReporter |
| SCH_SHEET * | m_rootSheet |
| std::map< std::string, LIB_ENTRY > | m_libSymbols |
| keyed by emitted lib name | |
| std::map< PKG_KEY, std::pair< std::string, int > > | m_pkgToLib |
| std::map< PKG_KEY, std::pair< std::string, int > > | m_preparedPkgToLib |
| std::map< std::string, std::vector< UNIT_INFO > > | m_preparedLibUnits |
| std::vector< PLACED_PACKAGE_UNIT > | m_placedPackageUnits |
| std::set< std::string > | m_nativePowerFamilies |
| std::map< std::string, std::string > | m_globalNetNames |
| std::map< std::string, std::string > | m_globalNetAliases |
| std::set< std::string > | m_powerNetNames |
| std::set< std::string > | m_offpageNetNames |
| std::set< std::string > | m_connectedBlockInterfaceNames |
| std::map< std::string, size_t > | m_occurrenceNetNameScopeCounts |
| std::map< std::string, size_t > | m_occurrenceNetNameMinDepth |
| int | m_powerCount |
| "#PWR%04d" counter | |
| int | m_fontBaselineDbu |
| dominant text height; 0 = none | |
| size_t | m_pageOrdinal = 0 |
| size_t | m_screenOrdinal = 1 |
| SCH_SCREEN * | m_pageItemScreen = nullptr |
| std::vector< SCH_ITEM * > | m_pageItems |
| const std::map< uint32_t, std::string > * | m_currentOccRefs = nullptr |
| Per-page occurrence references distinguish repeated child schematics. | |
| const std::map< uint32_t, std::string > * | m_currentOccUnitRefs = nullptr |
| const std::map< uint32_t, std::map< std::string, std::string > > * | m_currentOccProps = nullptr |
| const std::map< uint32_t, std::string > * | m_currentOccNetNames = nullptr |
| std::string | m_currentFlatNetSuffix |
| bool | m_scopeNamedFlatNets = false |
| bool | m_scopeGeneratedFlatNets = false |
| std::map< std::string, std::string > | m_currentUnconnectedInterfaceNetNames |
| std::map< std::string, std::string > | m_currentInterfaceNetAliases |
| std::map< std::string, std::string > | m_currentOccurrenceNetAliases |
| std::set< std::string > | m_currentConnectorInterfaceNetAliases |
| std::set< const ORCAD_PIN_INST * > | m_currentImplicitPowerPins |
| std::map< std::string, std::map< std::string, std::string > > | m_hierBusNamesByScreen |
| std::vector< INTERFACE_LABEL_SOURCE > | m_interfaceLabelSources |
| std::vector< NET_LABEL_INTENT > | m_netLabelIntents |
| std::map< SCH_LABEL_BASE *, std::pair< SCH_SCREEN *, uint32_t > > | m_labelSourceNets |
| std::map< SCH_SCREEN *, const ORCAD_RAW_PAGE * > | m_sourcePages |
| std::map< std::pair< SCH_SCREEN *, uint32_t >, std::vector< SCH_ITEM * > > | m_sourceNetItems |
| std::map< std::pair< SCH_SCREEN *, uint32_t >, std::set< std::string > > | m_sourceNetNames |
| std::map< std::pair< SCH_SCREEN *, uint32_t >, std::string > | m_sourceGeneratedNetNames |
| std::map< SCH_SYMBOL *, std::vector< SOURCE_PIN_IDENTITY > > | m_sourcePinIdentities |
| std::map< SCH_SYMBOL *, const ORCAD_PLACED_INSTANCE * > | m_sourceInstances |
| std::map< SCH_SCREEN *, std::vector< wxString > > | m_sourceOccurrences |
| std::map< std::tuple< SCH_SCREEN *, const ORCAD_PLACED_INSTANCE *, size_t >, std::pair< uint32_t, std::string > > | m_wirelessNetNames |
| std::set< wxString > | m_usedSheetNames |
| Lower-cased sheet names already emitted, to keep sibling sheet names unique. | |
| std::map< std::pair< int, int >, std::vector< const ORCAD_WIRE * > > | m_wireEndpoints |
| Per-page wire lookup: endpoint -> wires ending there. | |
Static Private Attributes | |
| static constexpr int | PIN_LEN_DBU = 10 |
| – constants (calibrated; do not change) -------------------------------------— | |
| static constexpr int | MARGIN_L_DBU = 60 |
| Page margins in DBU leave room for the KiCad frame and title block. | |
| static constexpr int | MARGIN_T_DBU = 60 |
| static constexpr int | MARGIN_R_DBU = 60 |
| static constexpr int | MARGIN_B_DBU = 100 |
Definition at line 148 of file orcad_converter.h.
|
private |
(sourcePackage-or-pkgName, pkgName, variant index, unit discriminator) -> (lib name, unit number).
Definition at line 207 of file orcad_converter.h.
| ORCAD_CONVERTER::ORCAD_CONVERTER | ( | ORCAD_DESIGN & | aDesign, |
| SCHEMATIC * | aSchematic, | ||
| REPORTER * | aReporter, | ||
| PROGRESS_REPORTER * | aProgressReporter = nullptr ) |
aDesign is mutated and must outlive the converter.
Definition at line 364 of file orcad_converter_sheet.cpp.
References m_design, m_fontBaselineDbu, m_powerCount, m_progressReporter, m_reporter, m_rootSheet, and m_schematic.
|
default |
Out-of-line: LIB_ENTRY holds LIB_SYMBOL by unique_ptr.
|
private |
Polyline approximation of an arc primitive.
Helper of addSymbolPrimitive().
Definition at line 2432 of file orcad_converter_symbols.cpp.
References std::abs(), LIB_SYMBOL::AddDrawItem(), SCH_SHAPE::AddPoint(), ORCAD_PRIMITIVE::end, LAYER_DEVICE, M_PI, NO_FILL, POLY, EDA_SHAPE::SetFillMode(), SCH_SHAPE::SetStroke(), SCH_ITEM::SetUnit(), ORCAD_PRIMITIVE::start, ORCAD_PRIMITIVE::x1, ORCAD_PRIMITIVE::x2, ORCAD_PRIMITIVE::y1, and ORCAD_PRIMITIVE::y2.
Referenced by addSymbolPrimitive().
|
private |
Definition at line 2479 of file orcad_converter_symbols.cpp.
References std::abs(), LIB_SYMBOL::AddDrawItem(), SCH_SHAPE::AddPoint(), CLOCK, ORCAD_SYMBOL_PIN::displayProps, FILLED_SHAPE, ORCAD_DISPLAY_PROP::fontIdx, FromOrcadString(), BOX2< Vec >::GetBottom(), BOX2< Vec >::GetLeft(), BOX2< Vec >::GetRight(), BOX2< Vec >::GetTop(), ORCAD_SYMBOL_PIN::hotptX, ORCAD_SYMBOL_PIN::hotptY, INPUT_TYPE, INVERTED, INVERTED_CLOCK, KiROUND(), LAYER_DEVICE, LINE, m_design, name, ORCAD_SYMBOL_PIN::name, normal, ORCAD_IU_PER_DBU, OrcadDisplayPropVisible(), OrcadPinNameMarkup(), pin, PIN_DOWN, PIN_LEFT, PIN_RIGHT, PIN_UP, POLY, ORCAD_SYMBOL_PIN::portType, PT_PASSIVE, PT_POWER_IN, resolveFontIndex(), EDA_SHAPE::SetFillMode(), SCH_SHAPE::SetStroke(), SCH_ITEM::SetUnit(), ORCAD_SYMBOL_PIN::shapeBits, SOLID, ORCAD_SYMBOL_PIN::startX, ORCAD_SYMBOL_PIN::startY, textSizeIU(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by kicadSymbolFor().
|
private |
Definition at line 2211 of file orcad_converter_symbols.cpp.
References std::abs(), LIB_SYMBOL::AddDrawItem(), addOrcadSymbolHatch(), SCH_SHAPE::AddPoint(), addSymbolArc(), addSymbolPrimitive(), ANGLE_VERTICAL, applyFont(), applyMultilineSpacing(), ARC, BEZIER, center, ORCAD_PRIMITIVE::children, CIRCLE, ELLIPSE, ORCAD_PRIMITIVE::fillStyle, ORCAD_PRIMITIVE::fontIdx, FromOrcadString(), BOX2< Vec >::GetHeight(), BOX2< Vec >::GetWidth(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_V_ALIGN_CENTER, GR_TEXT_V_ALIGN_TOP, GROUP_PRIM, ORCAD_PRIMITIVE::hatchStyle, IMAGE, ORCAD_PRIMITIVE::kind, KiROUND(), LAYER_DEVICE, LINE, m_design, M_PI, NO_FILL, ORCAD_IU_PER_DBU, OrcadColor(), OrcadFillType(), ORCAD_FONT::pitchAndFamily, ORCAD_PRIMITIVE::points, POLY, POLYGON, POLYLINE, RECTANGLE, EDA_SHAPE::SetBezierC1(), EDA_SHAPE::SetBezierC2(), EDA_SHAPE::SetEnd(), EDA_SHAPE::SetFillMode(), SCH_SHAPE::SetPosition(), SCH_SHAPE::SetStroke(), SCH_ITEM::SetUnit(), TEXT, text, ORCAD_PRIMITIVE::text, textSize(), ORCAD_FONT::width, ORCAD_POINT::x, VECTOR2< T >::x, ORCAD_PRIMITIVE::x1, ORCAD_PRIMITIVE::x2, ORCAD_POINT::y, VECTOR2< T >::y, ORCAD_PRIMITIVE::y1, and ORCAD_PRIMITIVE::y2.
Referenced by addSymbolPrimitive(), and kicadSymbolFor().
|
private |
Definition at line 3239 of file orcad_converter_sheet.cpp.
References appendPageItem(), m_labelSourceNets, and m_netLabelIntents.
|
private |
Definition at line 386 of file orcad_converter_sheet.cpp.
References SCH_SCREEN::Append(), m_pageItems, and m_pageItemScreen.
Referenced by appendNetIntent(), applyTitleBlock(), Convert(), placeBitmap(), placeBusEntries(), placeGraphicDisplayText(), placeGraphics(), placeHierarchicalBlockPinFill(), placeInstance(), placeJunctions(), placeOffpageConnectors(), placePageFrame(), placePorts(), placePowerSymbol(), and placeSymbolFields().
|
private |
Definition at line 3882 of file orcad_converter_symbols.cpp.
References EMBEDDED_FILES::AddFile(), ORCAD_FONT::bold, ORCAD_FONT::face, FromOrcadString(), KIFONT::FONT::GetFont(), PATHS::GetStockDataPath(), ORCAD_FONT::italic, m_design, m_schematic, resolveFontIndex(), EMBEDDED_FILES::SetAreFontsEmbedded(), EDA_TEXT::SetBold(), EDA_TEXT::SetFont(), EDA_TEXT::SetItalic(), and EMBEDDED_FILES::UpdateFontFiles().
Referenced by addSymbolPrimitive(), applyTitleBlock(), placeGraphicDisplayText(), placeGraphics(), placeHierarchicalBlockFields(), placeOffpageConnectors(), placePorts(), placePowerSymbol(), and placeSymbolFields().
|
private |
Definition at line 3918 of file orcad_converter_symbols.cpp.
References fontHeightDbu(), SCH_TEXT::GetDrawFont(), SCH_ITEM::GetFontMetrics(), KIFONT::FONT::GetInterline(), EDA_TEXT::GetText(), EDA_TEXT::GetTextSize(), KiROUND(), EDA_TEXT::SetLineSpacing(), and VECTOR2< T >::y.
Referenced by addSymbolPrimitive(), applyTitleBlock(), placeGraphicDisplayText(), and placeGraphics().
|
private |
Shift content on the 10-DBU grid to preserve connectivity.
Definition at line 4372 of file orcad_converter_sheet.cpp.
References FromOrcadString(), BOX2< Vec >::GetBottom(), PAGE_INFO::GetHeightMM(), BOX2< Vec >::GetLeft(), BOX2< Vec >::GetRight(), BOX2< Vec >::GetTop(), PAGE_INFO::GetType(), PAGE_INFO::GetWidthMM(), ORCAD_RAW_PAGE::height, ORCAD_RAW_PAGE::isMetric, MARGIN_B_DBU, MARGIN_L_DBU, MARGIN_R_DBU, MARGIN_T_DBU, offsetPage(), pageExtentDbu(), ORCAD_RAW_PAGE::pageSize, PAGE_INFO::SetCustomHeightMils(), PAGE_INFO::SetCustomWidthMils(), SCH_SCREEN::SetPageSettings(), PAGE_INFO::SetType(), User, and ORCAD_RAW_PAGE::width.
Referenced by Convert(), and convertUnreferencedPages().
|
private |
Definition at line 4635 of file orcad_converter_sheet.cpp.
References std::abs(), ANGLE_HORIZONTAL, ANGLE_VERTICAL, appendPageItem(), applyFont(), applyMultilineSpacing(), ORCAD_GRAPHIC_INST::bbox, ORCAD_RAW_PAGE::createTimestamp, displayFontId(), ORCAD_GRAPHIC_INST::displayProps, displayUsesTemplateFont(), FromOrcadString(), GR_TEXT_H_ALIGN_LEFT, GR_TEXT_V_ALIGN_TOP, LAYER_NOTES, m_design, ORCAD_GRAPHIC_INST::mirror, ORCAD_RAW_PAGE::modifyTimestamp, ORCAD_DISPLAY_PROP::name, ORCAD_GRAPHIC_INST::name, normalizedPath(), OrcadDbuToIu(), OrcadDisplayPropShowsName(), OrcadDisplayPropShowsValue(), OrcadDisplayPropVisible(), OrcadOrientOf(), ORCAD_RAW_PAGE::pageSize, placeDefinitionImages(), placeDefinitionVectors(), ORCAD_GRAPHIC_INST::props, ORCAD_RAW_PAGE::props, ORCAD_SYMBOL_DEF::props, ORCAD_DISPLAY_PROP::rotation, ORCAD_GRAPHIC_INST::rotation, TITLE_BLOCK::SetComment(), TITLE_BLOCK::SetCompany(), TITLE_BLOCK::SetDate(), TITLE_BLOCK::SetRevision(), TITLE_BLOCK::SetTitle(), SCH_SCREEN::SetTitleBlock(), ORCAD_SYMBOL_DEF::sourceLib, ORCAD_RAW_PAGE::sourcePageCount, ORCAD_RAW_PAGE::sourcePageNumber, text, textBaselineOffset(), textSize(), textSizeIU(), ORCAD_RAW_PAGE::titleBlocks, ORCAD_SYMBOL_DEF::variants, ORCAD_DISPLAY_PROP::x, ORCAD_BBOX::x1, ORCAD_BBOX::x2, ORCAD_DISPLAY_PROP::y, ORCAD_BBOX::y1, and ORCAD_BBOX::y2.
Referenced by convertPage().
|
private |
Definition at line 395 of file orcad_converter_sheet.cpp.
References deterministicUuid(), SCH_SYMBOL::GetRawPins(), m_pageItems, pin, SCH_SHEET_T, SCH_SYMBOL_T, VECTOR2< T >::x, and VECTOR2< T >::y.
|
private |
Rebuild m_wireEndpoints for a page (both endpoints of every wire).
Definition at line 5037 of file orcad_converter_sheet.cpp.
References m_wireEndpoints, ORCAD_RAW_PAGE::wires, ORCAD_WIRE::x1, ORCAD_WIRE::x2, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
Referenced by Convert(), and convertPage().
| std::vector< LIB_SYMBOL * > ORCAD_CONVERTER::BuildSymbolLibrary | ( | ) |
The caller owns the returned library symbols.
Definition at line 826 of file orcad_converter_symbols.cpp.
References _, computeFontBaseline(), ORCAD_PACKAGE::devices, ORCAD_CONVERTER::LIB_ENTRY::footprint, FromOrcadString(), ORCAD_CONVERTER::LIB_ENTRY::isPower, kicadSymbolFor(), m_design, m_libSymbols, ORCAD_CONVERTER::LIB_ENTRY::name, ORCAD_ST_GLOBAL_SYMBOL, ORCAD_ST_LIBRARY_PART, ORCAD_PACKAGE::pcbFootprint, ORCAD_CONVERTER::LIB_ENTRY::powerNet, ORCAD_PACKAGE::refDes, ORCAD_CONVERTER::LIB_ENTRY::refPrefix, SymbolId(), ORCAD_CONVERTER::LIB_ENTRY::units, and warn().
Referenced by SCH_IO_ORCAD::loadOlbSymbols().
|
private |
Return the design-wide spelling selected by prepareGlobalNetNames().
Definition at line 518 of file orcad_converter_sheet.cpp.
References m_globalNetAliases, m_globalNetNames, and name.
Referenced by Convert(), effectiveInterfaceNetName(), placeOffpageConnectors(), placePorts(), placePowerSymbol(), and placeWires().
|
private |
Definition at line 3682 of file orcad_converter_symbols.cpp.
References ORCAD_WIRE::aliases, displayFontId(), ORCAD_PLACED_INSTANCE::displayProps, displayUsesTemplateFont(), fontHeightDbu(), ORCAD_RAW_PAGE::instances, m_design, m_fontBaselineDbu, wireAliasFontId(), and ORCAD_RAW_PAGE::wires.
Referenced by BuildSymbolLibrary(), and prepareSymbols().
|
private |
Use both geometry and net IDs; a crossing alone does not create a junction.
Definition at line 5947 of file orcad_converter_sheet.cpp.
References ORCAD_RAW_PAGE::blocks, end, ORCAD_WIRE::id, ORCAD_RAW_PAGE::instances, ORCAD_WIRE::isBus, onSegment(), pin, ORCAD_DRAWN_INSTANCE::pins, ORCAD_PLACED_INSTANCE::pins, rawWireIntersection(), ORCAD_RAW_PAGE::wires, ORCAD_WIRE::x1, ORCAD_WIRE::x2, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
Referenced by placeJunctions(), and placeWires().
aRootSheet must have a screen and be registered on the schematic.
Cancellation throws IO_ERROR.
Definition at line 1161 of file orcad_converter_sheet.cpp.
References A4, std::abs(), SCH_SHEET::AddPin(), ORCAD_WIRE::aliases, SCH_SCREEN::Append(), appendPageItem(), applyPageSettings(), KIID::AsStdString(), ORCAD_OCC_SCOPE::blocks, ORCAD_RAW_PAGE::blocks, BOTTOM, buildNetLookup(), busNetAt(), canonicalGlobalNetName(), ORCAD_OCC_BLOCK::childFolder, connectedBusName(), convertPage(), ORCAD_DRAWN_INSTANCE::dbId, ORCAD_WIRE::dbId, deterministicUuid(), distance(), SCH_SHEET_PATH::empty(), finishConversion(), flatNetSuffix(), FromOrcadString(), SCH_SHEET::GetField(), SCH_SHEET::GetScreen(), SCH_SCREEN::GetUuid(), ORCAD_RAW_PAGE::globals, ORCAD_DRAWN_INSTANCE::h, hierarchicalPinShape(), ORCAD_WIRE::id, ORCAD_WIRE::isBus, isOffpageNetName(), isPowerNetName(), L_BIDI, LEFT, ORCAD_GRAPHIC_INST::logicalName, m_connectedBlockInterfaceNames, m_currentConnectorInterfaceNetAliases, m_currentFlatNetSuffix, m_currentInterfaceNetAliases, m_currentOccNetNames, m_currentOccProps, m_currentOccRefs, m_currentOccUnitRefs, m_currentOccurrenceNetAliases, m_currentUnconnectedInterfaceNetNames, m_design, m_globalNetAliases, m_hierBusNamesByScreen, m_occurrenceNetNameMinDepth, m_occurrenceNetNameScopeCounts, m_progressReporter, m_rootSheet, m_schematic, m_scopeGeneratedFlatNets, m_scopeNamedFlatNets, m_screenOrdinal, m_usedSheetNames, EDA_ITEM::m_Uuid, MakePageFileName(), name, ORCAD_ALIAS::name, ORCAD_BLOCK_PIN::name, ORCAD_RAW_PAGE::name, ORCAD_RAW_PAGE::netAliases, ORCAD_RAW_PAGE::netmap, ORCAD_OCC_SCOPE::netNames, ORCAD_RAW_PAGE::offpage, OrcadDbuToIu(), ORCAD_OCC_SCOPE::partProps, ORCAD_OCC_SCOPE::partRefs, ORCAD_OCC_SCOPE::partUnitRefs, path, pin, ORCAD_DRAWN_INSTANCE::pins, ORCAD_PLACED_INSTANCE::pins, placeHierarchicalBlockFields(), placeHierarchicalBlockPinFill(), ORCAD_RAW_PAGE::ports, ORCAD_BLOCK_PIN::portType, powerNet(), prepareGlobalNetNames(), prepareSymbols(), ORCAD_DRAWN_INSTANCE::props, SCH_SHEET_PATH::push_back(), rawPointOnSegment(), ORCAD_DRAWN_INSTANCE::reference, ORCAD_PLACED_INSTANCE::reference, result, RIGHT, schIUScale, ORCAD_OCC_BLOCK::scope, scopedHierBusName(), scopedHierBusRange(), SCH_SHEET::SetExcludedFromBoard(), SCH_SCREEN::SetFileName(), SCH_SHEET_PATH::SetPageNumber(), SCH_SCREEN::SetPageSettings(), SCH_SHEET::SetScreen(), SCH_LABEL_BASE::SetShape(), SCH_FIELD::SetText(), SHEET_FILENAME, SHEET_NAME, ORCAD_RAW_PAGE::sourcePageCount, ORCAD_RAW_PAGE::sourcePageNumber, ORCAD_OCC_BLOCK::targetDbId, TOP, ORCAD_DRAWN_INSTANCE::w, ORCAD_RAW_PAGE::wires, ORCAD_BLOCK_PIN::x, VECTOR2< T >::x, ORCAD_DRAWN_INSTANCE::x1, ORCAD_BLOCK_PIN::y, VECTOR2< T >::y, and ORCAD_DRAWN_INSTANCE::y1.
Referenced by BOOST_AUTO_TEST_CASE(), convertRawDesign(), and SCH_IO_ORCAD::LoadSchematicFile().
|
private |
Definition at line 4138 of file orcad_converter_sheet.cpp.
References ORCAD_WIRE::aliases, applyTitleBlock(), KIID::AsString(), SCH_SHEET_PATH::at(), buildNetLookup(), ORCAD_OCC_BLOCK::childFolder, FromOrcadString(), ORCAD_WIRE::id, index, SCH_SHEET::IsTopLevelSheet(), SCH_SHEET_PATH::Last(), m_currentOccNetNames, m_currentOccRefs, m_design, m_pageItems, m_pageItemScreen, m_sourceNetNames, m_sourceOccurrences, m_sourcePages, EDA_ITEM::m_Uuid, name, ORCAD_ALIAS::name, ORCAD_RAW_PAGE::netAliases, ORCAD_RAW_PAGE::netmap, placeBusEntries(), placeJunctions(), placePageFrame(), ORCAD_OCC_BLOCK::scope, SCH_SHEET_PATH::size(), ORCAD_OCC_BLOCK::targetDbId, and ORCAD_RAW_PAGE::wires.
Referenced by Convert(), and convertUnreferencedPages().
|
private |
Definition at line 3098 of file orcad_converter_sheet.cpp.
References applyPageSettings(), convertPage(), deterministicUuid(), FromOrcadString(), SCH_SHEET::GetField(), SCH_SHEET::GetName(), SCH_SCREEN::GetUuid(), m_currentConnectorInterfaceNetAliases, m_currentFlatNetSuffix, m_currentInterfaceNetAliases, m_currentOccNetNames, m_currentOccProps, m_currentOccRefs, m_currentOccUnitRefs, m_currentOccurrenceNetAliases, m_currentUnconnectedInterfaceNetNames, m_design, m_progressReporter, m_schematic, m_scopeGeneratedFlatNets, m_scopeNamedFlatNets, m_screenOrdinal, m_usedSheetNames, EDA_ITEM::m_Uuid, MakePageFileName(), name, path, SCH_SYMBOL_T, SCH_SHEET::SetExcludedFromBoard(), SCH_SCREEN::SetFileName(), SCH_SHEET::SetScreen(), SCH_FIELD::SetText(), SHEET_FILENAME, and SHEET_NAME.
Referenced by finishConversion().
|
private |
Definition at line 380 of file orcad_converter_sheet.cpp.
References KIID::FromName(), and m_design.
Referenced by assignPageItemUuids(), Convert(), convertUnreferencedPages(), and minimizeNetLabels().
|
private |
Definition at line 3733 of file orcad_converter_symbols.cpp.
References ORCAD_DISPLAY_PROP::fontIdx, m_design, OrcadDisplayFontId(), and resolveFontIndex().
Referenced by applyTitleBlock(), computeFontBaseline(), placeGraphicDisplayText(), placeHierarchicalBlockFields(), placePowerSymbol(), and placeSymbolFields().
|
private |
Definition at line 3739 of file orcad_converter_symbols.cpp.
References ORCAD_DISPLAY_PROP::fontIdx, and m_design.
Referenced by applyTitleBlock(), computeFontBaseline(), placeHierarchicalBlockFields(), placePowerSymbol(), and placeSymbolFields().
|
private |
Definition at line 538 of file orcad_converter_sheet.cpp.
References canonicalGlobalNetName(), m_currentInterfaceNetAliases, and name.
Referenced by placePorts(), and placeWires().
|
private |
Empty package and placement values must not clear a library property.
Definition at line 1443 of file orcad_converter_symbols.cpp.
References ORCAD_PLACED_INSTANCE::dbId, m_currentOccProps, name, overlay, packageFor(), ORCAD_PLACED_INSTANCE::props, and ORCAD_SYMBOL_DEF::props.
Referenced by placeInstance(), and placeSymbolFields().
|
private |
Definition at line 2658 of file orcad_converter_symbols.cpp.
References _, LIB_SYMBOL::AddDrawItem(), SCH_SCREEN::Append(), copy, LIB_ID::FixIllegalChars(), ORCAD_CONVERTER::LIB_ENTRY::footprint, FromOrcadString(), LIB_SYMBOL::GetDrawItems(), SCH_SYMBOL::GetLibSymbolRef(), EDA_ITEM::GetParent(), SCH_ITEM::GetUnit(), index, kicadSymbolFor(), LIB_NICK, m_libSymbols, m_nativePowerFamilies, m_placedPackageUnits, m_preparedLibUnits, m_preparedPkgToLib, ORCAD_CONVERTER::PLACED_PACKAGE_UNIT::reference, ORCAD_CONVERTER::LIB_ENTRY::refPrefix, SCH_SCREEN::Remove(), LIB_SYMBOL::RemoveDrawItem(), SCH_FIELD_T, SCH_SYMBOL::SetLibId(), SCH_SYMBOL::SetLibSymbol(), SCH_SYMBOL::SetSchSymbolLibraryName(), SCH_ITEM::SetUnit(), SCH_SYMBOL::SetUnitSelection(), MULTIVECTOR< T, FIRST_TYPE_VAL, LAST_TYPE_VAL >::sort(), ORCAD_CONVERTER::PLACED_PACKAGE_UNIT::sourceUnit, and warn().
Referenced by finishConversion().
|
private |
Definition at line 4055 of file orcad_converter_sheet.cpp.
References _, KIID::AsStdString(), end, KIID::FromName(), SCH_LINE::GetEndPoint(), SCH_LINE::GetSeg(), SCH_LINE::GetStartPoint(), m_interfaceLabelSources, m_labelSourceNets, m_schematic, m_sourceNetItems, EDA_ITEM::m_Uuid, minimizeNetLabels(), recordNetNameMap(), safeConnectivityLabelPosition(), SCH_LINE_T, THROW_IO_ERROR, EDA_ITEM::Type(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by finishConversion().
|
private |
Run the shared finalization sequence that ends every conversion entry point.
Definition at line 4044 of file orcad_converter_sheet.cpp.
References convertUnreferencedPages(), finalizeNativePowerPackages(), and finalizeNetNames().
Referenced by Convert().
|
private |
|lfHeight| of a Design Template font ID; ID 0 selects the template default.
Definition at line 3800 of file orcad_converter_symbols.cpp.
References std::abs(), m_design, and resolveFontIndex().
Referenced by applyMultilineSpacing(), computeFontBaseline(), and textSizeIU().
|
private |
Use the transformed cache pin position, or the instance anchor if no pin is available.
Definition at line 5532 of file orcad_converter_sheet.cpp.
References std::abs(), ORCAD_GRAPHIC_INST::bbox, ORCAD_SYMBOL_DEF::bbox, m_design, ORCAD_GRAPHIC_INST::mirror, ORCAD_GRAPHIC_INST::name, OrcadOrientOf(), OrcadTransformPoint(), pin, ORCAD_SYMBOL_DEF::pins, ORCAD_GRAPHIC_INST::rotation, ORCAD_GRAPHIC_INST::x, ORCAD_BBOX::x1, ORCAD_BBOX::x2, ORCAD_GRAPHIC_INST::y, ORCAD_BBOX::y1, and ORCAD_BBOX::y2.
Referenced by namedGraphicPinPos().
|
private |
Definition at line 1483 of file orcad_converter_symbols.cpp.
References index, pickVariant(), pin, ORCAD_PLACED_INSTANCE::pins, ORCAD_SYMBOL_DEF::pins, and POWER_IN.
|
private |
Definition at line 606 of file orcad_converter_sheet.cpp.
References m_offpageNetNames.
Referenced by Convert(), and placeWires().
|
private |
Definition at line 618 of file orcad_converter_sheet.cpp.
References m_powerNetNames.
Referenced by Convert(), and placeWires().
|
private |
Definition at line 2013 of file orcad_converter_symbols.cpp.
References addSymbolPin(), addSymbolPrimitive(), ORCAD_SYMBOL_DEF::bbox, ORCAD_SYMBOL_DEF::color, ORCAD_SYMBOL_PIN::displayProps, ORCAD_CONVERTER::UNIT_INFO::explicitPinNets, LIB_ID::FixIllegalChars(), FromOrcadString(), ORCAD_SYMBOL_DEF::generalFlags, ORCAD_SYMBOL_PIN::hotptX, ORCAD_CONVERTER::LIB_ENTRY::isPower, ORCAD_CONVERTER::LIB_ENTRY::kicadSymbol, LIB_NICK, m_libSymbols, name, ORCAD_CONVERTER::LIB_ENTRY::name, ORCAD_DISPLAY_PROP::name, ORCAD_IU_PER_DBU, OrcadDisplayPropVisible(), ORCAD_CONVERTER::UNIT_INFO::pinIgnore, ORCAD_CONVERTER::UNIT_INFO::pinNumbers, ORCAD_CONVERTER::UNIT_INFO::pinNumberVisible, ORCAD_CONVERTER::UNIT_INFO::pinOffsets, ORCAD_SYMBOL_DEF::pins, ORCAD_SYMBOL_PIN::position, ORCAD_CONVERTER::LIB_ENTRY::powerNet, ORCAD_SYMBOL_DEF::primitives, propertyNamesEqual(), ORCAD_CONVERTER::LIB_ENTRY::refPrefix, SCH_FIELD::SetText(), EDA_TEXT::SetTextPos(), EDA_TEXT::SetVisible(), ORCAD_SYMBOL_PIN::startX, ORCAD_CONVERTER::UNIT_INFO::symbol, ORCAD_PRIMITIVE::text, ORCAD_CONVERTER::LIB_ENTRY::units, UTF8::wx_str(), and ORCAD_BBOX::y1.
Referenced by BuildSymbolLibrary(), finalizeNativePowerPackages(), placeInstance(), and placePowerSymbol().
|
private |
Returns the registered library name and unit number.
Definition at line 1504 of file orcad_converter_symbols.cpp.
References _, ORCAD_PLACED_INSTANCE::dbId, ORCAD_PACKAGE::devices, FromOrcadString(), index, m_currentOccUnitRefs, m_design, ORCAD_SYMBOL_DEF::name, normalizedPath(), packageFor(), pickVariant(), ORCAD_DEVICE::pinIgnore, ORCAD_DEVICE::pinNumbers, ORCAD_PLACED_INSTANCE::pkgName, ORCAD_PLACED_INSTANCE::props, ORCAD_PLACED_INSTANCE::reference, ORCAD_PACKAGE::sourceLib, ORCAD_PLACED_INSTANCE::sourceLibrary, ORCAD_PLACED_INSTANCE::sourcePackage, ORCAD_SYMBOL_DEF::typeId, ORCAD_PLACED_INSTANCE::unitIndex, unitLetter(), ORCAD_DEVICE::unitRef, and warn().
Referenced by placeInstance(), and prepareSymbols().
|
staticprivate |
Definition at line 4334 of file orcad_converter_sheet.cpp.
References ReplaceIllegalFileNameChars(), and SanitizeFileName().
Referenced by Convert(), and convertUnreferencedPages().
|
private |
Definition at line 3250 of file orcad_converter_sheet.cpp.
References _, anchor, deterministicUuid(), CONNECTION_SUBGRAPH::GetDriver(), CONNECTION_SUBGRAPH::GetDriverConnection(), CONNECTION_SUBGRAPH::GetDriverPriority(), CONNECTION_SUBGRAPH::GetItems(), CONNECTION_SUBGRAPH::GetNameForDriver(), CONNECTION_GRAPH::GetNetMap(), SCH_LINE::GetSeg(), CONNECTION_SUBGRAPH::GetSheet(), CONNECTION_GRAPH::GetSubgraphForItem(), CONNECTION_SUBGRAPH::GLOBAL_POWER_PIN, index, SCH_CONNECTION::IsBus(), SCH_CONNECTION::IsBusLabel(), SCH_CONNECTION::IsNet(), LAYER_WIRE, left, m_netLabelIntents, m_schematic, EDA_ITEM::m_Uuid, SCH_CONNECTION::Name(), name, SCH_CONNECTION::NetCode(), CONNECTION_SUBGRAPH::PIN, pin, CONNECTION_GRAPH::Recalculate(), right, safeConnectivityLabelPosition(), SCH_GLOBAL_LABEL_T, SCH_HIER_LABEL_T, SCH_LABEL_T, SCH_LINE_T, SCH_PIN_T, SCH_SHEET_PIN_T, and THROW_IO_ERROR.
Referenced by finalizeNetNames().
|
private |
Graphic-symbol connection point, corrected to a nearby endpoint of its named wire.
Definition at line 5564 of file orcad_converter_sheet.cpp.
References graphicPinPos(), ORCAD_GRAPHIC_INST::logicalName, and name.
Referenced by placePorts(), placeWires(), and powerPinPos().
|
private |
Prefer endpoint nets, then intersecting wires, then endpoint aliases.
Definition at line 5049 of file orcad_converter_sheet.cpp.
References empty(), m_wireEndpoints, name, ORCAD_ALIAS::name, ORCAD_RAW_PAGE::netAliases, ORCAD_RAW_PAGE::netmap, onSegment(), and ORCAD_RAW_PAGE::wires.
Referenced by powerNet().
|
private |
Fact about the source design (not a conversion problem): RPT_SEVERITY_INFO.
Definition at line 443 of file orcad_converter_sheet.cpp.
References m_reporter, and RPT_SEVERITY_INFO.
Referenced by placeInstance(), placeOffpageConnectors(), and prepareSymbols().
|
private |
Definition at line 553 of file orcad_converter_sheet.cpp.
References m_currentInterfaceNetAliases, m_currentOccNetNames, m_currentOccurrenceNetAliases, and name.
Referenced by placeWires(), and powerNet().
|
private |
Return the occurrence net id owning aName, which the table identifies by address.
Definition at line 3651 of file orcad_converter_sheet.cpp.
References m_currentOccNetNames.
Referenced by powerNet().
|
private |
Resolve every off-page connector on the page to (index, net, pin position).
Definition at line 5759 of file orcad_converter_sheet.cpp.
References ORCAD_WIRE::dbId, ORCAD_WIRE::id, ORCAD_RAW_PAGE::instances, m_currentOccNetNames, ORCAD_RAW_PAGE::netAliases, ORCAD_RAW_PAGE::netmap, pin, rawPointOnSegment(), and ORCAD_RAW_PAGE::wires.
Referenced by placeOffpageConnectors().
|
staticprivate |
aDx and aDy must be multiples of the 10-DBU grid.
Definition at line 4535 of file orcad_converter_sheet.cpp.
References ORCAD_WIRE::aliases, ORCAD_PLACED_INSTANCE::bbox, ORCAD_RAW_PAGE::blocks, ORCAD_RAW_PAGE::busEntries, ORCAD_PRIMITIVE::end, ORCAD_RAW_PAGE::ercObjects, ORCAD_RAW_PAGE::globals, ORCAD_RAW_PAGE::graphics, ORCAD_RAW_PAGE::instances, ORCAD_RAW_PAGE::offpage, pin, ORCAD_DRAWN_INSTANCE::pins, ORCAD_PLACED_INSTANCE::pins, ORCAD_PRIMITIVE::points, ORCAD_RAW_PAGE::ports, ORCAD_PRIMITIVE::start, ORCAD_RAW_PAGE::wires, ORCAD_ALIAS::x, ORCAD_PLACED_INSTANCE::x, ORCAD_POINT::x, ORCAD_BBOX::x1, ORCAD_BUS_ENTRY::x1, ORCAD_DRAWN_INSTANCE::x1, ORCAD_PRIMITIVE::x1, ORCAD_WIRE::x1, ORCAD_BBOX::x2, ORCAD_BUS_ENTRY::x2, ORCAD_PRIMITIVE::x2, ORCAD_WIRE::x2, ORCAD_ALIAS::y, ORCAD_PLACED_INSTANCE::y, ORCAD_POINT::y, ORCAD_BBOX::y1, ORCAD_BUS_ENTRY::y1, ORCAD_DRAWN_INSTANCE::y1, ORCAD_PRIMITIVE::y1, ORCAD_WIRE::y1, ORCAD_BBOX::y2, ORCAD_BUS_ENTRY::y2, ORCAD_PRIMITIVE::y2, and ORCAD_WIRE::y2.
Referenced by applyPageSettings().
|
staticprivate |
True when the point lies strictly INSIDE (not at an endpoint of) an H/V wire.
Definition at line 8733 of file orcad_converter_sheet.cpp.
References ORCAD_WIRE::x1, ORCAD_WIRE::x2, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
Referenced by computeJunctions(), netAt(), placeWires(), powerNet(), and recordNetNameMap().
|
private |
The cache package backing a placement, or nullptr when the design has none.
Definition at line 1280 of file orcad_converter_symbols.cpp.
References m_design, pickVariant(), ORCAD_DEVICE::pinIgnore, ORCAD_DEVICE::pinNumbers, ORCAD_PLACED_INSTANCE::pins, ORCAD_PLACED_INSTANCE::pkgName, ORCAD_PLACED_INSTANCE::props, ORCAD_SYMBOL_DEF::sourceLib, ORCAD_PLACED_INSTANCE::sourceLibrary, ORCAD_PLACED_INSTANCE::sourcePackage, and ORCAD_PACKAGE::variants.
Referenced by effectiveProps(), and libForInstance().
|
staticprivate |
Free graphics use nested primitive bounds; their outer boxes do not describe page coordinates.
Definition at line 4441 of file orcad_converter_sheet.cpp.
References ORCAD_PLACED_INSTANCE::bbox, ORCAD_RAW_PAGE::blocks, ORCAD_RAW_PAGE::busEntries, ORCAD_RAW_PAGE::ercObjects, ORCAD_RAW_PAGE::globals, ORCAD_RAW_PAGE::graphics, ORCAD_DRAWN_INSTANCE::h, ORCAD_RAW_PAGE::instances, ORCAD_GRAPHIC_INST::nested, ORCAD_RAW_PAGE::offpage, pin, ORCAD_DRAWN_INSTANCE::pins, ORCAD_PLACED_INSTANCE::pins, ORCAD_PRIMITIVE::points, ORCAD_RAW_PAGE::ports, ORCAD_SYMBOL_DEF::primitives, ORCAD_DRAWN_INSTANCE::w, ORCAD_RAW_PAGE::wires, ORCAD_POINT::x, ORCAD_BBOX::x1, ORCAD_BUS_ENTRY::x1, ORCAD_DRAWN_INSTANCE::x1, ORCAD_PRIMITIVE::x1, ORCAD_WIRE::x1, ORCAD_BBOX::x2, ORCAD_BUS_ENTRY::x2, ORCAD_PRIMITIVE::x2, ORCAD_WIRE::x2, ORCAD_POINT::y, ORCAD_BBOX::y1, ORCAD_BUS_ENTRY::y1, ORCAD_DRAWN_INSTANCE::y1, ORCAD_PRIMITIVE::y1, ORCAD_WIRE::y1, ORCAD_BBOX::y2, ORCAD_BUS_ENTRY::y2, ORCAD_PRIMITIVE::y2, and ORCAD_WIRE::y2.
Referenced by applyPageSettings().
|
private |
Match cached variants to placed pin positions; use the first entry if none matches.
Definition at line 1236 of file orcad_converter_symbols.cpp.
References m_design, normalizedPath(), ORCAD_PLACED_INSTANCE::pins, ORCAD_PLACED_INSTANCE::pkgName, ORCAD_PLACED_INSTANCE::props, ORCAD_PLACED_INSTANCE::sourceLibrary, and ORCAD_SYMBOL_DEF::variants.
Referenced by hasImplicitPowerPinName(), libForInstance(), and packageFor().
|
private |
Skip undecodable images with a warning.
Definition at line 8598 of file orcad_converter_sheet.cpp.
References _, std::abs(), ORCAD_ORIENT_ENTRY::angle, appendPageItem(), BMP, center, OLE_IMAGE_PAYLOAD::data, ORCAD_PRIMITIVE::data, DIB, ExtractOleImageFromPayload(), REFERENCE_IMAGE::GetImage(), BITMAP_BASE::GetImageData(), REFERENCE_IMAGE::GetSize(), image, ORCAD_ORIENT_ENTRY::mirror, OleDescribeImagePayload(), OleExtractCiImage(), OleMakeBmpFromDib(), OleRenderMetafilePreview(), ORCAD_IU_PER_DBU, ORCAD_ORIENT_TABLE, OrcadStretchedImageSize(), REFERENCE_IMAGE::ReadImageFile(), REFERENCE_IMAGE::SetImage(), REFERENCE_IMAGE::SetImageScale(), OLE_IMAGE_PAYLOAD::type, warn(), WMF, VECTOR2< T >::x, ORCAD_PRIMITIVE::x1, ORCAD_PRIMITIVE::x2, VECTOR2< T >::y, ORCAD_PRIMITIVE::y1, and ORCAD_PRIMITIVE::y2.
Referenced by placeDefinitionImages(), and placeGraphics().
|
private |
SCH_BUS_WIRE_ENTRY per bus entry (position x1,y1; size x2-x1, y2-y1).
Definition at line 7689 of file orcad_converter_sheet.cpp.
References appendPageItem(), ORCAD_RAW_PAGE::busEntries, ORCAD_BUS_ENTRY::color, DEFAULT, ORCAD_IU_PER_DBU, OrcadColor(), OrcadDbuToIu(), SCH_BUS_ENTRY_BASE::SetSize(), SCH_BUS_ENTRY_BASE::SetStroke(), ORCAD_BUS_ENTRY::x1, ORCAD_BUS_ENTRY::x2, ORCAD_BUS_ENTRY::y1, and ORCAD_BUS_ENTRY::y2.
Referenced by convertPage().
|
private |
Definition at line 4998 of file orcad_converter_sheet.cpp.
References std::abs(), ORCAD_SYMBOL_DEF::bbox, center, GROUP_PRIM, IMAGE, image, OrcadTransformPoint(), placeBitmap(), ORCAD_SYMBOL_DEF::primitives, ORCAD_BBOX::x1, ORCAD_BBOX::x2, ORCAD_BBOX::y1, and ORCAD_BBOX::y2.
Referenced by applyTitleBlock(), and placeInstance().
|
private |
Definition at line 4888 of file orcad_converter_sheet.cpp.
References anchor, ORCAD_SYMBOL_DEF::bbox, ORCAD_GRAPHIC_INST::color, ORCAD_SYMBOL_DEF::color, ORCAD_PRIMITIVE::end, ORCAD_RAW_PAGE::graphics, GROUP_PRIM, IMAGE, LINE, ORCAD_GRAPHIC_INST::nested, OrcadTransformPoint(), placeGraphics(), ORCAD_PRIMITIVE::points, ORCAD_SYMBOL_DEF::primitives, ORCAD_GRAPHIC_INST::rotation, ORCAD_PRIMITIVE::start, TEXT, ORCAD_PRIMITIVE::textBoundsStart, ORCAD_GRAPHIC_INST::textFaceOverride, ORCAD_GRAPHIC_INST::textScaleX, ORCAD_GRAPHIC_INST::textScaleY, ORCAD_GRAPHIC_INST::useGenericTextBaseline, ORCAD_GRAPHIC_INST::useSymbolLineWidths, ORCAD_POINT::x, VECTOR2< T >::x, ORCAD_BBOX::x1, ORCAD_PRIMITIVE::x1, ORCAD_BBOX::x2, ORCAD_PRIMITIVE::x2, ORCAD_POINT::y, VECTOR2< T >::y, ORCAD_BBOX::y1, ORCAD_PRIMITIVE::y1, ORCAD_BBOX::y2, and ORCAD_PRIMITIVE::y2.
Referenced by applyTitleBlock().
|
private |
Definition at line 5748 of file orcad_converter_sheet.cpp.
References ORCAD_ORIENT_ENTRY::a, ORCAD_ORIENT_ENTRY::c, ORCAD_PLACED_INSTANCE::mirror, ORCAD_ORIENT_TABLE, OrcadOrientOf(), pin, ORCAD_PLACED_INSTANCE::pins, placedStackedPinOffsets(), and ORCAD_PLACED_INSTANCE::rotation.
Referenced by placeInstance(), and powerNet().
|
private |
Definition at line 5706 of file orcad_converter_sheet.cpp.
References pin, ORCAD_PLACED_INSTANCE::pins, ORCAD_PIN_INST::wordA, ORCAD_PIN_INST::wordB, ORCAD_PIN_INST::x, and ORCAD_PIN_INST::y.
Referenced by placedPinElectricalPosition().
|
private |
One displayed property attached to a placed page symbol, preserving source text geometry.
Definition at line 7702 of file orcad_converter_sheet.cpp.
References ANGLE_0, ANGLE_180, ANGLE_270, ANGLE_90, appendPageItem(), applyFont(), applyMultilineSpacing(), ORCAD_GRAPHIC_INST::bbox, ORCAD_GRAPHIC_INST::color, displayFontId(), FromOrcadString(), GR_TEXT_H_ALIGN_LEFT, GR_TEXT_H_ALIGN_RIGHT, GR_TEXT_V_ALIGN_TOP, KiROUND(), LAYER_NOTES, OrcadColor(), OrcadDbuToIu(), OrcadDisplayPropVisible(), ORCAD_DISPLAY_PROP::rotation, text, textBaselineOffset(), textSize(), textSizeIU(), KIGFX::COLOR4D::UNSPECIFIED, ORCAD_DISPLAY_PROP::x, ORCAD_BBOX::x1, ORCAD_BBOX::x2, ORCAD_DISPLAY_PROP::y, ORCAD_BBOX::y1, and ORCAD_BBOX::y2.
Referenced by placeOffpageConnectors(), and placePorts().
|
private |
Definition at line 8194 of file orcad_converter_sheet.cpp.
References std::abs(), ANGLE_VERTICAL, appendPageItem(), applyFont(), applyMultilineSpacing(), ARC, BEZIER, ORCAD_FONT::bold, ORCAD_PRIMITIVE::children, ORCAD_GRAPHIC_INST::color, ELLIPSE, ORCAD_PRIMITIVE::end, ORCAD_FONT::face, ORCAD_PRIMITIVE::fillStyle, ORCAD_PRIMITIVE::fontIdx, FromOrcadString(), KIFONT::FONT::GetFont(), SCH_TEXT::GetOffsetToMatchSCH_FIELD(), SCH_TEXT::GetPosition(), SCH_TEXT::GetSchematicTextOffset(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_V_ALIGN_TOP, ORCAD_RAW_PAGE::graphics, GROUP_PRIM, ORCAD_FONT::height, IMAGE, ORCAD_PRIMITIVE::kind, KiROUND(), LAYER_NOTES, LINE, ORCAD_PRIMITIVE::lineStyle, ORCAD_PRIMITIVE::lineWidth, m_design, M_PI, ORCAD_GRAPHIC_INST::nested, NO_FILL, ORCAD_ST_GRAPHIC_OLE_INST, OrcadColor(), OrcadDbuToIu(), OrcadLineStyle(), OrcadLineWidthIu(), OrcadPageGraphicLineWidthIu(), OrcadTextBaselineOffset(), placeBitmap(), ORCAD_PRIMITIVE::points, POLYGON, POLYLINE, ORCAD_SYMBOL_DEF::primitives, RECTANGLE, ORCAD_GRAPHIC_INST::rotation, EDA_SHAPE::SetBezierC1(), EDA_SHAPE::SetBezierC2(), EDA_SHAPE::SetEnd(), EDA_SHAPE::SetFillMode(), EDA_TEXT::SetMultilineAllowed(), SCH_SHAPE::SetPosition(), SCH_TEXT::SetPosition(), SCH_SHAPE::SetStroke(), ORCAD_PRIMITIVE::start, TEXT, text, ORCAD_PRIMITIVE::text, textBaselineOffset(), ORCAD_PRIMITIVE::textBoundsStart, ORCAD_GRAPHIC_INST::textFaceOverride, ORCAD_GRAPHIC_INST::textScaleX, ORCAD_GRAPHIC_INST::textScaleY, textSize(), ORCAD_GRAPHIC_INST::typeId, KIGFX::COLOR4D::UNSPECIFIED, ORCAD_GRAPHIC_INST::useGenericTextBaseline, ORCAD_GRAPHIC_INST::useSymbolLineWidths, ORCAD_FONT::width, ORCAD_POINT::x, VECTOR2< T >::x, ORCAD_PRIMITIVE::x1, ORCAD_PRIMITIVE::x2, ORCAD_POINT::y, VECTOR2< T >::y, ORCAD_PRIMITIVE::y1, and ORCAD_PRIMITIVE::y2.
Referenced by placeDefinitionVectors().
|
private |
Definition at line 7585 of file orcad_converter_sheet.cpp.
References SCH_SHEET::AddField(), ANGLE_HORIZONTAL, ANGLE_VERTICAL, applyFont(), ORCAD_DRAWN_INSTANCE::childName, displayFontId(), ORCAD_DRAWN_INSTANCE::displayProps, displayUsesTemplateFont(), FromOrcadString(), SCH_SHEET::GetField(), GR_TEXT_H_ALIGN_LEFT, GR_TEXT_V_ALIGN_TOP, ORCAD_DISPLAY_PROP::name, OrcadColor(), OrcadDbuToIu(), OrcadDisplayPropShowsName(), OrcadDisplayPropVisible(), ORCAD_DRAWN_INSTANCE::props, SCH_FIELD::SetEffectiveHorizJustify(), SCH_FIELD::SetEffectiveVertJustify(), SCH_FIELD::SetNameShown(), SCH_FIELD::SetPosition(), SCH_FIELD::SetText(), EDA_TEXT::SetTextAngle(), EDA_TEXT::SetTextColor(), EDA_TEXT::SetTextSize(), EDA_TEXT::SetVisible(), SHEET_FILENAME, SHEET_NAME, textBaselineOffset(), textSize(), textSizeIU(), USER, ORCAD_DRAWN_INSTANCE::x1, and ORCAD_DRAWN_INSTANCE::y1.
Referenced by Convert().
|
private |
Definition at line 7668 of file orcad_converter_sheet.cpp.
References SCH_SHAPE::AddPoint(), appendPageItem(), SCH_SHEET_PIN::CreateGraphicShape(), FILLED_WITH_COLOR, SCH_TEXT::GetPosition(), LAYER_NOTES, OrcadColor(), POLY, EDA_SHAPE::SetFillColor(), EDA_SHAPE::SetFillMode(), SCH_SHAPE::SetStroke(), and SOLID.
Referenced by Convert().
|
private |
Definition at line 2796 of file orcad_converter_symbols.cpp.
References _, std::abs(), ANGLE_HORIZONTAL, ANGLE_VERTICAL, appendPageItem(), ORCAD_SYMBOL_DEF::bbox, BOX2< Vec >::Centre(), CIRCLE, correction, SHAPE_LINE_CHAIN::CPoints(), ORCAD_PLACED_INSTANCE::dbId, delta, effectiveProps(), LIB_ID::FixIllegalChars(), ORCAD_CONVERTER::LIB_ENTRY::footprint, FromOrcadString(), LIB_SYMBOL::GetDrawItems(), SCH_SYMBOL::GetField(), SCH_SYMBOL::GetFields(), SCH_SYMBOL::GetLibSymbolRef(), SCH_SYMBOL::GetPins(), EDA_SHAPE::GetPolyShape(), SCH_SHAPE::GetPosition(), EDA_SHAPE::GetRadius(), BOX2< Vec >::GetRight(), EDA_SHAPE::GetShape(), SYMBOL::GetTransform(), GR_TEXT_H_ALIGN_LEFT, GR_TEXT_V_ALIGN_CENTER, ORCAD_CONVERTER::SOURCE_PIN_IDENTITY::ignored, index, TRANSFORM::InverseTransform(), isInstalledPropertyName(), EDA_TEXT::IsVisible(), kicadSymbolFor(), LAYER_DEVICE, LAYER_PINNAM, LAYER_PINNUM, LIB_NICK, libForInstance(), ORCAD_CONVERTER::SOURCE_PIN_IDENTITY::libraryPin, m_currentOccProps, m_currentOccRefs, m_libSymbols, m_nativePowerFamilies, m_placedPackageUnits, m_preparedLibUnits, m_preparedPkgToLib, m_sourceInstances, m_sourcePinIdentities, ORCAD_PLACED_INSTANCE::mirror, ORCAD_CONVERTER::LIB_ENTRY::name, ORCAD_RAW_PAGE::name, note(), ORCAD_CONVERTER::SOURCE_PIN_IDENTITY::number, ORCAD_IU_PER_DBU, OrcadDbuToIu(), OrcadOrientOf(), OrcadOrientOffset(), OrcadTextBaselineOffset(), SHAPE_POLY_SET::Outline(), pin, ORCAD_CONVERTER::UNIT_INFO::pinIgnore, ORCAD_CONVERTER::UNIT_INFO::pinNumbers, ORCAD_PLACED_INSTANCE::pins, ORCAD_SYMBOL_DEF::pins, placeDefinitionImages(), placedPinElectricalPosition(), placeSymbolFields(), POLY, ORCAD_CONVERTER::SOURCE_PIN_IDENTITY::position, radius, ORCAD_PLACED_INSTANCE::reference, resolveReference(), ORCAD_PLACED_INSTANCE::rotation, SCH_SHAPE_T, SCH_TEXT_T, SCH_SYMBOL::SetDNP(), SCH_SYMBOL::SetExcludedFromBoard(), SCH_SYMBOL::SetOrientation(), SCH_SYMBOL::SetRef(), SCH_FIELD::SetText(), SCH_SYMBOL::SetUnitSelection(), MULTIVECTOR< T, FIRST_TYPE_VAL, LAST_TYPE_VAL >::sort(), ORCAD_CONVERTER::UNIT_INFO::symbol, ORCAD_SYMBOL_DEF::synthesized, text, toKicadOrientation(), TRANSFORM::TransformCoordinate(), ORCAD_CONVERTER::LIB_ENTRY::units, VALUE, ORCAD_PLACED_INSTANCE::value, warn(), ORCAD_PLACED_INSTANCE::x, VECTOR2< T >::x, ORCAD_BBOX::x1, ORCAD_BBOX::x2, ORCAD_PLACED_INSTANCE::y, VECTOR2< T >::y, ORCAD_BBOX::y1, TRANSFORM::y1, and ORCAD_BBOX::y2.
|
private |
Append computed junctions as SCH_JUNCTION items.
Definition at line 6037 of file orcad_converter_sheet.cpp.
References appendPageItem(), computeJunctions(), and OrcadDbuToIu().
Referenced by convertPage().
|
private |
Keep computed intersheet references hidden; display the stored OrCAD IREF text.
Definition at line 7924 of file orcad_converter_sheet.cpp.
References _, std::abs(), appendPageItem(), applyFont(), KIID::AsStdString(), SPIN_STYLE::BOTTOM, canonicalGlobalNetName(), ORCAD_GRAPHIC_INST::displayProps, eligibleSourceConnectivityWires(), FromOrcadString(), SCH_GLOBALLABEL::GetField(), SCH_SHEET::GetPins(), EDA_TEXT::GetTextColor(), EDA_TEXT::GetTextSize(), SCH_SCREEN::GetUuid(), INTERSHEET_REFS, SCH_CONNECTION::IsBusLabel(), L_BIDI, SCH_SHEET_PATH::Last(), SPIN_STYLE::LEFT, m_hierBusNamesByScreen, m_wireEndpoints, ORCAD_RAW_PAGE::name, note(), ORCAD_RAW_PAGE::offpage, offpageNets(), OrcadColor(), OrcadDbuToIu(), OrcadDisplayFontId(), OrcadDisplayPropVisible(), placeGraphicDisplayText(), ORCAD_GRAPHIC_INST::props, rememberInterfaceLabelSource(), SPIN_STYLE::RIGHT, SPIN_STYLE::RotateCCW(), safeConnectivityLabelPosition(), SCH_LABEL_BASE::SetShape(), SCH_GLOBALLABEL::SetSpinStyle(), SCH_HIERLABEL::SetSpinStyle(), EDA_TEXT::SetTextColor(), EDA_TEXT::SetTextSize(), textSize(), THROW_IO_ERROR, SPIN_STYLE::UP, ORCAD_WIRE::x1, ORCAD_WIRE::x2, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
|
private |
Definition at line 4239 of file orcad_converter_sheet.cpp.
References appendPageItem(), ORCAD_RAW_PAGE::borderPrinted, KIFONT::FONT::GetFont(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_V_ALIGN_CENTER, ORCAD_RAW_PAGE::gridRefPrinted, ORCAD_RAW_PAGE::height, ORCAD_RAW_PAGE::horizontalAscending, ORCAD_RAW_PAGE::horizontalChar, ORCAD_RAW_PAGE::horizontalCount, ORCAD_RAW_PAGE::horizontalWidth, ORCAD_RAW_PAGE::isMetric, ORCAD_PRIMITIVE::kind, KiROUND(), LAYER_NOTES, left, ORCAD_PRIMITIVE::lineStyle, ORCAD_PRIMITIVE::lineWidth, OrcadDbuToIu(), RECTANGLE, right, EDA_TEXT::SetFont(), EDA_TEXT::SetHorizJustify(), EDA_TEXT::SetTextColor(), EDA_TEXT::SetTextSize(), EDA_TEXT::SetVertJustify(), top(), ORCAD_RAW_PAGE::verticalAscending, ORCAD_RAW_PAGE::verticalChar, ORCAD_RAW_PAGE::verticalCount, ORCAD_RAW_PAGE::verticalWidth, ORCAD_RAW_PAGE::width, and VECTOR2< T >::x.
Referenced by convertPage().
|
private |
Definition at line 8047 of file orcad_converter_sheet.cpp.
References _, std::abs(), appendPageItem(), applyFont(), KIID::AsStdString(), SPIN_STYLE::BOTTOM, canonicalGlobalNetName(), ORCAD_GRAPHIC_INST::color, ORCAD_GRAPHIC_INST::displayProps, effectiveInterfaceNetName(), eligibleSourceConnectivityWires(), end, FromOrcadString(), SCH_SCREEN::GetUuid(), ORCAD_WIRE::id, INTERSHEET_REFS, ORCAD_WIRE::isBus, SCH_CONNECTION::IsBusLabel(), L_BIDI, L_INPUT, L_OUTPUT, SPIN_STYLE::LEFT, ORCAD_GRAPHIC_INST::logicalName, m_hierBusNamesByScreen, m_occurrenceNetNameMinDepth, m_wireEndpoints, ORCAD_GRAPHIC_INST::name, ORCAD_RAW_PAGE::name, namedGraphicPinPos(), ORCAD_RAW_PAGE::netAliases, ORCAD_RAW_PAGE::netmap, OrcadColor(), OrcadDbuToIu(), OrcadDisplayFontId(), OrcadDisplayPropVisible(), placeGraphicDisplayText(), ORCAD_RAW_PAGE::ports, ORCAD_GRAPHIC_INST::props, rawPointOnSegment(), rememberInterfaceLabelSource(), SPIN_STYLE::RIGHT, safeConnectivityLabelPosition(), SCH_LABEL_BASE::SetShape(), SCH_LABEL_BASE::SetSpinStyle(), EDA_TEXT::SetTextColor(), EDA_TEXT::SetTextSize(), textSize(), THROW_IO_ERROR, SPIN_STYLE::UP, ORCAD_RAW_PAGE::wires, VECTOR2< T >::x, ORCAD_WIRE::x1, ORCAD_WIRE::x2, VECTOR2< T >::y, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
|
private |
Definition at line 3134 of file orcad_converter_symbols.cpp.
References SCH_SYMBOL::AddField(), ANGLE_HORIZONTAL, ANGLE_VERTICAL, appendPageItem(), applyFont(), ORCAD_GRAPHIC_INST::bbox, ORCAD_SYMBOL_DEF::bbox, canonicalGlobalNetName(), DATASHEET, displayFontId(), ORCAD_GRAPHIC_INST::displayProps, displayUsesTemplateFont(), LIB_ID::FixIllegalChars(), FOOTPRINT, FromOrcadString(), SCH_SYMBOL::GetField(), SCH_SYMBOL::GetPins(), SCH_SYMBOL::GetPosition(), SYMBOL::GetTransform(), GR_TEXT_H_ALIGN_LEFT, GR_TEXT_V_ALIGN_TOP, kicadSymbolFor(), LIB_NICK, ORCAD_GRAPHIC_INST::logicalName, m_libSymbols, m_powerCount, ORCAD_GRAPHIC_INST::mirror, ORCAD_GRAPHIC_INST::name, OrcadColor(), OrcadDbuToIu(), OrcadDisplayPropShowsName(), OrcadDisplayPropVisible(), OrcadOrientOf(), OrcadOrientOffset(), powerLibFor(), powerPinPos(), ORCAD_GRAPHIC_INST::props, REFERENCE, ORCAD_GRAPHIC_INST::rotation, SCH_FIELD::SetEffectiveHorizJustify(), SCH_FIELD::SetEffectiveVertJustify(), SCH_FIELD::SetNameShown(), SCH_SYMBOL::SetOrientation(), SCH_FIELD::SetPosition(), SCH_SYMBOL::SetPosition(), SCH_SYMBOL::SetRef(), SCH_FIELD::SetText(), EDA_TEXT::SetTextAngle(), EDA_TEXT::SetTextColor(), EDA_TEXT::SetTextSize(), SCH_SYMBOL::SetUnitSelection(), SCH_SYMBOL::SetValueFieldText(), EDA_TEXT::SetVisible(), textBaselineOffset(), textSize(), textSizeIU(), toKicadOrientation(), ORCAD_CONVERTER::LIB_ENTRY::units, USER, VALUE, ORCAD_GRAPHIC_INST::x, VECTOR2< T >::x, ORCAD_BBOX::x1, ORCAD_BBOX::x2, ORCAD_GRAPHIC_INST::y, VECTOR2< T >::y, ORCAD_BBOX::y1, TRANSFORM::y1, and ORCAD_BBOX::y2.
|
private |
Definition at line 3246 of file orcad_converter_symbols.cpp.
References std::abs(), SCH_SYMBOL::AddField(), ANGLE_HORIZONTAL, ANGLE_VERTICAL, appendPageItem(), applyFont(), ORCAD_SYMBOL_DEF::bbox, ORCAD_DISPLAY_PROP::color, DATASHEET, ORCAD_PLACED_INSTANCE::dbId, DESCRIPTION, displayFontId(), ORCAD_PLACED_INSTANCE::displayProps, displayUsesTemplateFont(), effectiveProps(), FOOTPRINT, FromOrcadString(), SCH_SYMBOL::GetField(), SCH_SYMBOL::GetFields(), SCH_FIELD::GetPosition(), SCH_SYMBOL::GetPosition(), SCH_FIELD::GetText(), EDA_TEXT::GetTextSize(), SYMBOL::GetTransform(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_V_ALIGN_TOP, EDA_TEXT::IsVisible(), LAYER_NOTES, m_currentOccUnitRefs, m_pageItemScreen, ORCAD_DISPLAY_PROP::name, ORCAD_IU_PER_DBU, ORCAD_ORIENT_TABLE, OrcadColor(), OrcadDbuToIu(), OrcadDisplayPropShowsName(), OrcadDisplayPropShowsValue(), OrcadDisplayPropVisible(), OrcadTransformPoint(), ORCAD_PLACED_INSTANCE::pins, ORCAD_SYMBOL_DEF::pins, propertyNamesEqual(), REFERENCE, ORCAD_PLACED_INSTANCE::reference, SCH_SYMBOL::RemoveField(), resolveReference(), ORCAD_DISPLAY_PROP::rotation, SCH_FIELD::SetEffectiveHorizJustify(), SCH_FIELD::SetEffectiveVertJustify(), SCH_SYMBOL::SetFootprintFieldText(), EDA_TEXT::SetHorizJustify(), SCH_FIELD::SetNameShown(), SCH_FIELD::SetPosition(), SCH_FIELD::SetText(), EDA_TEXT::SetTextAngle(), EDA_TEXT::SetTextColor(), EDA_TEXT::SetTextSize(), SCH_SYMBOL::SetValueFieldText(), EDA_TEXT::SetVisible(), text, textBaselineOffset(), textSize(), textSizeIU(), ORCAD_PLACED_INSTANCE::unitIndex, unitLetter(), USER, VALUE, ORCAD_PLACED_INSTANCE::value, ORCAD_DISPLAY_PROP::x, ORCAD_PLACED_INSTANCE::x, VECTOR2< T >::x, ORCAD_BBOX::x1, ORCAD_BBOX::x2, ORCAD_DISPLAY_PROP::y, ORCAD_PLACED_INSTANCE::y, VECTOR2< T >::y, ORCAD_BBOX::y1, TRANSFORM::y1, and ORCAD_BBOX::y2.
Referenced by placeInstance().
|
private |
Definition at line 6094 of file orcad_converter_sheet.cpp.
References KIID::AsStdString(), ORCAD_RAW_PAGE::blocks, canonicalGlobalNetName(), computeJunctions(), ORCAD_GRAPHIC_INST::dbId, ORCAD_PLACED_INSTANCE::dbId, ORCAD_WIRE::dbId, effectiveInterfaceNetName(), SCH_SCREEN::GetUuid(), ORCAD_RAW_PAGE::globals, ORCAD_NET_GROUP::id, ORCAD_WIRE::id, ORCAD_RAW_PAGE::instances, ORCAD_WIRE::isBus, isOffpageNetName(), isPowerNetName(), left, ORCAD_GRAPHIC_INST::logicalName, m_currentOccNetNames, m_hierBusNamesByScreen, m_scopeGeneratedFlatNets, m_scopeNamedFlatNets, name, ORCAD_GRAPHIC_INST::name, ORCAD_NET_GROUP::name, namedGraphicPinPos(), ORCAD_RAW_PAGE::netAliases, ORCAD_RAW_PAGE::netGroups, ORCAD_RAW_PAGE::netmap, occurrenceElectricalNetName(), ORCAD_RAW_PAGE::offpage, onSegment(), pin, ORCAD_DRAWN_INSTANCE::pins, ORCAD_PLACED_INSTANCE::pins, ORCAD_RAW_PAGE::ports, powerNet(), powerPinPos(), ORCAD_GRAPHIC_INST::props, result, right, ORCAD_RAW_PAGE::wires, VECTOR2< T >::x, ORCAD_WIRE::x1, ORCAD_WIRE::x2, VECTOR2< T >::y, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
|
private |
Key power symbols by net name because users can rename their ports.
Definition at line 1970 of file orcad_converter_symbols.cpp.
References ORCAD_CONVERTER::LIB_ENTRY::isPower, m_design, m_libSymbols, ORCAD_CONVERTER::LIB_ENTRY::name, ORCAD_SYMBOL_DEF::name, ORCAD_ST_GLOBAL_SYMBOL, ORCAD_CONVERTER::UNIT_INFO::pinNumbers, ORCAD_CONVERTER::LIB_ENTRY::powerNet, ORCAD_CONVERTER::LIB_ENTRY::refPrefix, ORCAD_CONVERTER::UNIT_INFO::symbol, SymbolId(), ORCAD_SYMBOL_DEF::typeId, and ORCAD_CONVERTER::LIB_ENTRY::units.
Referenced by placePowerSymbol().
|
private |
Definition at line 5112 of file orcad_converter_sheet.cpp.
References ORCAD_PLACED_INSTANCE::dbId, ORCAD_WIRE::dbId, ORCAD_WIRE::id, ORCAD_RAW_PAGE::instances, ORCAD_GRAPHIC_INST::logicalName, m_currentOccNetNames, ORCAD_RAW_PAGE::netAliases, netAt(), ORCAD_RAW_PAGE::netmap, occurrenceElectricalNetName(), occurrenceNetIdFor(), onSegment(), pin, ORCAD_PLACED_INSTANCE::pins, placedPinElectricalPosition(), powerPinPos(), ORCAD_GRAPHIC_INST::props, rawPointOnSegment(), ORCAD_RAW_PAGE::wires, ORCAD_PIN_INST::wordA, ORCAD_PIN_INST::wordB, ORCAD_PIN_INST::x, ORCAD_WIRE::x1, ORCAD_WIRE::x2, ORCAD_PIN_INST::y, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
Referenced by Convert(), and placeWires().
|
private |
Power-symbol connection point, corrected to a nearby endpoint of its named wire.
Definition at line 5638 of file orcad_converter_sheet.cpp.
References ORCAD_RAW_PAGE::instances, ORCAD_GRAPHIC_INST::logicalName, namedGraphicPinPos(), ORCAD_RAW_PAGE::netAliases, ORCAD_RAW_PAGE::netmap, pin, ORCAD_PLACED_INSTANCE::pins, ORCAD_GRAPHIC_INST::props, ORCAD_GRAPHIC_INST::x, VECTOR2< T >::x, ORCAD_GRAPHIC_INST::y, and VECTOR2< T >::y.
Referenced by placePowerSymbol(), placeWires(), and powerNet().
|
private |
Capture net names ignore case; KiCad net names do not.
Use one spelling for each global net.
Definition at line 450 of file orcad_converter_sheet.cpp.
References ORCAD_GRAPHIC_INST::logicalName, m_design, m_globalNetNames, m_offpageNetNames, m_powerNetNames, name, ORCAD_GRAPHIC_INST::name, and ORCAD_GRAPHIC_INST::props.
Referenced by Convert().
|
private |
Definition at line 642 of file orcad_converter_symbols.cpp.
References _, std::abs(), ORCAD_SYMBOL_DEF::color, computeFontBaseline(), FromOrcadString(), ORCAD_SYMBOL_DEF::generalFlags, ORCAD_RAW_PAGE::instances, libForInstance(), m_design, m_libSymbols, m_pkgToLib, m_preparedLibUnits, m_preparedPkgToLib, name, normalizedPath(), note(), ORCAD_PLACED_INSTANCE::pins, ORCAD_SYMBOL_DEF::pins, ORCAD_PLACED_INSTANCE::pkgName, ORCAD_SYMBOL_DEF::primitives, ORCAD_PLACED_INSTANCE::props, ORCAD_SYMBOL_DEF::props, ORCAD_SYMBOL_DEF::sourceLib, ORCAD_PLACED_INSTANCE::sourceLibrary, ORCAD_SYMBOL_DEF::synthesized, synthesizeSymbol(), and ORCAD_SYMBOL_DEF::variants.
Referenced by Convert().
|
private |
Definition at line 3670 of file orcad_converter_sheet.cpp.
References _, SCH_CONNECTION::AllMembers(), KIID::AsStdString(), BUS, SCH_CONNECTION::BusCode(), SCH_ITEM::Connection(), ORCAD_WIRE::dbId, IMPORT_NET_MAP::entries, FromOrcadString(), IMPORT_NET_MAP_ENTRY::generatedName, SCH_ITEM::GetBodyStyle(), SCH_PIN::GetLibPin(), SCH_PIN::GetName(), SCH_PIN::GetOrientation(), SCH_ITEM::GetParentSymbol(), SCH_SYMBOL::GetPins(), SCH_PIN::GetPosition(), SCH_SYMBOL::GetRef(), SCH_PIN::GetType(), SCH_ITEM::GetUnit(), SCH_SYMBOL::GetUnitSelection(), SCH_SCREEN::GetUuid(), group, ORCAD_WIRE::id, ORCAD_CONVERTER::SOURCE_PIN_IDENTITY::ignored, index, SCH_CONNECTION::IsBus(), ORCAD_WIRE::isBus, SCH_CONNECTION::IsNet(), ORCAD_PIN_INST::IsNoConnect(), SCH_SCREEN::Items(), IMPORT_NET_MAP_ENTRY::itemUuids, left, ORCAD_CONVERTER::SOURCE_PIN_IDENTITY::libraryPin, m_hierBusNamesByScreen, m_schematic, m_sourceGeneratedNetNames, m_sourceInstances, m_sourceNetItems, m_sourceNetNames, m_sourceOccurrences, m_sourcePages, m_sourcePinIdentities, EDA_ITEM::m_Uuid, m_wirelessNetNames, SCH_CONNECTION::Name(), name, IMPORT_NET_MAP_ENTRY::nameAtImport, SCH_CONNECTION::NetCode(), NO_CONNECT, ORCAD_CONVERTER::SOURCE_PIN_IDENTITY::number, IMPORT_NET_MAP_ENTRY::occurrence, EE_RTREE::OfType(), onSegment(), IMPORT_NET_MAP_ENTRY::originalName, pin, ORCAD_PLACED_INSTANCE::pins, ORCAD_CONVERTER::SOURCE_PIN_IDENTITY::position, alg::remove_duplicates(), RESOLVED, right, SCH_PIN_T, SCH_SYMBOL_T, scopedHierBusMember(), IMPORT_NET_MAP_ENTRY::sourceNetId, SPLIT, IMPORT_NET_MAP_ENTRY::status, IMPORT_NET_MAP_ENTRY::terminals, UNCONNECTED, IMPORT_NET_MAP_ENTRY::view, warn(), ORCAD_PIN_INST::wordA, ORCAD_PIN_INST::wordB, ORCAD_PIN_INST::x, VECTOR2< T >::x, ORCAD_PIN_INST::y, and VECTOR2< T >::y.
Referenced by finalizeNetNames().
|
private |
Definition at line 3207 of file orcad_converter_sheet.cpp.
References _, SEG::A, SEG::B, SCH_ITEM::GetLayer(), SCH_LINE::GetSeg(), SCH_SCREEN::Items(), LAYER_BUS, LAYER_WIRE, m_interfaceLabelSources, EE_RTREE::OfType(), SCH_LINE_T, and THROW_IO_ERROR.
Referenced by placeOffpageConnectors(), and placePorts().
|
private |
Resolve a Design Template font ID to its 1-based LOGFONT index.
Definition at line 3778 of file orcad_converter_symbols.cpp.
References m_design.
Referenced by addSymbolPin(), applyFont(), displayFontId(), fontHeightDbu(), textBaselineOffset(), textSize(), and textSizeIU().
|
private |
Use the occurrence reference when the instance has an unannotated template.
Definition at line 3108 of file orcad_converter_symbols.cpp.
References ORCAD_PLACED_INSTANCE::dbId, FromOrcadString(), m_currentOccRefs, and ORCAD_PLACED_INSTANCE::reference.
Referenced by placeInstance(), and placeSymbolFields().
|
staticprivate |
Definition at line 4345 of file orcad_converter_sheet.cpp.
References FromOrcadString().
Referenced by MakePageFileName().
|
staticprivate |
Closest point (DBU) on a wire segment to (aX, aY); exact for H/V wires.
Definition at line 8710 of file orcad_converter_sheet.cpp.
References KiROUND(), ORCAD_WIRE::x1, ORCAD_WIRE::x2, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
|
staticprivate |
LIB_ID-safe symbol name: ':', '"', '/' and whitespace runs -> '_'; "SYM" if empty.
Definition at line 3937 of file orcad_converter_symbols.cpp.
Referenced by BuildSymbolLibrary(), and powerLibFor().
|
private |
Use placed pin positions to keep uncached symbols connected.
Definition at line 932 of file orcad_converter_symbols.cpp.
References ORCAD_ORIENT_ENTRY::a, ORCAD_ORIENT_ENTRY::b, ORCAD_PLACED_INSTANCE::bbox, ORCAD_SYMBOL_DEF::bbox, ORCAD_ORIENT_ENTRY::c, ORCAD_ORIENT_ENTRY::d, ORCAD_PRIMITIVE::kind, ORCAD_PLACED_INSTANCE::mirror, ORCAD_SYMBOL_DEF::name, ORCAD_ORIENT_TABLE, ORCAD_ST_LIBRARY_PART, OrcadOrientOf(), OrcadOrientOffset(), PIN_LEN_DBU, ORCAD_PLACED_INSTANCE::pins, ORCAD_SYMBOL_DEF::primitives, RECTANGLE, ORCAD_PLACED_INSTANCE::rotation, ORCAD_SYMBOL_DEF::synthesized, ORCAD_ORIENT_ENTRY::txSel, ORCAD_SYMBOL_DEF::typeId, ORCAD_ORIENT_ENTRY::tySel, ORCAD_PIN_INST::x, ORCAD_PLACED_INSTANCE::x, ORCAD_POINT::x, ORCAD_BBOX::x1, ORCAD_PRIMITIVE::x1, ORCAD_BBOX::x2, ORCAD_PRIMITIVE::x2, ORCAD_PIN_INST::y, ORCAD_PLACED_INSTANCE::y, ORCAD_POINT::y, ORCAD_BBOX::y1, ORCAD_PRIMITIVE::y1, ORCAD_BBOX::y2, and ORCAD_PRIMITIVE::y2.
Referenced by prepareSymbols().
|
private |
Definition at line 3757 of file orcad_converter_symbols.cpp.
References KiROUND(), m_design, OrcadTextBaselineOffset(), and resolveFontIndex().
Referenced by applyTitleBlock(), placeGraphicDisplayText(), placeGraphics(), placeHierarchicalBlockFields(), placePowerSymbol(), and placeSymbolFields().
|
private |
Preserve an explicit LOGFONT width while retaining natural font aspect when it is zero.
Definition at line 3840 of file orcad_converter_symbols.cpp.
References std::abs(), ORCAD_FONT::bold, ORCAD_FONT::face, ORCAD_FONT::height, m_design, ORCAD_FONT::pitchAndFamily, resolveFontIndex(), schIUScale, textSizeIU(), and ORCAD_FONT::width.
Referenced by addSymbolPrimitive(), applyTitleBlock(), placeGraphicDisplayText(), placeGraphics(), placeHierarchicalBlockFields(), placeOffpageConnectors(), placePorts(), placePowerSymbol(), and placeSymbolFields().
|
private |
Definition at line 3812 of file orcad_converter_symbols.cpp.
References fontHeightDbu(), m_design, and resolveFontIndex().
Referenced by addSymbolPin(), applyTitleBlock(), placeGraphicDisplayText(), placeHierarchicalBlockFields(), placePowerSymbol(), placeSymbolFields(), and textSize().
|
staticprivate |
Definition at line 2641 of file orcad_converter_symbols.cpp.
References SYM_MIRROR_X, SYM_MIRROR_Y, SYM_ORIENT_0, SYM_ORIENT_180, SYM_ORIENT_270, and SYM_ORIENT_90.
Referenced by placeInstance(), and placePowerSymbol().
|
private |
The unit key includes a non-Normal view so DeMorgan graphics remain distinct.
Definition at line 1200 of file orcad_converter_symbols.cpp.
References ORCAD_PLACED_INSTANCE::pkgName, ORCAD_PLACED_INSTANCE::props, and ORCAD_PLACED_INSTANCE::sourcePackage.
Referenced by libForInstance(), and placeSymbolFields().
|
private |
– reporting [orcad_converter_sheet.cpp] ---------------------------------------—
Conversion problem: REPORTER at RPT_SEVERITY_WARNING.
Definition at line 436 of file orcad_converter_sheet.cpp.
References m_reporter, and RPT_SEVERITY_WARNING.
Referenced by BuildSymbolLibrary(), finalizeNativePowerPackages(), libForInstance(), placeBitmap(), placeInstance(), and recordNetNameMap().
|
private |
Definition at line 3745 of file orcad_converter_symbols.cpp.
References ORCAD_ALIAS::fontIdx, and m_design.
Referenced by computeFontBaseline().
|
staticconstexpr |
Symbol library nickname used in every emitted LIB_ID.
Definition at line 165 of file orcad_converter.h.
Referenced by finalizeNativePowerPackages(), kicadSymbolFor(), placeInstance(), and placePowerSymbol().
|
private |
Definition at line 464 of file orcad_converter.h.
Referenced by Convert().
|
private |
Definition at line 485 of file orcad_converter.h.
Referenced by Convert(), and convertUnreferencedPages().
|
private |
Definition at line 479 of file orcad_converter.h.
Referenced by Convert(), and convertUnreferencedPages().
|
private |
Definition at line 486 of file orcad_converter.h.
|
private |
Definition at line 483 of file orcad_converter.h.
Referenced by Convert(), convertUnreferencedPages(), effectiveInterfaceNetName(), and occurrenceElectricalNetName().
|
private |
Definition at line 478 of file orcad_converter.h.
Referenced by Convert(), convertPage(), convertUnreferencedPages(), occurrenceElectricalNetName(), occurrenceNetIdFor(), offpageNets(), placeWires(), and powerNet().
|
private |
Definition at line 477 of file orcad_converter.h.
Referenced by Convert(), convertUnreferencedPages(), effectiveProps(), and placeInstance().
|
private |
Per-page occurrence references distinguish repeated child schematics.
Null means no occurrence tree.
Definition at line 475 of file orcad_converter.h.
Referenced by Convert(), convertPage(), convertUnreferencedPages(), placeInstance(), and resolveReference().
|
private |
Definition at line 476 of file orcad_converter.h.
Referenced by Convert(), convertUnreferencedPages(), libForInstance(), and placeSymbolFields().
|
private |
Definition at line 484 of file orcad_converter.h.
Referenced by Convert(), convertUnreferencedPages(), and occurrenceElectricalNetName().
|
private |
Definition at line 482 of file orcad_converter.h.
Referenced by Convert(), and convertUnreferencedPages().
|
private |
Definition at line 448 of file orcad_converter.h.
Referenced by addSymbolPin(), addSymbolPrimitive(), applyFont(), applyTitleBlock(), BuildSymbolLibrary(), computeFontBaseline(), Convert(), convertPage(), convertUnreferencedPages(), deterministicUuid(), displayFontId(), displayUsesTemplateFont(), fontHeightDbu(), graphicPinPos(), libForInstance(), ORCAD_CONVERTER(), packageFor(), pickVariant(), placeGraphics(), powerLibFor(), prepareGlobalNetNames(), prepareSymbols(), resolveFontIndex(), textBaselineOffset(), textSize(), textSizeIU(), and wireAliasFontId().
|
private |
dominant text height; 0 = none
Definition at line 468 of file orcad_converter.h.
Referenced by computeFontBaseline(), and ORCAD_CONVERTER().
|
private |
Definition at line 461 of file orcad_converter.h.
Referenced by canonicalGlobalNetName(), and Convert().
|
private |
Definition at line 460 of file orcad_converter.h.
Referenced by canonicalGlobalNetName(), and prepareGlobalNetNames().
|
private |
Definition at line 487 of file orcad_converter.h.
Referenced by Convert(), placeOffpageConnectors(), placePorts(), placeWires(), and recordNetNameMap().
|
private |
Definition at line 506 of file orcad_converter.h.
Referenced by finalizeNetNames(), and rememberInterfaceLabelSource().
|
private |
Definition at line 508 of file orcad_converter.h.
Referenced by appendNetIntent(), and finalizeNetNames().
|
private |
keyed by emitted lib name
Definition at line 454 of file orcad_converter.h.
Referenced by BuildSymbolLibrary(), finalizeNativePowerPackages(), kicadSymbolFor(), placeInstance(), placePowerSymbol(), powerLibFor(), and prepareSymbols().
|
private |
Definition at line 459 of file orcad_converter.h.
Referenced by finalizeNativePowerPackages(), and placeInstance().
|
private |
Definition at line 507 of file orcad_converter.h.
Referenced by appendNetIntent(), and minimizeNetLabels().
|
private |
Definition at line 466 of file orcad_converter.h.
Referenced by Convert(), and placePorts().
|
private |
Definition at line 465 of file orcad_converter.h.
Referenced by Convert().
|
private |
Definition at line 463 of file orcad_converter.h.
Referenced by isOffpageNetName(), and prepareGlobalNetNames().
|
private |
Definition at line 472 of file orcad_converter.h.
Referenced by appendPageItem(), assignPageItemUuids(), and convertPage().
|
private |
Definition at line 471 of file orcad_converter.h.
Referenced by appendPageItem(), convertPage(), and placeSymbolFields().
|
private |
Definition at line 469 of file orcad_converter.h.
|
private |
Definition at line 455 of file orcad_converter.h.
Referenced by prepareSymbols().
|
private |
Definition at line 458 of file orcad_converter.h.
Referenced by finalizeNativePowerPackages(), and placeInstance().
|
private |
"#PWR%04d" counter
Definition at line 467 of file orcad_converter.h.
Referenced by ORCAD_CONVERTER(), and placePowerSymbol().
|
private |
Definition at line 462 of file orcad_converter.h.
Referenced by isPowerNetName(), and prepareGlobalNetNames().
|
private |
Definition at line 457 of file orcad_converter.h.
Referenced by finalizeNativePowerPackages(), placeInstance(), and prepareSymbols().
|
private |
Definition at line 456 of file orcad_converter.h.
Referenced by finalizeNativePowerPackages(), placeInstance(), and prepareSymbols().
|
private |
Definition at line 451 of file orcad_converter.h.
Referenced by Convert(), convertUnreferencedPages(), and ORCAD_CONVERTER().
|
private |
Definition at line 450 of file orcad_converter.h.
Referenced by note(), ORCAD_CONVERTER(), and warn().
|
private |
Definition at line 452 of file orcad_converter.h.
Referenced by Convert(), and ORCAD_CONVERTER().
|
private |
Definition at line 449 of file orcad_converter.h.
Referenced by applyFont(), Convert(), convertUnreferencedPages(), finalizeNetNames(), minimizeNetLabels(), ORCAD_CONVERTER(), and recordNetNameMap().
|
private |
Definition at line 481 of file orcad_converter.h.
Referenced by Convert(), convertUnreferencedPages(), and placeWires().
|
private |
Definition at line 480 of file orcad_converter.h.
Referenced by Convert(), convertUnreferencedPages(), and placeWires().
|
private |
Definition at line 470 of file orcad_converter.h.
Referenced by Convert(), and convertUnreferencedPages().
|
private |
Definition at line 512 of file orcad_converter.h.
Referenced by recordNetNameMap().
|
private |
Definition at line 522 of file orcad_converter.h.
Referenced by placeInstance(), and recordNetNameMap().
|
private |
Definition at line 510 of file orcad_converter.h.
Referenced by finalizeNetNames(), and recordNetNameMap().
|
private |
Definition at line 511 of file orcad_converter.h.
Referenced by convertPage(), and recordNetNameMap().
|
private |
Definition at line 523 of file orcad_converter.h.
Referenced by convertPage(), and recordNetNameMap().
|
private |
Definition at line 509 of file orcad_converter.h.
Referenced by convertPage(), and recordNetNameMap().
|
private |
Definition at line 521 of file orcad_converter.h.
Referenced by placeInstance(), and recordNetNameMap().
|
private |
Lower-cased sheet names already emitted, to keep sibling sheet names unique.
Definition at line 527 of file orcad_converter.h.
Referenced by Convert(), and convertUnreferencedPages().
|
private |
Per-page wire lookup: endpoint -> wires ending there.
Rebuilt by buildNetLookup().
Definition at line 530 of file orcad_converter.h.
Referenced by buildNetLookup(), netAt(), placeOffpageConnectors(), and placePorts().
|
private |
Definition at line 524 of file orcad_converter.h.
Referenced by recordNetNameMap().
|
staticconstexprprivate |
Definition at line 227 of file orcad_converter.h.
Referenced by applyPageSettings().
|
staticconstexprprivate |
Page margins in DBU leave room for the KiCad frame and title block.
Definition at line 224 of file orcad_converter.h.
Referenced by applyPageSettings().
|
staticconstexprprivate |
Definition at line 226 of file orcad_converter.h.
Referenced by applyPageSettings().
|
staticconstexprprivate |
Definition at line 225 of file orcad_converter.h.
Referenced by applyPageSettings().
|
staticconstexprprivate |
– constants (calibrated; do not change) -------------------------------------—
Standard OrCAD pin length used for synthesized placeholder pins, DBU.
Definition at line 221 of file orcad_converter.h.
Referenced by synthesizeSymbol().