|
KiCad PCB EDA Suite
|
#include <sch_io/orcad/orcad_converter.h>#include <sch_io/ole_image.h>#include <algorithm>#include <array>#include <charconv>#include <cctype>#include <chrono>#include <cmath>#include <functional>#include <numeric>#include <limits>#include <map>#include <memory>#include <optional>#include <set>#include <string>#include <string_view>#include <utility>#include <vector>#include <wx/buffer.h>#include <wx/filename.h>#include <wx/image.h>#include <wx/log.h>#include <wx/tokenzr.h>#include <wx/translation.h>#include <base_units.h>#include <bitmap_base.h>#include <connection_graph.h>#include <core/kicad_algo.h>#include <ki_exception.h>#include <kiid.h>#include <layer_ids.h>#include <lib_symbol.h>#include <math/util.h>#include <page_info.h>#include <progress_reporter.h>#include <project.h>#include <reference_image.h>#include <reporter.h>#include <schematic.h>#include <sch_bitmap.h>#include <sch_bus_entry.h>#include <sch_junction.h>#include <sch_label.h>#include <sch_line.h>#include <sch_no_connect.h>#include <sch_screen.h>#include <sch_shape.h>#include <sch_sheet.h>#include <sch_sheet_path.h>#include <sch_sheet_pin.h>#include <sch_symbol.h>#include <sch_pin.h>#include <import_net_map.h>#include <sch_text.h>#include <string_utils.h>#include <stroke_params.h>#include <template_fieldnames.h>#include <title_block.h>#include <sch_io/orcad/orcad_stream.h>Go to the source code of this file.
Functions | |
| VECTOR2I | OrcadStretchedImageSize (int aWidth, int aHeight, int aBoxWidth, int aBoxHeight) |
| KIGFX::COLOR4D | OrcadColor (int aColorIndex) |
| int | OrcadPageOrder (wxString &aName) |
| Return a numeric page prefix (or -1); strip only the "N - title" convention. | |
| static std::string | scopedHierBusName (const std::string &aName, uint32_t aOccurrenceId) |
| static bool | parseVectorBusName (const std::string &aName, std::string &aPrefix, int &aFirst, int &aLast) |
| static std::string | scopedHierBusMember (const std::string &aName, const std::map< std::string, std::string > &aBusNames) |
| static std::string | scopedHierBusRange (const std::string &aName, const std::map< std::string, std::string > &aBusNames) |
| static bool | rawPointOnSegment (int aX, int aY, const ORCAD_WIRE &aWire) |
| static std::optional< VECTOR2I > | rawWireIntersection (const ORCAD_WIRE &aFirst, const ORCAD_WIRE &aSecond) |
| static bool | rawBusSegmentsTouch (const ORCAD_WIRE &aFirst, const ORCAD_WIRE &aSecond) |
| static std::set< std::string > | busPrefixTokens (const std::string &aPrefix) |
| static std::string | firstBusPrefixToken (const std::string &aPrefix) |
| static std::string | connectedBusName (const ORCAD_RAW_PAGE &aPage, const ORCAD_BLOCK_PIN &aPin, const std::string &aFallback) |
| static LABEL_FLAG_SHAPE | hierarchicalPinShape (ORCAD_PORT_TYPE aType) |
| static uint32_t | busNetAt (const ORCAD_RAW_PAGE &aPage, const ORCAD_BLOCK_PIN &aPin) |
| static std::string | flatNetSuffix (const ORCAD_DRAWN_INSTANCE &aBlock) |
| static std::optional< VECTOR2I > | safeConnectivityLabelPosition (SCH_SCREEN *aScreen, const VECTOR2I &aPosition, const std::optional< std::vector< SEG > > &aSourceWires) |
| static std::optional< std::vector< SEG > > | eligibleSourceConnectivityWires (const ORCAD_RAW_PAGE &aPage, const VECTOR2I &aPosition, const std::set< std::string > &aNames, bool aBus=false, uint32_t *aNetId=nullptr) |
|
static |
Definition at line 1124 of file orcad_converter_sheet.cpp.
References ORCAD_WIRE::id, ORCAD_WIRE::isBus, ORCAD_RAW_PAGE::wires, ORCAD_BLOCK_PIN::x, ORCAD_WIRE::x1, ORCAD_WIRE::x2, ORCAD_BLOCK_PIN::y, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
Referenced by ORCAD_CONVERTER::Convert().
|
static |
Definition at line 879 of file orcad_converter_sheet.cpp.
Referenced by connectedBusName().
|
static |
Definition at line 920 of file orcad_converter_sheet.cpp.
References std::abs(), ORCAD_WIRE::aliases, busPrefixTokens(), cursor, firstBusPrefixToken(), group, ORCAD_WIRE::id, ORCAD_GRAPHIC_INST::logicalName, name, ORCAD_ALIAS::name, ORCAD_GRAPHIC_INST::name, ORCAD_RAW_PAGE::netAliases, ORCAD_RAW_PAGE::netGroups, ORCAD_RAW_PAGE::netmap, ORCAD_RAW_PAGE::offpage, parseVectorBusName(), ORCAD_RAW_PAGE::ports, rawBusSegmentsTouch(), rawPointOnSegment(), ORCAD_RAW_PAGE::wires, ORCAD_BLOCK_PIN::x, and ORCAD_BLOCK_PIN::y.
Referenced by ORCAD_CONVERTER::Convert().
|
static |
Definition at line 6044 of file orcad_converter_sheet.cpp.
References ORCAD_WIRE::id, ORCAD_WIRE::isBus, name, ORCAD_RAW_PAGE::netAliases, ORCAD_RAW_PAGE::netmap, OrcadDbuToIu(), rawPointOnSegment(), 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 ORCAD_CONVERTER::placeOffpageConnectors(), and ORCAD_CONVERTER::placePorts().
|
static |
Definition at line 904 of file orcad_converter_sheet.cpp.
References end.
Referenced by connectedBusName().
|
static |
Definition at line 1150 of file orcad_converter_sheet.cpp.
References name, ORCAD_DRAWN_INSTANCE::name, and ORCAD_DRAWN_INSTANCE::props.
Referenced by ORCAD_CONVERTER::Convert().
|
static |
Definition at line 1109 of file orcad_converter_sheet.cpp.
References BIDIRECTIONAL, INPUT_TYPE, L_BIDI, L_INPUT, L_OUTPUT, L_TRISTATE, L_UNSPECIFIED, OUTPUT, and TRI_STATE.
Referenced by ORCAD_CONVERTER::Convert().
| KIGFX::COLOR4D OrcadColor | ( | int | aColorIndex | ) |
Definition at line 343 of file orcad_converter_sheet.cpp.
References KIGFX::COLOR4D::UNSPECIFIED.
Referenced by addOrcadSymbolHatch(), ORCAD_CONVERTER::addSymbolPrimitive(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), ORCAD_CONVERTER::placeBusEntries(), ORCAD_CONVERTER::placeGraphicDisplayText(), ORCAD_CONVERTER::placeGraphics(), ORCAD_CONVERTER::placeHierarchicalBlockFields(), ORCAD_CONVERTER::placeHierarchicalBlockPinFill(), ORCAD_CONVERTER::placeOffpageConnectors(), ORCAD_CONVERTER::placePorts(), ORCAD_CONVERTER::placePowerSymbol(), and ORCAD_CONVERTER::placeSymbolFields().
| int OrcadPageOrder | ( | wxString & | aName | ) |
Return a numeric page prefix (or -1); strip only the "N - title" convention.
Definition at line 631 of file orcad_converter_sheet.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
| VECTOR2I OrcadStretchedImageSize | ( | int | aWidth, |
| int | aHeight, | ||
| int | aBoxWidth, | ||
| int | aBoxHeight ) |
Definition at line 319 of file orcad_converter_sheet.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and ORCAD_CONVERTER::placeBitmap().
|
static |
Definition at line 698 of file orcad_converter_sheet.cpp.
Referenced by connectedBusName(), scopedHierBusMember(), and scopedHierBusRange().
|
static |
Definition at line 871 of file orcad_converter_sheet.cpp.
References rawPointOnSegment(), ORCAD_WIRE::x1, ORCAD_WIRE::x2, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
Referenced by connectedBusName().
|
static |
Definition at line 823 of file orcad_converter_sheet.cpp.
References ORCAD_WIRE::x1, ORCAD_WIRE::x2, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
Referenced by connectedBusName(), ORCAD_CONVERTER::Convert(), eligibleSourceConnectivityWires(), ORCAD_CONVERTER::offpageNets(), ORCAD_CONVERTER::placePorts(), ORCAD_CONVERTER::powerNet(), and rawBusSegmentsTouch().
|
static |
Definition at line 832 of file orcad_converter_sheet.cpp.
References ORCAD_WIRE::x1, ORCAD_WIRE::x2, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
Referenced by ORCAD_CONVERTER::computeJunctions().
|
static |
Definition at line 7744 of file orcad_converter_sheet.cpp.
References std::abs(), SEG::Contains(), delta, SCH_ITEM::GetLayer(), SCH_LINE::GetSeg(), SCH_SCREEN::Items(), LAYER_BUS, LAYER_WIRE, pin, SCH_BUS_BUS_ENTRY_T, SCH_BUS_WIRE_ENTRY_T, SCH_JUNCTION_T, SCH_LINE_T, SCH_SHEET_T, SCH_SYMBOL_T, schIUScale, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by ORCAD_CONVERTER::finalizeNetNames(), ORCAD_CONVERTER::minimizeNetLabels(), ORCAD_CONVERTER::placeOffpageConnectors(), and ORCAD_CONVERTER::placePorts().
|
static |
Definition at line 735 of file orcad_converter_sheet.cpp.
References std::abs(), next(), and parseVectorBusName().
Referenced by ORCAD_CONVERTER::recordNetNameMap().
|
static |
Definition at line 687 of file orcad_converter_sheet.cpp.
Referenced by ORCAD_CONVERTER::Convert().
|
static |
Definition at line 777 of file orcad_converter_sheet.cpp.
References std::abs(), and parseVectorBusName().
Referenced by ORCAD_CONVERTER::Convert().