|
KiCad PCB EDA Suite
|
#include <orcad_converter.h>
Classes | |
| struct | FOLDER_WALK |
| Page counters and rules threaded through a folder hierarchy walk. More... | |
| 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 | PAGE_NET_INDEX |
| Lookups for the page and scope being converted, rebuilt by buildNetLookup(). More... | |
| struct | PAGE_SCOPE |
| Occurrence context of the page being converted. More... | |
| struct | PIN_EMIT |
| Per-pin choices kicadSymbolFor() makes before emitting a pin. More... | |
| struct | PLACED_PACKAGE_UNIT |
| struct | POWER_ALIAS_EVIDENCE |
| Placements of a power symbol name and the power nets they resolved to. More... | |
| 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) | |
| ~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 | canonicalGlobalNetKey (const std::string &aName) const |
| Case-folded canonicalGlobalNetName() for use as a map key. | |
| std::string | effectiveInterfaceNetName (const std::string &aName) const |
| void | enterScope (PAGE_SCOPE aScope) |
| std::string | occurrenceBaseNetName (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 () |
| LIB_ENTRY | buildPackageEntry (const ORCAD_PACKAGE &aPackage) const |
| One unit per package device; a Convert view becomes the unit's DeMorgan body. | |
| 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 BOX2I &aBodyBox, PIN_EMIT aEmit) |
| std::string | uniqueLibName (const std::string &aBase, const std::function< bool(const LIB_ENTRY &)> &aReusable) const |
| aBase, or aBase_pinsN for the first N >= 2 whose existing entry is absent or passes aReusable. | |
| SCH_SYMBOL * | instantiateSymbol (const LIB_SYMBOL &aLibSymbol, const std::string &aLibName, int aUnit, int aOrient, const VECTOR2I &aPos, const SCH_SHEET_PATH &aSheetPath) const |
| New placement of a library symbol, oriented by an OrCAD orientation code. | |
| void | placeInstance (ORCAD_RAW_PAGE &aPage, const ORCAD_PLACED_INSTANCE &aInst, SCH_SCREEN *aScreen, const SCH_SHEET_PATH &aSheetPath) |
| void | applyCisVariants (SCH_SYMBOL *aSymbol, const ORCAD_PLACED_INSTANCE &aInst, const SCH_SHEET_PATH &aSheetPath, const std::string &aValue) |
| Record each CIS variant's installed state and property overrides as KiCad symbol variants. | |
| 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 |
| VECTOR2I | displayPropPosition (const ORCAD_DISPLAY_PROP &aDisplay, const VECTOR2I &aAnchorIu) const |
| Capture's display-property origin sits on the font baseline; return the KiCad text origin. | |
| void | applyDisplayProp (SCH_FIELD &aField, const ORCAD_DISPLAY_PROP &aDisplay, const VECTOR2I &aAnchorIu, bool aSymbolFlips, bool aApplyVisibility=true) const |
| Style a field from a display property. | |
| 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 () |
| void | prepareOccurrenceNets () |
| – hierarchy [orcad_converter_sheet.cpp] --------------------------------------— | |
| PAGE_SCOPE | occurrenceScope (const ORCAD_OCC_SCOPE &aOcc) const |
| A scope for aOcc carrying the occurrence aliases known so far. | |
| std::map< std::string, std::string > | unconnectedInterfaceNetNames (const ORCAD_DRAWN_INSTANCE &aBlock, const std::string &aFlatNetSuffix) const |
| No-connect block pins whose names are wired elsewhere become per-occurrence nets. | |
| SCH_SHEET * | createBlockSheet (SCH_SHEET *aParentSheet, const ORCAD_RAW_PAGE &aParentPage, const ORCAD_DRAWN_INSTANCE &aBlock, const ORCAD_OCC_BLOCK &aOccurrence, const wxString &aName, const std::string &aFilePageName, int aPageIndex) |
| The child sheet for a hierarchical block, with its pins, appended to aParentSheet's screen. | |
| std::vector< SCH_SHEET * > | createTopLevelSheets (const std::vector< std::pair< wxString, wxString > > &aNamesAndFiles, bool aReuseRoot, bool aOrdinalSheetUuids) |
| Top-level sheets named by aNamesAndFiles. | |
| void | recordPowerAlias (std::map< std::string, POWER_ALIAS_EVIDENCE > &aCandidates, const std::string &aSourceName, const std::string &aElectricalName) const |
| void | acceptPowerAliases (const std::map< std::string, POWER_ALIAS_EVIDENCE > &aCandidates) |
| Rename a power symbol to the net most of its placements resolve to. | |
| bool | canBuildNativeHierarchy (const ORCAD_RAW_PAGE &aPage, const ORCAD_OCC_SCOPE &aScope) const |
| One root page whose every block opens a single-page child. | |
| bool | canBuildFolderHierarchy (const std::vector< ORCAD_RAW_PAGE > &aPages, const ORCAD_OCC_SCOPE &aScope) const |
| Every occurrence block is drawn exactly once on its parent folder's pages. | |
| void | convertFolderHierarchy (const SCH_SHEET_PATH &aRootPath, bool aNative) |
| void | addChildOccurrenceAliases (const ORCAD_RAW_PAGE &aParentPage, const ORCAD_OCC_SCOPE &aParentScope, const ORCAD_DRAWN_INSTANCE &aDrawn, const ORCAD_OCC_SCOPE &aChildScope) |
| void | collectFolderPowerAliases (std::map< std::string, POWER_ALIAS_EVIDENCE > &aCandidates, std::vector< ORCAD_RAW_PAGE > &aPages, const ORCAD_OCC_SCOPE &aScope) |
| void | placeFolder (FOLDER_WALK &aWalk, std::vector< ORCAD_RAW_PAGE > &aPages, const ORCAD_OCC_SCOPE &aScope, SCH_SHEET *aFolderSheet, const SCH_SHEET_PATH &aFolderPath, const std::string &aOccurrenceSuffix, bool aRepeatedFolder, const std::map< std::string, std::string > &aUnconnectedInterfaceNetNames, std::map< std::string, std::string > aInterfaceNetAliases) |
| void | convertFlatPages (const SCH_SHEET_PATH &aRootPath) |
| Every page, each child occurrence expanded, becomes a top-level sheet. | |
| void | forEachDesignPage (const std::function< void(const ORCAD_RAW_PAGE &)> &aVisit, bool aUnreferenced=false) const |
| Visit root pages, then child-folder pages, then unreferenced folder pages if asked. | |
| wxString | uniqueSheetName (const wxString &aBase) |
| aBase, or "aBase (N)" for the first N >= 2 not already used by a sibling sheet. | |
| std::set< const std::string * > | pinOccurrenceTargets (const ORCAD_RAW_PAGE &aPage, const ORCAD_BLOCK_PIN &aPin, const std::map< uint32_t, std::string > &aScopeNets, bool aSkipGenerated, std::set< std::string > *aSourceKeys=nullptr) const |
| Occurrence nets in aScopeNets that a block pin on aPage reaches by name or by wire object id. | |
| SCH_SHEET_PATH | topLevelPath (SCH_SHEET *aSheet, size_t aPageNumber) const |
| The hierarchy path ending at a top-level sheet, numbered aPageNumber. | |
| KIID | deterministicUuid (const std::string &aRole, size_t aOrdinal) const |
| void | assignPinUuids (SCH_SYMBOL *aSymbol, const std::string &aRole) const |
| Name-based UUIDs for a symbol's raw pins, derived from aRole and each pin's number, name and position. | |
| SCH_SCREEN * | newScreen () |
| A new screen with the next deterministic screen UUID, recorded as created by this import. | |
| void | assignRemainingUuids () |
| Give items created after page conversion, such as moved labels and cleanup junctions, UUIDs derived from their type and position. | |
| 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_netIndex for a page in the current scope. | |
| const std::set< uint32_t > & | pinNetIds (const ORCAD_PIN_INST &aPin) const |
| Page nets a placed pin joins through its net id, its wire object id or a wire under it. | |
| 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 |
| Memoized resolvePowerNet() for the indexed page. | |
| std::string | resolvePowerNet (const ORCAD_RAW_PAGE &aPage, const ORCAD_GRAPHIC_INST &aInst) const |
| const ORCAD_SYMBOL_DEF * | graphicDefinition (const ORCAD_GRAPHIC_INST &aInst) const |
| The cached variant a page graphic uses: its Source Library first, then its placed bounds, else the first. | |
| 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) |
| SPIN_STYLE | spinAwayFromWire (const VECTOR2I &aPosDbu) const |
| Point an interface label at aPosDbu away from the wire that ends there. | |
| const ORCAD_DISPLAY_PROP * | finishInterfaceLabel (const ORCAD_GRAPHIC_INST &aGraphic, SCH_LABEL_BASE *aLabel, const std::vector< SEG > &aSourceWires, SCH_SCREEN *aScreen) |
| Style a port or off-page label from its source graphic, draw its stored IREF text and add it. | |
| 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) |
| 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 |
| std::map< std::string, size_t > | m_occurrenceFolderCounts |
| bool | m_simpleRepeatedLeafDesign = false |
| std::map< std::string, std::string > | m_baseOccurrenceNetAliases |
| Occurrence net aliases shared by every scope, then those a parent block adds per child scope. | |
| std::map< const std::map< uint32_t, std::string > *, std::map< std::string, std::string > > | m_occurrenceAliasesByScope |
| 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 |
| std::set< SCH_SCREEN * > | m_importedScreens |
| std::set< const SCH_ITEM * > | m_preExistingItems |
| already on the root screen | |
| PAGE_SCOPE | m_scope |
| 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::vector< std::pair< 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. | |
| PAGE_NET_INDEX | m_netIndex |
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 120 of file orcad_converter.h.
|
private |
(sourcePackage-or-pkgName, pkgName, variant index, unit discriminator) -> (lib name, unit number).
Definition at line 189 of file orcad_converter.h.
| ORCAD_CONVERTER::ORCAD_CONVERTER | ( | ORCAD_DESIGN & | aDesign, |
| SCHEMATIC * | aSchematic, | ||
| REPORTER * | aReporter, | ||
| PROGRESS_REPORTER * | aProgressReporter = nullptr ) |
| aDesign | parsed design; held by reference and MUTATED during conversion (page-content shift, placeholder symbol insertion), so it must outlive the converter. |
| aSchematic | is KiCad schematic to load into. |
| aReporter | is an optional REPORTER object to write status information. |
| aProgressReporter | is an optional progress dialog to show conversion progress. |
Definition at line 421 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 |
Rename a power symbol to the net most of its placements resolve to.
Definition at line 1715 of file orcad_converter_sheet.cpp.
References m_globalNetAliases.
Referenced by convertFolderHierarchy().
|
private |
Definition at line 1829 of file orcad_converter_sheet.cpp.
References m_occurrenceAliasesByScope, ORCAD_OCC_SCOPE::netNames, OrcadLower(), pin, pinOccurrenceTargets(), and ORCAD_DRAWN_INSTANCE::pins.
Referenced by collectFolderPowerAliases(), and placeFolder().
|
private |
Polyline approximation of an arc primitive.
Helper of addSymbolPrimitive().
Definition at line 2494 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 2568 of file orcad_converter_symbols.cpp.
References std::abs(), LIB_SYMBOL::AddDrawItem(), SCH_SHAPE::AddPoint(), CLOCK, ORCAD_SYMBOL_PIN::displayProps, ORCAD_CONVERTER::PIN_EMIT::explicitNet, FILLED_SHAPE, ORCAD_DISPLAY_PROP::fontIdx, FromOrcadString(), BOX2< Vec >::GetBottom(), BOX2< Vec >::GetLeft(), BOX2< Vec >::GetRight(), BOX2< Vec >::GetTop(), ORCAD_CONVERTER::PIN_EMIT::hidden, ORCAD_SYMBOL_PIN::hotptX, ORCAD_SYMBOL_PIN::hotptY, INPUT_TYPE, INVERTED, INVERTED_CLOCK, KiROUND(), LAYER_DEVICE, LINE, m_design, name, ORCAD_SYMBOL_PIN::name, ORCAD_CONVERTER::PIN_EMIT::nameOverride, ORCAD_CONVERTER::PIN_EMIT::nameVisible, normal, ORCAD_CONVERTER::PIN_EMIT::number, ORCAD_CONVERTER::PIN_EMIT::numberVisible, ORCAD_IU_PER_DBU, OrcadDisplayPropVisible(), OrcadPinNameMarkup(), pin, PIN_DOWN, PIN_LEFT, PIN_RIGHT, PIN_UP, POLY, ORCAD_SYMBOL_PIN::portType, ORCAD_CONVERTER::PIN_EMIT::power, PT_PASSIVE, PT_POWER_IN, resolveFontIndex(), EDA_SHAPE::SetFillMode(), SCH_SHAPE::SetStroke(), SCH_ITEM::SetUnit(), ORCAD_SYMBOL_PIN::shapeBits, ORCAD_CONVERTER::PIN_EMIT::showPinNumbers, SOLID, ORCAD_SYMBOL_PIN::startX, ORCAD_SYMBOL_PIN::startY, textSizeIU(), ORCAD_CONVERTER::PIN_EMIT::unit, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by kicadSymbolFor().
|
private |
Definition at line 2273 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 2832 of file orcad_converter_sheet.cpp.
References appendPageItem(), m_labelSourceNets, and m_netLabelIntents.
|
private |
Definition at line 535 of file orcad_converter_sheet.cpp.
References SCH_SCREEN::Append(), m_pageItems, and m_pageItemScreen.
Referenced by appendNetIntent(), applyTitleBlock(), finishInterfaceLabel(), placeBitmap(), placeBusEntries(), placeFolder(), placeGraphicDisplayText(), placeGraphics(), placeHierarchicalBlockPinFill(), placeInstance(), placeJunctions(), placeOffpageConnectors(), placePageFrame(), placePowerSymbol(), and placeSymbolFields().
|
private |
Record each CIS variant's installed state and property overrides as KiCad symbol variants.
aValue is the part value before a not-installed part shows "NI".
Definition at line 3182 of file orcad_converter_symbols.cpp.
References SCH_SYMBOL::AddField(), SCH_SYMBOL::AddVariant(), ORCAD_PLACED_INSTANCE::dbId, SCH_SYMBOL::FindFieldCaseInsensitive(), FromOrcadString(), SCH_SYMBOL::GetDNP(), SCH_SYMBOL::GetField(), SCH_FIELD::GetName(), SCH_SYMBOL::GetPosition(), SCH_FIELD::GetText(), SCH_SYMBOL_VARIANT::HasDifferentials(), SCH_SYMBOL_VARIANT::InitializeAttributes(), ORCAD_CIS_VARIANT::installed, m_design, VARIANT::m_DNP, VARIANT::m_Fields, m_scope, ORCAD_CIS_VARIANT::name, ORCAD_OCC_SCOPE::partOccurrenceIds, ORCAD_CIS_VARIANT::props, SCH_FIELD::SetPosition(), EDA_TEXT::SetTextSize(), EDA_TEXT::SetVisible(), text, USER, and VALUE.
Referenced by placeInstance().
|
private |
Style a field from a display property.
aSymbolFlips compensates the parent symbol transform.
Definition at line 3819 of file orcad_converter_symbols.cpp.
References ANGLE_HORIZONTAL, ANGLE_VERTICAL, applyFont(), ORCAD_DISPLAY_PROP::color, displayFontId(), displayPropPosition(), displayUsesTemplateFont(), GR_TEXT_H_ALIGN_LEFT, GR_TEXT_V_ALIGN_TOP, OrcadColor(), OrcadDisplayPropShowsName(), OrcadDisplayPropVisible(), ORCAD_DISPLAY_PROP::rotation, SCH_FIELD::SetEffectiveHorizJustify(), SCH_FIELD::SetEffectiveVertJustify(), SCH_FIELD::SetNameShown(), SCH_FIELD::SetPosition(), EDA_TEXT::SetTextAngle(), EDA_TEXT::SetTextColor(), EDA_TEXT::SetTextSize(), EDA_TEXT::SetVisible(), and textSize().
Referenced by placeHierarchicalBlockFields(), placePowerSymbol(), and placeSymbolFields().
|
private |
Definition at line 3975 of file orcad_converter_symbols.cpp.
References EMBEDDED_FILES::AddFile(), ORCAD_FONT::bold, ORCAD_FONT::face, FromOrcadString(), KIFONT::FONT::GetFont(), ORCAD_FONT::italic, m_design, m_schematic, OleLibWmfFontDirectory(), resolveFontIndex(), EMBEDDED_FILES::SetAreFontsEmbedded(), EDA_TEXT::SetBold(), EDA_TEXT::SetFont(), EDA_TEXT::SetItalic(), and EMBEDDED_FILES::UpdateFontFiles().
Referenced by addSymbolPrimitive(), applyDisplayProp(), applyTitleBlock(), finishInterfaceLabel(), placeGraphicDisplayText(), placeGraphics(), placeOffpageConnectors(), and placeSymbolFields().
|
private |
Definition at line 4011 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 3977 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_PAGE_SETTINGS::height, ORCAD_PAGE_SETTINGS::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(), ORCAD_RAW_PAGE::settings, PAGE_INFO::SetType(), User, and ORCAD_PAGE_SETTINGS::width.
Referenced by convertUnreferencedPages(), and placeFolder().
|
private |
Definition at line 4297 of file orcad_converter_sheet.cpp.
References ANGLE_HORIZONTAL, ANGLE_VERTICAL, appendPageItem(), applyFont(), applyMultilineSpacing(), ORCAD_GRAPHIC_INST::bbox, ORCAD_PAGE_SETTINGS::createTimestamp, displayFontId(), displayPropPosition(), ORCAD_GRAPHIC_INST::displayProps, displayUsesTemplateFont(), FromOrcadString(), GR_TEXT_H_ALIGN_LEFT, GR_TEXT_V_ALIGN_TOP, graphicDefinition(), LAYER_NOTES, m_design, ORCAD_GRAPHIC_INST::mirror, ORCAD_PAGE_SETTINGS::modifyTimestamp, ORCAD_DISPLAY_PROP::name, ORCAD_GRAPHIC_INST::name, 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(), ORCAD_RAW_PAGE::settings, TITLE_BLOCK::SetTitle(), SCH_SCREEN::SetTitleBlock(), ORCAD_RAW_PAGE::sourcePageCount, ORCAD_RAW_PAGE::sourcePageNumber, text, textSize(), ORCAD_RAW_PAGE::titleBlocks, ORCAD_DISPLAY_PROP::x, ORCAD_BBOX::x1, ORCAD_DISPLAY_PROP::y, and ORCAD_BBOX::y1.
Referenced by convertPage().
|
private |
Definition at line 544 of file orcad_converter_sheet.cpp.
References assignPinUuids(), deterministicUuid(), m_pageItems, SCH_SHEET_T, and SCH_SYMBOL_T.
|
private |
Name-based UUIDs for a symbol's raw pins, derived from aRole and each pin's number, name and position.
Definition at line 443 of file orcad_converter_sheet.cpp.
References deterministicUuid(), SCH_SYMBOL::GetRawPins(), pin, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by assignPageItemUuids(), and assignRemainingUuids().
|
private |
Give items created after page conversion, such as moved labels and cleanup junctions, UUIDs derived from their type and position.
Only screens this import created are touched.
Definition at line 474 of file orcad_converter_sheet.cpp.
References assignPinUuids(), SCH_SHEET_LIST::ContainsSheet(), KIID::FromName(), SCH_SYMBOL::GetRawPins(), SCH_SCREEN::Items(), m_design, m_importedScreens, m_preExistingItems, m_rootSheet, m_schematic, path, SCH_SYMBOL_T, SCH_SHEET_LIST::SortByPageNumbers(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by finishConversion().
|
private |
Rebuild m_netIndex for a page in the current scope.
Definition at line 4594 of file orcad_converter_sheet.cpp.
References computeJunctions(), ORCAD_WIRE::dbId, ORCAD_WIRE::id, ORCAD_RAW_PAGE::instances, m_netIndex, m_scope, OrcadLower(), pageNetNames(), pin, pinNetIds(), ORCAD_PLACED_INSTANCE::pins, rawPointOnSegment(), ORCAD_RAW_PAGE::wires, ORCAD_WIRE::x1, ORCAD_WIRE::x2, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
Referenced by collectFolderPowerAliases(), and convertPage().
|
private |
One unit per package device; a Convert view becomes the unit's DeMorgan body.
Definition at line 857 of file orcad_converter_symbols.cpp.
References convert, ORCAD_CONVERTER::UNIT_INFO::convert, ORCAD_PACKAGE::devices, ORCAD_CONVERTER::LIB_ENTRY::footprint, ORCAD_CONVERTER::UNIT_INFO::letter, m_design, name, ORCAD_CONVERTER::LIB_ENTRY::name, ORCAD_PACKAGE::name, normal, ORCAD_ST_LIBRARY_PART, ORCAD_PACKAGE::pcbFootprint, ORCAD_CONVERTER::UNIT_INFO::pinIgnore, ORCAD_DEVICE::pinIgnore, ORCAD_CONVERTER::UNIT_INFO::pinNumbers, ORCAD_DEVICE::pinNumbers, ORCAD_CONVERTER::UNIT_INFO::pinNumberVisible, ORCAD_PACKAGE::refDes, ORCAD_CONVERTER::LIB_ENTRY::refPrefix, ORCAD_CONVERTER::UNIT_INFO::symbol, SymbolId(), ORCAD_DEVICE::unitRef, and ORCAD_CONVERTER::LIB_ENTRY::units.
Referenced by BuildSymbolLibrary().
| std::vector< LIB_SYMBOL * > ORCAD_CONVERTER::BuildSymbolLibrary | ( | ) |
The caller owns the returned library symbols.
Definition at line 917 of file orcad_converter_symbols.cpp.
References _, buildPackageEntry(), computeFontBaseline(), convert, ORCAD_CONVERTER::UNIT_INFO::convert, ORCAD_PACKAGE::devices, ORCAD_CONVERTER::LIB_ENTRY::footprint, FromOrcadString(), ORCAD_CONVERTER::LIB_ENTRY::isPower, kicadSymbolFor(), ORCAD_CONVERTER::UNIT_INFO::letter, m_design, m_libSymbols, name, ORCAD_CONVERTER::LIB_ENTRY::name, normal, ORCAD_ST_GLOBAL_SYMBOL, ORCAD_ST_LIBRARY_PART, ORCAD_PACKAGE::pcbFootprint, ORCAD_CONVERTER::UNIT_INFO::pinIgnore, ORCAD_CONVERTER::UNIT_INFO::pinNumbers, ORCAD_CONVERTER::UNIT_INFO::pinNumberVisible, ORCAD_CONVERTER::LIB_ENTRY::powerNet, ORCAD_PACKAGE::refDes, ORCAD_CONVERTER::LIB_ENTRY::refPrefix, ORCAD_CONVERTER::UNIT_INFO::symbol, SymbolId(), ORCAD_CONVERTER::LIB_ENTRY::units, and warn().
Referenced by SCH_IO_ORCAD::loadOlbSymbols().
|
private |
Every occurrence block is drawn exactly once on its parent folder's pages.
Definition at line 1789 of file orcad_converter_sheet.cpp.
References ORCAD_OCC_SCOPE::blocks, canBuildFolderHierarchy(), ORCAD_OCC_BLOCK::childFolder, m_design, OrcadLower(), ORCAD_OCC_BLOCK::scope, and ORCAD_OCC_BLOCK::targetDbId.
Referenced by canBuildFolderHierarchy(), and Convert().
|
private |
One root page whose every block opens a single-page child.
Definition at line 1765 of file orcad_converter_sheet.cpp.
References ORCAD_OCC_SCOPE::blocks, ORCAD_RAW_PAGE::blocks, canBuildNativeHierarchy(), ORCAD_OCC_BLOCK::childFolder, findDrawnBlock(), m_design, OrcadLower(), ORCAD_OCC_BLOCK::scope, and ORCAD_OCC_BLOCK::targetDbId.
Referenced by canBuildNativeHierarchy(), and Convert().
|
private |
Case-folded canonicalGlobalNetName() for use as a map key.
Definition at line 638 of file orcad_converter_sheet.cpp.
References canonicalGlobalNetName(), and OrcadLower().
Referenced by convertFlatPages(), pinOccurrenceTargets(), placeFolder(), and prepareOccurrenceNets().
|
private |
Return the design-wide spelling selected by prepareGlobalNetNames().
Definition at line 623 of file orcad_converter_sheet.cpp.
References m_globalNetAliases, m_globalNetNames, name, and OrcadLower().
Referenced by canonicalGlobalNetKey(), convertFlatPages(), createBlockSheet(), effectiveInterfaceNetName(), offpageNets(), placeFolder(), placeOffpageConnectors(), placePorts(), placePowerSymbol(), placeWires(), resolvePowerNet(), and unconnectedInterfaceNetNames().
|
private |
Definition at line 1851 of file orcad_converter_sheet.cpp.
References addChildOccurrenceAliases(), ORCAD_OCC_SCOPE::blocks, buildNetLookup(), ORCAD_OCC_BLOCK::childFolder, collectFolderPowerAliases(), enterScope(), findDrawnBlock(), ORCAD_GRAPHIC_INST::logicalName, m_design, occurrenceScope(), OrcadLower(), powerNet(), recordPowerAlias(), ORCAD_OCC_BLOCK::scope, and ORCAD_OCC_BLOCK::targetDbId.
Referenced by collectFolderPowerAliases(), and convertFolderHierarchy().
|
private |
Definition at line 3746 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 5342 of file orcad_converter_sheet.cpp.
References ORCAD_RAW_PAGE::blocks, candidates(), 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 buildNetLookup().
aRootSheet must have a screen and be registered on the schematic.
Cancellation throws IO_ERROR.
Definition at line 1730 of file orcad_converter_sheet.cpp.
References canBuildFolderHierarchy(), canBuildNativeHierarchy(), convertFlatPages(), convertFolderHierarchy(), finishConversion(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), m_design, m_importedScreens, m_preExistingItems, m_rootSheet, m_scope, prepareGlobalNetNames(), prepareOccurrenceNets(), prepareSymbols(), SCH_SHEET_PATH::push_back(), and SCH_SHEET_PATH::SetPageNumber().
Referenced by SCH_IO_ORCAD::LoadSchematicFile().
|
private |
Every page, each child occurrence expanded, becomes a top-level sheet.
Definition at line 2178 of file orcad_converter_sheet.cpp.
References ORCAD_WIRE::aliases, appendOccurrenceSuffix(), ORCAD_OCC_SCOPE::blocks, canonicalGlobalNetKey(), canonicalGlobalNetName(), ORCAD_OCC_BLOCK::childFolder, ORCAD_WIRE::dbId, distance(), findDrawnBlock(), ORCAD_CONVERTER::PAGE_SCOPE::flatNetSuffix, forEachDesignPage(), ORCAD_CONVERTER::PAGE_SCOPE::generatedFlatNets, ORCAD_WIRE::id, isOffpageNetName(), isPowerNetName(), m_design, m_occurrenceFolderCounts, m_simpleRepeatedLeafDesign, name, ORCAD_ALIAS::name, ORCAD_CONVERTER::PAGE_SCOPE::namedFlatNets, ORCAD_OCC_SCOPE::netNames, ORCAD_CONVERTER::PAGE_SCOPE::occ, occurrenceScope(), OrcadLower(), pin, ORCAD_PLACED_INSTANCE::pins, rawPointOnSegment(), ORCAD_PLACED_INSTANCE::reference, result, ORCAD_OCC_BLOCK::scope, ORCAD_OCC_BLOCK::targetDbId, ORCAD_CONVERTER::PAGE_SCOPE::unconnectedInterfaceNetNames, and unconnectedInterfaceNetNames().
Referenced by Convert().
|
private |
Definition at line 1878 of file orcad_converter_sheet.cpp.
References acceptPowerAliases(), ORCAD_OCC_BLOCK::childFolder, collectFolderPowerAliases(), ORCAD_CONVERTER::FOLDER_WALK::folderSheetNames, ORCAD_CONVERTER::FOLDER_WALK::interfaceAliases, m_design, m_rootSheet, m_scope, ORCAD_CONVERTER::FOLDER_WALK::nestedFlatSuffix, ORCAD_CONVERTER::FOLDER_WALK::numberSourcePages, ORCAD_CONVERTER::FOLDER_WALK::occurrenceAliases, OrcadLower(), placeFolder(), ORCAD_CONVERTER::FOLDER_WALK::rootSharedFolderPage, ORCAD_OCC_BLOCK::scope, and ORCAD_CONVERTER::FOLDER_WALK::sourcePageCount.
Referenced by Convert().
|
private |
Definition at line 3750 of file orcad_converter_sheet.cpp.
References ORCAD_WIRE::aliases, applyTitleBlock(), buildNetLookup(), ORCAD_OCC_BLOCK::childFolder, FromOrcadString(), ORCAD_WIRE::id, SCH_SHEET::IsTopLevelSheet(), SCH_SHEET_PATH::Last(), m_design, m_pageItems, m_pageItemScreen, m_scope, m_sourceNetNames, m_sourceOccurrences, m_sourcePages, name, ORCAD_ALIAS::name, ORCAD_RAW_PAGE::netAliases, ORCAD_RAW_PAGE::netmap, placeBusEntries(), placeJunctions(), placePageFrame(), ORCAD_OCC_BLOCK::scope, ORCAD_OCC_BLOCK::targetDbId, and ORCAD_RAW_PAGE::wires.
Referenced by convertUnreferencedPages(), and placeFolder().
|
private |
Definition at line 2736 of file orcad_converter_sheet.cpp.
References applyPageSettings(), convertPage(), createTopLevelSheets(), FromOrcadString(), SCH_SCREEN::Items(), m_design, m_progressReporter, m_schematic, m_scope, m_usedSheetNames, MakePageFileName(), name, EE_RTREE::OfType(), path, SCH_SYMBOL_T, topLevelPath(), and uniqueSheetName().
Referenced by finishConversion().
|
private |
The child sheet for a hierarchical block, with its pins, appended to aParentSheet's screen.
Definition at line 1598 of file orcad_converter_sheet.cpp.
References SCH_SHEET::AddPin(), SCH_SCREEN::Append(), KIID::AsStdString(), busNetAt(), canonicalGlobalNetName(), ORCAD_OCC_BLOCK::childFolder, connectedBusName(), deterministicUuid(), FromOrcadString(), SCH_SHEET::GetField(), SCH_SHEET::GetScreen(), SCH_SCREEN::GetUuid(), ORCAD_DRAWN_INSTANCE::h, hierarchicalPinShape(), m_hierBusNamesByScreen, m_schematic, EDA_ITEM::m_Uuid, MakePageFileName(), ORCAD_BLOCK_PIN::name, nearestSheetSide(), newScreen(), OrcadDbuToIu(), pin, ORCAD_DRAWN_INSTANCE::pins, placeHierarchicalBlockFields(), placeHierarchicalBlockPinFill(), ORCAD_BLOCK_PIN::portType, ORCAD_DRAWN_INSTANCE::props, scopedHierBusName(), scopedHierBusRange(), SCH_SHEET::SetExcludedFromBoard(), SCH_SCREEN::SetFileName(), SCH_SHEET::SetScreen(), SCH_FIELD::SetText(), SHEET_FILENAME, SHEET_NAME, ORCAD_OCC_BLOCK::targetDbId, ORCAD_DRAWN_INSTANCE::w, ORCAD_BLOCK_PIN::x, ORCAD_DRAWN_INSTANCE::x1, ORCAD_BLOCK_PIN::y, and ORCAD_DRAWN_INSTANCE::y1.
Referenced by placeFolder().
|
private |
Top-level sheets named by aNamesAndFiles.
With aReuseRoot the first is the root sheet and the list replaces the top level; otherwise the sheets are appended. Returns only the listed sheets.
Definition at line 1659 of file orcad_converter_sheet.cpp.
References deterministicUuid(), SCH_SHEET::GetField(), SCH_SHEET::GetScreen(), m_rootSheet, m_schematic, EDA_ITEM::m_Uuid, name, newScreen(), SCH_SCREEN::SetFileName(), SCH_SHEET::SetScreen(), SCH_FIELD::SetText(), SHEET_FILENAME, SHEET_NAME, and SCH_SHEET::SyncUuidToScreen().
Referenced by convertUnreferencedPages(), and placeFolder().
|
private |
Definition at line 437 of file orcad_converter_sheet.cpp.
References KIID::FromName(), and m_design.
Referenced by assignPageItemUuids(), assignPinUuids(), createBlockSheet(), createTopLevelSheets(), minimizeNetLabels(), newScreen(), and placeFolder().
|
private |
Definition at line 3797 of file orcad_converter_symbols.cpp.
References ORCAD_DISPLAY_PROP::fontIdx, m_design, OrcadDisplayFontId(), and resolveFontIndex().
Referenced by applyDisplayProp(), applyTitleBlock(), computeFontBaseline(), displayPropPosition(), placeGraphicDisplayText(), and placeSymbolFields().
|
private |
Capture's display-property origin sits on the font baseline; return the KiCad text origin.
Definition at line 3809 of file orcad_converter_symbols.cpp.
References displayFontId(), displayUsesTemplateFont(), ORCAD_DISPLAY_PROP::rotation, textBaselineOffset(), and textSizeIU().
Referenced by applyDisplayProp(), and applyTitleBlock().
|
private |
Definition at line 3803 of file orcad_converter_symbols.cpp.
References ORCAD_DISPLAY_PROP::fontIdx, and m_design.
Referenced by applyDisplayProp(), applyTitleBlock(), computeFontBaseline(), displayPropPosition(), and placeSymbolFields().
|
private |
Definition at line 644 of file orcad_converter_sheet.cpp.
References canonicalGlobalNetName(), m_scope, name, and OrcadLower().
Referenced by offpageNets(), placePorts(), placeWires(), and resolvePowerNet().
|
private |
Empty package and placement values must not clear a library property.
Definition at line 1513 of file orcad_converter_symbols.cpp.
References ORCAD_PLACED_INSTANCE::dbId, m_scope, name, overlay, packageFor(), ORCAD_PLACED_INSTANCE::props, and ORCAD_SYMBOL_DEF::props.
Referenced by placeInstance(), and placeSymbolFields().
|
private |
Definition at line 654 of file orcad_converter_sheet.cpp.
References m_netIndex, m_scope, name, occurrenceBaseNetName(), and OrcadLower().
Referenced by collectFolderPowerAliases(), and placeFolder().
|
private |
Definition at line 2741 of file orcad_converter_symbols.cpp.
References _, LIB_SYMBOL::AddDrawItem(), SCH_SCREEN::Append(), copy, LIB_SYMBOL::GetDrawItems(), SCH_SYMBOL::GetLibSymbolRef(), EDA_ITEM::GetParent(), SCH_ITEM::GetUnit(), index, kicadSymbolFor(), libIdFor(), m_libSymbols, m_nativePowerFamilies, m_placedPackageUnits, m_preparedLibUnits, m_preparedPkgToLib, ORCAD_CONVERTER::PLACED_PACKAGE_UNIT::reference, 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(), source, ORCAD_CONVERTER::PLACED_PACKAGE_UNIT::sourceUnit, uniqueLibName(), ORCAD_CONVERTER::LIB_ENTRY::units, and warn().
Referenced by finishConversion().
|
private |
Definition at line 3667 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, source, 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 3655 of file orcad_converter_sheet.cpp.
References assignRemainingUuids(), convertUnreferencedPages(), finalizeNativePowerPackages(), and finalizeNetNames().
Referenced by Convert().
|
private |
Style a port or off-page label from its source graphic, draw its stored IREF text and add it.
Returns the Name display property, or nullptr.
Definition at line 7396 of file orcad_converter_sheet.cpp.
References appendPageItem(), applyFont(), ORCAD_GRAPHIC_INST::color, ORCAD_GRAPHIC_INST::displayProps, INTERSHEET_REFS, OrcadColor(), OrcadDisplayFontId(), OrcadDisplayPropVisible(), placeGraphicDisplayText(), ORCAD_GRAPHIC_INST::props, rememberInterfaceLabelSource(), EDA_TEXT::SetTextColor(), EDA_TEXT::SetTextSize(), and textSize().
Referenced by placeOffpageConnectors(), and placePorts().
|
private |
|lfHeight| of a Design Template font ID; ID 0 selects the template default.
Definition at line 3897 of file orcad_converter_symbols.cpp.
References std::abs(), m_design, and resolveFontIndex().
Referenced by applyMultilineSpacing(), computeFontBaseline(), and textSizeIU().
|
private |
Visit root pages, then child-folder pages, then unreferenced folder pages if asked.
Definition at line 1366 of file orcad_converter_sheet.cpp.
References m_design.
Referenced by convertFlatPages(), prepareGlobalNetNames(), prepareOccurrenceNets(), and prepareSymbols().
|
private |
The cached variant a page graphic uses: its Source Library first, then its placed bounds, else the first.
Definition at line 4219 of file orcad_converter_sheet.cpp.
References std::abs(), ORCAD_GRAPHIC_INST::bbox, m_design, ORCAD_GRAPHIC_INST::name, normalizedPath(), ORCAD_GRAPHIC_INST::props, ORCAD_GRAPHIC_INST::rotation, source, ORCAD_SYMBOL_DEF::sourceLib, ORCAD_SYMBOL_DEF::variants, ORCAD_BBOX::x1, ORCAD_BBOX::x2, ORCAD_BBOX::y1, and ORCAD_BBOX::y2.
Referenced by applyTitleBlock(), and graphicPinPos().
|
private |
Use the transformed cache pin position, or the instance anchor if no pin is available.
Definition at line 5052 of file orcad_converter_sheet.cpp.
References std::abs(), ORCAD_GRAPHIC_INST::bbox, ORCAD_SYMBOL_DEF::bbox, graphicDefinition(), ORCAD_GRAPHIC_INST::mirror, 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 1555 of file orcad_converter_symbols.cpp.
References index, pickVariant(), pin, ORCAD_PLACED_INSTANCE::pins, ORCAD_SYMBOL_DEF::pins, and POWER_IN.
|
private |
New placement of a library symbol, oriented by an OrCAD orientation code.
Definition at line 2558 of file orcad_converter_symbols.cpp.
References libIdFor(), SCH_SYMBOL::SetOrientation(), and toKicadOrientation().
Referenced by placeInstance(), and placePowerSymbol().
|
private |
Definition at line 702 of file orcad_converter_sheet.cpp.
References m_offpageNetNames, and OrcadLower().
Referenced by convertFlatPages(), and placeWires().
|
private |
Definition at line 709 of file orcad_converter_sheet.cpp.
References m_powerNetNames, and OrcadLower().
Referenced by convertFlatPages(), placeWires(), recordPowerAlias(), and resolvePowerNet().
|
private |
Definition at line 2038 of file orcad_converter_symbols.cpp.
References addSymbolPin(), addSymbolPrimitive(), ALL_BODY_STYLES, ORCAD_SYMBOL_DEF::bbox, ORCAD_SYMBOL_DEF::color, ORCAD_CONVERTER::UNIT_INFO::convert, ORCAD_SYMBOL_PIN::displayProps, ORCAD_CONVERTER::PIN_EMIT::explicitNet, ORCAD_CONVERTER::UNIT_INFO::explicitPinNets, LIB_ID::FixIllegalChars(), FromOrcadString(), ORCAD_SYMBOL_DEF::generalFlags, ORCAD_CONVERTER::PIN_EMIT::hidden, ORCAD_SYMBOL_PIN::hotptX, ORCAD_CONVERTER::LIB_ENTRY::isPower, ORCAD_CONVERTER::LIB_ENTRY::kicadSymbol, libIdFor(), m_libSymbols, name, ORCAD_CONVERTER::LIB_ENTRY::name, ORCAD_DISPLAY_PROP::name, ORCAD_CONVERTER::PIN_EMIT::nameOverride, ORCAD_CONVERTER::PIN_EMIT::nameVisible, ORCAD_CONVERTER::PIN_EMIT::number, ORCAD_CONVERTER::PIN_EMIT::numberVisible, ORCAD_IU_PER_DBU, OrcadDisplayPropVisible(), OrcadIEquals(), 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::PIN_EMIT::power, ORCAD_CONVERTER::LIB_ENTRY::powerNet, ORCAD_SYMBOL_DEF::primitives, ORCAD_CONVERTER::LIB_ENTRY::refPrefix, SCH_FIELD_T, SCH_FIELD::SetText(), EDA_TEXT::SetTextPos(), EDA_TEXT::SetVisible(), ORCAD_CONVERTER::PIN_EMIT::showPinNumbers, ORCAD_SYMBOL_PIN::startX, ORCAD_CONVERTER::UNIT_INFO::symbol, ORCAD_PRIMITIVE::text, ORCAD_CONVERTER::PIN_EMIT::unit, 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 1576 of file orcad_converter_symbols.cpp.
References _, ORCAD_PLACED_INSTANCE::dbId, ORCAD_PACKAGE::devices, FromOrcadString(), m_design, m_scope, 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 3939 of file orcad_converter_sheet.cpp.
References ReplaceIllegalFileNameChars(), and SanitizeFileName().
Referenced by convertUnreferencedPages(), createBlockSheet(), and placeFolder().
|
private |
Definition at line 2843 of file orcad_converter_sheet.cpp.
References _, anchor, SCH_SHEET_PATH::Cmp(), 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 5084 of file orcad_converter_sheet.cpp.
References ORCAD_RAW_PAGE::globals, graphicPinPos(), ORCAD_WIRE::id, ORCAD_GRAPHIC_INST::logicalName, ORCAD_RAW_PAGE::netmap, ORCAD_RAW_PAGE::offpage, OrcadLower(), ORCAD_RAW_PAGE::ports, ORCAD_RAW_PAGE::wires, VECTOR2< T >::x, ORCAD_WIRE::x1, ORCAD_WIRE::x2, VECTOR2< T >::y, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
Referenced by offpageNets(), placePorts(), placeWires(), and powerPinPos().
|
private |
Prefer endpoint nets, then intersecting wires, then endpoint aliases.
Definition at line 4692 of file orcad_converter_sheet.cpp.
References empty(), m_netIndex, name, ORCAD_ALIAS::name, ORCAD_RAW_PAGE::netAliases, ORCAD_RAW_PAGE::netmap, onSegment(), and ORCAD_RAW_PAGE::wires.
Referenced by resolvePowerNet().
|
private |
A new screen with the next deterministic screen UUID, recorded as created by this import.
Definition at line 465 of file orcad_converter_sheet.cpp.
References deterministicUuid(), SCH_SCREEN::GetUuid(), m_importedScreens, m_schematic, and m_screenOrdinal.
Referenced by createBlockSheet(), createTopLevelSheets(), and placeFolder().
|
private |
Fact about the source design (not a conversion problem): RPT_SEVERITY_INFO.
Definition at line 571 of file orcad_converter_sheet.cpp.
References m_reporter, and RPT_SEVERITY_INFO.
Referenced by placeInstance(), placeOffpageConnectors(), and prepareSymbols().
|
private |
Definition at line 668 of file orcad_converter_sheet.cpp.
References m_scope, name, and OrcadLower().
Referenced by enterScope(), and occurrenceElectricalNetName().
|
private |
Definition at line 682 of file orcad_converter_sheet.cpp.
References m_scope, occurrenceBaseNetName(), and OrcadLower().
Referenced by placeWires(), and resolvePowerNet().
|
private |
Return the occurrence net id owning aName, which the table identifies by address.
Definition at line 3262 of file orcad_converter_sheet.cpp.
References m_scope.
Referenced by resolvePowerNet().
|
private |
A scope for aOcc carrying the occurrence aliases known so far.
Definition at line 1560 of file orcad_converter_sheet.cpp.
References m_baseOccurrenceNetAliases, m_occurrenceAliasesByScope, ORCAD_OCC_SCOPE::netNames, ORCAD_CONVERTER::PAGE_SCOPE::occ, and ORCAD_CONVERTER::PAGE_SCOPE::occurrenceNetAliases.
Referenced by collectFolderPowerAliases(), convertFlatPages(), and placeFolder().
|
private |
Resolve every off-page connector on the page to (index, net, pin position).
Definition at line 5255 of file orcad_converter_sheet.cpp.
References canonicalGlobalNetName(), effectiveInterfaceNetName(), ORCAD_WIRE::id, ORCAD_CONVERTER::OFFPAGE_NET::index, ORCAD_RAW_PAGE::instances, ORCAD_WIRE::isBus, ORCAD_GRAPHIC_INST::logicalName, m_netIndex, m_scope, namedGraphicPinPos(), ORCAD_CONVERTER::OFFPAGE_NET::net, ORCAD_RAW_PAGE::offpage, pageNetIdsNamed(), pin, rawPointOnSegment(), ORCAD_RAW_PAGE::wires, ORCAD_CONVERTER::OFFPAGE_NET::x, and ORCAD_CONVERTER::OFFPAGE_NET::y.
Referenced by placeOffpageConnectors().
|
staticprivate |
aDx and aDy must be multiples of the 10-DBU grid.
Definition at line 4142 of file orcad_converter_sheet.cpp.
References ORCAD_WIRE::aliases, 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_RAW_PAGE::instances, ORCAD_RAW_PAGE::offpage, OrcadOffsetPrimitive(), pin, ORCAD_DRAWN_INSTANCE::pins, ORCAD_PLACED_INSTANCE::pins, ORCAD_RAW_PAGE::ports, ORCAD_RAW_PAGE::wires, ORCAD_ALIAS::x, ORCAD_PLACED_INSTANCE::x, ORCAD_BBOX::x1, ORCAD_BUS_ENTRY::x1, ORCAD_DRAWN_INSTANCE::x1, ORCAD_WIRE::x1, ORCAD_BBOX::x2, ORCAD_BUS_ENTRY::x2, ORCAD_WIRE::x2, ORCAD_ALIAS::y, ORCAD_PLACED_INSTANCE::y, ORCAD_BBOX::y1, ORCAD_BUS_ENTRY::y1, ORCAD_DRAWN_INSTANCE::y1, ORCAD_WIRE::y1, ORCAD_BBOX::y2, ORCAD_BUS_ENTRY::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 7916 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(), recordNetNameMap(), and resolvePowerNet().
|
private |
The cache package backing a placement, or nullptr when the design has none.
Definition at line 1350 of file orcad_converter_symbols.cpp.
References candidates(), ORCAD_PACKAGE::devices, m_design, ORCAD_PACKAGE::pcbFootprint, pickVariant(), ORCAD_DEVICE::pinIgnore, ORCAD_DEVICE::pinNumbers, ORCAD_PLACED_INSTANCE::pins, ORCAD_PLACED_INSTANCE::pkgName, ORCAD_PACKAGE::props, 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 4048 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 1306 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 |
Page nets a placed pin joins through its net id, its wire object id or a wire under it.
Definition at line 4682 of file orcad_converter_sheet.cpp.
References m_netIndex.
Referenced by buildNetLookup().
|
private |
Occurrence nets in aScopeNets that a block pin on aPage reaches by name or by wire object id.
aSourceKeys receives the pin's own name keys and those of the wires under it.
Definition at line 1055 of file orcad_converter_sheet.cpp.
References canonicalGlobalNetKey(), ORCAD_WIRE::dbId, ORCAD_WIRE::id, ORCAD_WIRE::isBus, name, ORCAD_BLOCK_PIN::name, pageNetNames(), rawPointOnSegment(), ORCAD_RAW_PAGE::wires, ORCAD_BLOCK_PIN::x, and ORCAD_BLOCK_PIN::y.
Referenced by addChildOccurrenceAliases(), and placeFolder().
|
private |
Skip undecodable images with a warning.
Definition at line 7781 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 placeGraphics().
|
private |
SCH_BUS_WIRE_ENTRY per bus entry (position x1,y1; size x2-x1, y2-y1).
Definition at line 6963 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 4565 of file orcad_converter_sheet.cpp.
References ORCAD_SYMBOL_DEF::bbox, OrcadForEachLeafPrimitive(), 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 4477 of file orcad_converter_sheet.cpp.
References ORCAD_SYMBOL_DEF::bbox, ORCAD_GRAPHIC_INST::color, ORCAD_SYMBOL_DEF::color, LINE, ORCAD_GRAPHIC_INST::nested, OrcadForEachLeafPrimitive(), OrcadTransformPoint(), OrcadTransformPrimitivePoints(), ORCAD_SYMBOL_DEF::primitives, ORCAD_GRAPHIC_INST::rotation, source, TEXT, 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_BBOX::x2, ORCAD_POINT::y, VECTOR2< T >::y, ORCAD_BBOX::y1, and ORCAD_BBOX::y2.
Referenced by applyTitleBlock().
|
private |
Definition at line 5244 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 resolvePowerNet().
|
private |
Definition at line 5202 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 |
Definition at line 1922 of file orcad_converter_sheet.cpp.
References A4, addChildOccurrenceAliases(), SCH_SHEET::AddPin(), SCH_SCREEN::Append(), appendOccurrenceSuffix(), appendPageItem(), applyPageSettings(), KIID::AsStdString(), canonicalGlobalNetKey(), canonicalGlobalNetName(), ORCAD_OCC_BLOCK::childFolder, convertPage(), createBlockSheet(), createTopLevelSheets(), deterministicUuid(), enterScope(), findDrawnBlock(), ORCAD_CONVERTER::PAGE_SCOPE::flatNetSuffix, ORCAD_CONVERTER::FOLDER_WALK::folderSheetNames, FromOrcadString(), ORCAD_CONVERTER::PAGE_SCOPE::generatedFlatNets, SCH_SHEET::GetField(), SCH_SHEET::GetPins(), SCH_SHEET::GetScreen(), SCH_SCREEN::GetUuid(), ORCAD_CONVERTER::FOLDER_WALK::interfaceAliases, ORCAD_CONVERTER::PAGE_SCOPE::interfaceNetAliases, L_BIDI, LEFT, m_design, m_hierBusNamesByScreen, m_occurrenceFolderCounts, m_progressReporter, m_rootSheet, m_schematic, m_simpleRepeatedLeafDesign, EDA_ITEM::m_Uuid, MakePageFileName(), name, ORCAD_RAW_PAGE::name, ORCAD_CONVERTER::PAGE_SCOPE::namedFlatNets, ORCAD_CONVERTER::FOLDER_WALK::nestedFlatSuffix, ORCAD_OCC_SCOPE::netNames, newScreen(), ORCAD_CONVERTER::FOLDER_WALK::numberSourcePages, ORCAD_CONVERTER::FOLDER_WALK::occurrenceAliases, occurrenceScope(), ORCAD_RAW_PAGE::offpage, OrcadLower(), ORCAD_CONVERTER::FOLDER_WALK::pageIndex, path, pin, pinOccurrenceTargets(), ORCAD_DRAWN_INSTANCE::pins, placeFolder(), ORCAD_RAW_PAGE::ports, SCH_SHEET_PATH::push_back(), ORCAD_DRAWN_INSTANCE::reference, ORCAD_CONVERTER::FOLDER_WALK::rootSharedFolderPage, schIUScale, ORCAD_OCC_BLOCK::scope, SCH_SCREEN::SetFileName(), SCH_SHEET_PATH::SetPageNumber(), SCH_SCREEN::SetPageSettings(), SCH_SHEET::SetScreen(), SCH_LABEL_BASE::SetShape(), SCH_FIELD::SetText(), SHEET_FILENAME, SHEET_NAME, sortedOccurrences(), ORCAD_CONVERTER::FOLDER_WALK::sourcePageCount, ORCAD_CONVERTER::FOLDER_WALK::sourcePageIndex, ORCAD_OCC_BLOCK::targetDbId, topLevelPath(), ORCAD_CONVERTER::PAGE_SCOPE::unconnectedInterfaceNetNames, unconnectedInterfaceNetNames(), uniqueSheetName(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by convertFolderHierarchy(), and placeFolder().
|
private |
One displayed property attached to a placed page symbol, preserving source text geometry.
Definition at line 6976 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 finishInterfaceLabel().
|
private |
Definition at line 7439 of file orcad_converter_sheet.cpp.
References std::abs(), ANGLE_VERTICAL, appendPageItem(), applyFont(), applyMultilineSpacing(), ARC, BEZIER, ORCAD_FONT::bold, 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(), OrcadForEachLeafPrimitive(), OrcadLineStyle(), OrcadLineWidthIu(), OrcadLower(), OrcadOffsetPrimitive(), 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::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.
|
private |
Definition at line 6883 of file orcad_converter_sheet.cpp.
References SCH_SHEET::AddField(), applyDisplayProp(), ORCAD_DRAWN_INSTANCE::childName, ORCAD_DRAWN_INSTANCE::displayProps, FromOrcadString(), SCH_SHEET::GetField(), ORCAD_DISPLAY_PROP::name, OrcadDbuToIu(), OrcadIEquals(), ORCAD_DRAWN_INSTANCE::props, SCH_FIELD::SetText(), EDA_TEXT::SetVisible(), SHEET_FILENAME, SHEET_NAME, USER, ORCAD_DRAWN_INSTANCE::x1, and ORCAD_DRAWN_INSTANCE::y1.
Referenced by createBlockSheet().
|
private |
Definition at line 6942 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 createBlockSheet().
|
private |
Definition at line 2872 of file orcad_converter_symbols.cpp.
References _, std::abs(), ANGLE_HORIZONTAL, ANGLE_VERTICAL, appendPageItem(), applyCisVariants(), ORCAD_SYMBOL_DEF::bbox, candidates(), BOX2< Vec >::Centre(), CIRCLE, correction, SHAPE_LINE_CHAIN::CPoints(), ORCAD_PLACED_INSTANCE::dbId, delta, effectiveProps(), 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, instantiateSymbol(), TRANSFORM::InverseTransform(), SHAPE_POLY_SET::IsEmpty(), isInstalledPropertyName(), EDA_TEXT::IsVisible(), kicadSymbolFor(), LAYER_DEVICE, LAYER_PINNAM, LAYER_PINNUM, libForInstance(), ORCAD_CONVERTER::SOURCE_PIN_IDENTITY::libraryPin, m_libSymbols, m_nativePowerFamilies, m_placedPackageUnits, m_preparedLibUnits, m_preparedPkgToLib, m_scope, 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(), OrcadIEquals(), 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::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, 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 5432 of file orcad_converter_sheet.cpp.
References appendPageItem(), m_netIndex, OrcadDbuToIu(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by convertPage().
|
private |
Keep computed intersheet references hidden; display the stored OrCAD IREF text.
Definition at line 7227 of file orcad_converter_sheet.cpp.
References _, appendPageItem(), applyFont(), KIID::AsStdString(), canonicalGlobalNetName(), finishInterfaceLabel(), FromOrcadString(), SCH_SHEET::GetPins(), EDA_TEXT::GetTextColor(), EDA_TEXT::GetTextSize(), SCH_SCREEN::GetUuid(), interfaceSourceWires(), L_BIDI, SCH_SHEET_PATH::Last(), m_hierBusNamesByScreen, ORCAD_RAW_PAGE::name, note(), ORCAD_RAW_PAGE::offpage, offpageNets(), OrcadDbuToIu(), OrcadDisplayFontId(), rememberInterfaceLabelSource(), SPIN_STYLE::RotateCCW(), safeConnectivityLabelPosition(), SCH_LABEL_BASE::SetShape(), SCH_GLOBALLABEL::SetSpinStyle(), SCH_HIERLABEL::SetSpinStyle(), EDA_TEXT::SetTextColor(), EDA_TEXT::SetTextSize(), spinAwayFromWire(), and THROW_IO_ERROR.
|
private |
Definition at line 3842 of file orcad_converter_sheet.cpp.
References appendPageItem(), ORCAD_PAGE_SETTINGS::borderPrinted, KIFONT::FONT::GetFont(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_V_ALIGN_CENTER, ORCAD_PAGE_SETTINGS::gridRefPrinted, ORCAD_PAGE_SETTINGS::height, ORCAD_PAGE_SETTINGS::horizontalAscending, ORCAD_PAGE_SETTINGS::horizontalChar, ORCAD_PAGE_SETTINGS::horizontalCount, ORCAD_PAGE_SETTINGS::horizontalWidth, ORCAD_PAGE_SETTINGS::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(), ORCAD_RAW_PAGE::settings, EDA_TEXT::SetVertJustify(), top(), ORCAD_PAGE_SETTINGS::verticalAscending, ORCAD_PAGE_SETTINGS::verticalChar, ORCAD_PAGE_SETTINGS::verticalCount, ORCAD_PAGE_SETTINGS::verticalWidth, ORCAD_PAGE_SETTINGS::width, and VECTOR2< T >::x.
Referenced by convertPage().
|
private |
Definition at line 7299 of file orcad_converter_sheet.cpp.
References _, KIID::AsStdString(), canonicalGlobalNetName(), effectiveInterfaceNetName(), finishInterfaceLabel(), FromOrcadString(), SCH_SCREEN::GetUuid(), ORCAD_WIRE::id, interfaceSourceWires(), ORCAD_WIRE::isBus, L_BIDI, L_INPUT, L_OUTPUT, ORCAD_GRAPHIC_INST::logicalName, m_hierBusNamesByScreen, m_occurrenceNetNameMinDepth, name, ORCAD_GRAPHIC_INST::name, ORCAD_RAW_PAGE::name, namedGraphicPinPos(), OrcadDbuToIu(), OrcadLower(), pageNetNames(), ORCAD_RAW_PAGE::ports, rawPointOnSegment(), safeConnectivityLabelPosition(), SCH_LABEL_BASE::SetShape(), SCH_LABEL_BASE::SetSpinStyle(), spinAwayFromWire(), THROW_IO_ERROR, ORCAD_RAW_PAGE::wires, VECTOR2< T >::x, and VECTOR2< T >::y.
|
private |
Definition at line 3270 of file orcad_converter_symbols.cpp.
References SCH_SYMBOL::AddField(), ALL_BODY_STYLES, ALL_UNITS, ANGLE_HORIZONTAL, appendPageItem(), applyDisplayProp(), ORCAD_GRAPHIC_INST::bbox, ORCAD_SYMBOL_DEF::bbox, canonicalGlobalNetName(), DATASHEET, ORCAD_GRAPHIC_INST::displayProps, FOOTPRINT, FromOrcadString(), SCH_SYMBOL::GetField(), SCH_SYMBOL::GetGraphicalPins(), SCH_SYMBOL::GetPosition(), SYMBOL::GetTransform(), instantiateSymbol(), kicadSymbolFor(), ORCAD_GRAPHIC_INST::logicalName, m_libSymbols, m_powerCount, ORCAD_GRAPHIC_INST::mirror, ORCAD_GRAPHIC_INST::name, OrcadDbuToIu(), OrcadIEquals(), OrcadOrientOf(), OrcadOrientOffset(), powerLibFor(), powerPinPos(), ORCAD_GRAPHIC_INST::props, REFERENCE, ORCAD_GRAPHIC_INST::rotation, SCH_FIELD::SetPosition(), SCH_SYMBOL::SetPosition(), SCH_SYMBOL::SetRef(), SCH_FIELD::SetText(), EDA_TEXT::SetTextAngle(), SCH_SYMBOL::SetUnitSelection(), SCH_SYMBOL::SetValueFieldText(), EDA_TEXT::SetVisible(), 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 3363 of file orcad_converter_symbols.cpp.
References std::abs(), SCH_SYMBOL::AddField(), ANGLE_HORIZONTAL, ANGLE_VERTICAL, appendPageItem(), applyDisplayProp(), applyFont(), ORCAD_SYMBOL_DEF::bbox, 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_pageItemScreen, m_scope, ORCAD_DISPLAY_PROP::name, ORCAD_IU_PER_DBU, ORCAD_ORIENT_TABLE, OrcadColor(), OrcadDbuToIu(), OrcadDisplayPropShowsName(), OrcadDisplayPropShowsValue(), OrcadDisplayPropVisible(), OrcadIEquals(), OrcadTransformPoint(), ORCAD_PLACED_INSTANCE::pins, ORCAD_SYMBOL_DEF::pins, REFERENCE, ORCAD_PLACED_INSTANCE::reference, SCH_SYMBOL::RemoveField(), resolveReference(), SCH_SYMBOL::SetFootprintFieldText(), EDA_TEXT::SetHorizJustify(), SCH_FIELD::SetNameShown(), SCH_FIELD::SetPosition(), SCH_FIELD::SetText(), EDA_TEXT::SetTextAngle(), EDA_TEXT::SetTextSize(), SCH_SYMBOL::SetValueFieldText(), EDA_TEXT::SetVisible(), text, 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 5484 of file orcad_converter_sheet.cpp.
References KIID::AsStdString(), ORCAD_RAW_PAGE::blocks, candidates(), canonicalGlobalNetName(), 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_hierBusNamesByScreen, m_netIndex, m_scope, name, ORCAD_GRAPHIC_INST::name, ORCAD_NET_GROUP::name, namedGraphicPinPos(), ORCAD_RAW_PAGE::netGroups, ORCAD_RAW_PAGE::netmap, occurrenceElectricalNetName(), ORCAD_RAW_PAGE::offpage, onSegment(), OrcadLower(), pageNetNames(), pin, ORCAD_DRAWN_INSTANCE::pins, ORCAD_PLACED_INSTANCE::pins, ORCAD_RAW_PAGE::ports, powerNet(), powerPinPos(), ORCAD_GRAPHIC_INST::props, 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 1995 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 |
Memoized resolvePowerNet() for the indexed page.
Definition at line 4755 of file orcad_converter_sheet.cpp.
References m_netIndex, and resolvePowerNet().
Referenced by collectFolderPowerAliases(), and placeWires().
|
private |
Power-symbol connection point, corrected to a nearby endpoint of its named wire.
Definition at line 5144 of file orcad_converter_sheet.cpp.
References ORCAD_RAW_PAGE::instances, ORCAD_GRAPHIC_INST::logicalName, namedGraphicPinPos(), ORCAD_RAW_PAGE::netmap, pageNetNames(), 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 resolvePowerNet().
|
private |
Capture net names ignore case; KiCad net names do not.
Use one spelling for each global net.
Definition at line 578 of file orcad_converter_sheet.cpp.
References forEachDesignPage(), ORCAD_GRAPHIC_INST::logicalName, m_globalNetNames, m_offpageNetNames, m_powerNetNames, name, ORCAD_GRAPHIC_INST::name, OrcadLower(), and ORCAD_GRAPHIC_INST::props.
Referenced by Convert().
|
private |
– hierarchy [orcad_converter_sheet.cpp] --------------------------------------—
Collect the occurrence facts every hierarchy strategy reads.
Definition at line 1439 of file orcad_converter_sheet.cpp.
References ORCAD_OCC_SCOPE::blocks, ORCAD_RAW_PAGE::blocks, canonicalGlobalNetKey(), ORCAD_OCC_BLOCK::childFolder, forEachDesignPage(), ORCAD_WIRE::id, ORCAD_WIRE::isBus, m_baseOccurrenceNetAliases, m_connectedBlockInterfaceNames, m_design, m_occurrenceFolderCounts, m_occurrenceNetNameMinDepth, m_occurrenceNetNameScopeCounts, m_simpleRepeatedLeafDesign, name, ORCAD_RAW_PAGE::netmap, ORCAD_OCC_SCOPE::netNames, OrcadLower(), pin, ORCAD_DRAWN_INSTANCE::pins, rawPointOnSegment(), ORCAD_OCC_BLOCK::scope, and ORCAD_RAW_PAGE::wires.
Referenced by Convert().
|
private |
Definition at line 680 of file orcad_converter_symbols.cpp.
References _, std::abs(), candidates(), ORCAD_SYMBOL_DEF::color, computeFontBaseline(), forEachDesignPage(), FromOrcadString(), ORCAD_SYMBOL_DEF::generalFlags, 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 3281 of file orcad_converter_sheet.cpp.
References _, SCH_CONNECTION::AllMembers(), KIID::AsStdString(), BUS, SCH_CONNECTION::BusCode(), candidates(), 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(), source, 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 1697 of file orcad_converter_sheet.cpp.
References isPowerNetName(), OrcadIEquals(), OrcadLower(), ORCAD_CONVERTER::POWER_ALIAS_EVIDENCE::placements, and ORCAD_CONVERTER::POWER_ALIAS_EVIDENCE::targets.
Referenced by collectFolderPowerAliases().
|
private |
Definition at line 2800 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, source, and THROW_IO_ERROR.
Referenced by finishInterfaceLabel(), and placeOffpageConnectors().
|
private |
Resolve a Design Template font ID to its 1-based LOGFONT index.
Definition at line 3875 of file orcad_converter_symbols.cpp.
References m_design.
Referenced by addSymbolPin(), applyFont(), displayFontId(), fontHeightDbu(), textBaselineOffset(), textSize(), and textSizeIU().
|
private |
Definition at line 4768 of file orcad_converter_sheet.cpp.
References canonicalGlobalNetName(), ORCAD_PLACED_INSTANCE::dbId, ORCAD_WIRE::dbId, effectiveInterfaceNetName(), ORCAD_WIRE::id, ORCAD_RAW_PAGE::instances, ORCAD_PIN_INST::IsNoConnect(), isPowerNetName(), ORCAD_GRAPHIC_INST::logicalName, m_netIndex, m_scope, name, ORCAD_GRAPHIC_INST::name, ORCAD_RAW_PAGE::netAliases, netAt(), ORCAD_RAW_PAGE::netmap, occurrenceElectricalNetName(), occurrenceNetIdFor(), onSegment(), OrcadIEquals(), OrcadLower(), pageNetIdsNamed(), pageNetNames(), pin, ORCAD_PLACED_INSTANCE::pins, placedPinElectricalPosition(), powerPinPos(), ORCAD_GRAPHIC_INST::props, 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 powerNet().
|
private |
Use the occurrence reference when the instance has an unannotated template.
Definition at line 3244 of file orcad_converter_symbols.cpp.
References ORCAD_PLACED_INSTANCE::dbId, FromOrcadString(), m_scope, and ORCAD_PLACED_INSTANCE::reference.
Referenced by placeInstance(), and placeSymbolFields().
|
staticprivate |
Definition at line 3950 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 7893 of file orcad_converter_sheet.cpp.
References KiROUND(), ORCAD_WIRE::x1, ORCAD_WIRE::x2, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
|
private |
Point an interface label at aPosDbu away from the wire that ends there.
Definition at line 7377 of file orcad_converter_sheet.cpp.
References std::abs(), SPIN_STYLE::BOTTOM, end, SPIN_STYLE::LEFT, m_netIndex, SPIN_STYLE::RIGHT, SPIN_STYLE::UP, VECTOR2< T >::x, ORCAD_WIRE::x1, ORCAD_WIRE::x2, VECTOR2< T >::y, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
Referenced by placeOffpageConnectors(), and placePorts().
|
staticprivate |
LIB_ID-safe symbol name: ':', '"', '/' and whitespace runs -> '_'; "SYM" if empty.
Definition at line 4030 of file orcad_converter_symbols.cpp.
Referenced by buildPackageEntry(), BuildSymbolLibrary(), and powerLibFor().
|
private |
Use placed pin positions to keep uncached symbols connected.
Definition at line 1028 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, hasDualRowDescription(), ORCAD_PRIMITIVE::kind, m_design, ORCAD_PLACED_INSTANCE::mirror, ORCAD_SYMBOL_DEF::name, ORCAD_ORIENT_TABLE, ORCAD_ST_LIBRARY_PART, OrcadInverseOrient(), OrcadOrientOf(), OrcadOrientOffset(), PASSIVE, pin, PIN_LEN_DBU, ORCAD_PLACED_INSTANCE::pins, ORCAD_SYMBOL_DEF::pins, ORCAD_SYMBOL_DEF::primitives, ORCAD_PLACED_INSTANCE::props, 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 3856 of file orcad_converter_symbols.cpp.
References KiROUND(), m_design, OrcadLower(), OrcadTextBaselineOffset(), and resolveFontIndex().
Referenced by displayPropPosition(), placeGraphicDisplayText(), and placeGraphics().
|
private |
Preserve an explicit LOGFONT width while retaining natural font aspect when it is zero.
Definition at line 3935 of file orcad_converter_symbols.cpp.
References std::abs(), ORCAD_FONT::bold, ORCAD_FONT::face, ORCAD_FONT::height, m_design, OrcadLower(), ORCAD_FONT::pitchAndFamily, resolveFontIndex(), schIUScale, textSizeIU(), and ORCAD_FONT::width.
Referenced by addSymbolPrimitive(), applyDisplayProp(), applyTitleBlock(), finishInterfaceLabel(), placeGraphicDisplayText(), and placeGraphics().
|
private |
Definition at line 3909 of file orcad_converter_symbols.cpp.
References fontHeightDbu(), m_design, OrcadLower(), and resolveFontIndex().
Referenced by addSymbolPin(), displayPropPosition(), placeGraphicDisplayText(), and textSize().
|
staticprivate |
Definition at line 2724 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 instantiateSymbol().
|
private |
The hierarchy path ending at a top-level sheet, numbered aPageNumber.
Definition at line 1400 of file orcad_converter_sheet.cpp.
References m_schematic, and path.
Referenced by convertUnreferencedPages(), and placeFolder().
|
private |
No-connect block pins whose names are wired elsewhere become per-occurrence nets.
Definition at line 1575 of file orcad_converter_sheet.cpp.
References canonicalGlobalNetName(), m_connectedBlockInterfaceNames, OrcadLower(), pin, ORCAD_DRAWN_INSTANCE::pins, and result.
Referenced by convertFlatPages(), and placeFolder().
|
private |
aBase, or aBase_pinsN for the first N >= 2 whose existing entry is absent or passes aReusable.
Definition at line 2541 of file orcad_converter_symbols.cpp.
References m_libSymbols.
Referenced by finalizeNativePowerPackages().
|
private |
aBase, or "aBase (N)" for the first N >= 2 not already used by a sibling sheet.
Definition at line 1389 of file orcad_converter_sheet.cpp.
References m_usedSheetNames, and name.
Referenced by convertUnreferencedPages(), and placeFolder().
|
private |
The unit key includes a non-Normal view so DeMorgan graphics remain distinct.
Definition at line 1280 of file orcad_converter_symbols.cpp.
References OrcadLower(), 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 564 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 3844 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 146 of file orcad_converter.h.
Referenced by libIdFor().
|
private |
Occurrence net aliases shared by every scope, then those a parent block adds per child scope.
Definition at line 634 of file orcad_converter.h.
Referenced by occurrenceScope(), and prepareOccurrenceNets().
|
private |
Definition at line 627 of file orcad_converter.h.
Referenced by prepareOccurrenceNets(), and unconnectedInterfaceNetNames().
|
private |
Definition at line 646 of file orcad_converter.h.
|
private |
Definition at line 611 of file orcad_converter.h.
Referenced by addSymbolPin(), addSymbolPrimitive(), applyCisVariants(), applyFont(), applyTitleBlock(), assignRemainingUuids(), buildPackageEntry(), BuildSymbolLibrary(), canBuildFolderHierarchy(), canBuildNativeHierarchy(), collectFolderPowerAliases(), computeFontBaseline(), Convert(), convertFlatPages(), convertFolderHierarchy(), convertPage(), convertUnreferencedPages(), deterministicUuid(), displayFontId(), displayUsesTemplateFont(), fontHeightDbu(), forEachDesignPage(), graphicDefinition(), libForInstance(), ORCAD_CONVERTER(), packageFor(), pickVariant(), placeFolder(), placeGraphics(), powerLibFor(), prepareOccurrenceNets(), prepareSymbols(), resolveFontIndex(), synthesizeSymbol(), textBaselineOffset(), textSize(), textSizeIU(), and wireAliasFontId().
|
private |
dominant text height; 0 = none
Definition at line 637 of file orcad_converter.h.
Referenced by computeFontBaseline(), and ORCAD_CONVERTER().
|
private |
Definition at line 624 of file orcad_converter.h.
Referenced by acceptPowerAliases(), and canonicalGlobalNetName().
|
private |
Definition at line 623 of file orcad_converter.h.
Referenced by canonicalGlobalNetName(), and prepareGlobalNetNames().
|
private |
Definition at line 647 of file orcad_converter.h.
Referenced by createBlockSheet(), placeFolder(), placeOffpageConnectors(), placePorts(), placeWires(), and recordNetNameMap().
|
private |
Definition at line 642 of file orcad_converter.h.
Referenced by assignRemainingUuids(), Convert(), and newScreen().
|
private |
Definition at line 666 of file orcad_converter.h.
Referenced by finalizeNetNames(), and rememberInterfaceLabelSource().
|
private |
Definition at line 668 of file orcad_converter.h.
Referenced by appendNetIntent(), and finalizeNetNames().
|
private |
keyed by emitted lib name
Definition at line 617 of file orcad_converter.h.
Referenced by BuildSymbolLibrary(), finalizeNativePowerPackages(), kicadSymbolFor(), placeInstance(), placePowerSymbol(), powerLibFor(), prepareSymbols(), and uniqueLibName().
|
private |
Definition at line 622 of file orcad_converter.h.
Referenced by finalizeNativePowerPackages(), and placeInstance().
|
private |
Definition at line 689 of file orcad_converter.h.
Referenced by buildNetLookup(), enterScope(), netAt(), offpageNets(), pinNetIds(), placeJunctions(), placeWires(), powerNet(), resolvePowerNet(), and spinAwayFromWire().
|
private |
Definition at line 667 of file orcad_converter.h.
Referenced by appendNetIntent(), and minimizeNetLabels().
|
private |
Definition at line 635 of file orcad_converter.h.
Referenced by addChildOccurrenceAliases(), and occurrenceScope().
|
private |
Definition at line 630 of file orcad_converter.h.
Referenced by convertFlatPages(), placeFolder(), and prepareOccurrenceNets().
|
private |
Definition at line 629 of file orcad_converter.h.
Referenced by placePorts(), and prepareOccurrenceNets().
|
private |
Definition at line 628 of file orcad_converter.h.
Referenced by prepareOccurrenceNets().
|
private |
Definition at line 626 of file orcad_converter.h.
Referenced by isOffpageNetName(), and prepareGlobalNetNames().
|
private |
Definition at line 641 of file orcad_converter.h.
Referenced by appendPageItem(), assignPageItemUuids(), and convertPage().
|
private |
Definition at line 640 of file orcad_converter.h.
Referenced by appendPageItem(), convertPage(), and placeSymbolFields().
|
private |
Definition at line 638 of file orcad_converter.h.
|
private |
Definition at line 618 of file orcad_converter.h.
Referenced by prepareSymbols().
|
private |
Definition at line 621 of file orcad_converter.h.
Referenced by finalizeNativePowerPackages(), and placeInstance().
|
private |
"#PWR%04d" counter
Definition at line 636 of file orcad_converter.h.
Referenced by ORCAD_CONVERTER(), and placePowerSymbol().
|
private |
Definition at line 625 of file orcad_converter.h.
Referenced by isPowerNetName(), and prepareGlobalNetNames().
|
private |
already on the root screen
Definition at line 643 of file orcad_converter.h.
Referenced by assignRemainingUuids(), and Convert().
|
private |
Definition at line 620 of file orcad_converter.h.
Referenced by finalizeNativePowerPackages(), placeInstance(), and prepareSymbols().
|
private |
Definition at line 619 of file orcad_converter.h.
Referenced by finalizeNativePowerPackages(), placeInstance(), and prepareSymbols().
|
private |
Definition at line 614 of file orcad_converter.h.
Referenced by convertUnreferencedPages(), ORCAD_CONVERTER(), and placeFolder().
|
private |
Definition at line 613 of file orcad_converter.h.
Referenced by note(), ORCAD_CONVERTER(), and warn().
|
private |
Definition at line 615 of file orcad_converter.h.
Referenced by assignRemainingUuids(), Convert(), convertFolderHierarchy(), createTopLevelSheets(), ORCAD_CONVERTER(), and placeFolder().
|
private |
Definition at line 612 of file orcad_converter.h.
Referenced by applyFont(), assignRemainingUuids(), convertUnreferencedPages(), createBlockSheet(), createTopLevelSheets(), finalizeNetNames(), minimizeNetLabels(), newScreen(), ORCAD_CONVERTER(), placeFolder(), recordNetNameMap(), and topLevelPath().
|
private |
Definition at line 645 of file orcad_converter.h.
Referenced by applyCisVariants(), buildNetLookup(), Convert(), convertFolderHierarchy(), convertPage(), convertUnreferencedPages(), effectiveInterfaceNetName(), effectiveProps(), enterScope(), libForInstance(), occurrenceBaseNetName(), occurrenceElectricalNetName(), occurrenceNetIdFor(), offpageNets(), placeInstance(), placeSymbolFields(), placeWires(), resolvePowerNet(), and resolveReference().
|
private |
Definition at line 639 of file orcad_converter.h.
Referenced by newScreen().
|
private |
Definition at line 631 of file orcad_converter.h.
Referenced by convertFlatPages(), placeFolder(), and prepareOccurrenceNets().
|
private |
Definition at line 672 of file orcad_converter.h.
Referenced by recordNetNameMap().
|
private |
Definition at line 682 of file orcad_converter.h.
Referenced by placeInstance(), and recordNetNameMap().
|
private |
Definition at line 670 of file orcad_converter.h.
Referenced by finalizeNetNames(), and recordNetNameMap().
|
private |
Definition at line 671 of file orcad_converter.h.
Referenced by convertPage(), and recordNetNameMap().
|
private |
Definition at line 683 of file orcad_converter.h.
Referenced by convertPage(), and recordNetNameMap().
|
private |
Definition at line 669 of file orcad_converter.h.
Referenced by convertPage(), and recordNetNameMap().
|
private |
Definition at line 681 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 687 of file orcad_converter.h.
Referenced by convertUnreferencedPages(), and uniqueSheetName().
|
private |
Definition at line 684 of file orcad_converter.h.
Referenced by recordNetNameMap().
|
staticconstexprprivate |
Definition at line 260 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 257 of file orcad_converter.h.
Referenced by applyPageSettings().
|
staticconstexprprivate |
Definition at line 259 of file orcad_converter.h.
Referenced by applyPageSettings().
|
staticconstexprprivate |
Definition at line 258 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 254 of file orcad_converter.h.
Referenced by synthesizeSymbol().