|
KiCad PCB EDA Suite
|
#include <cstdint>#include <map>#include <memory>#include <set>#include <string>#include <tuple>#include <utility>#include <vector>#include <wx/string.h>#include <geometry/seg.h>#include <math/box2.h>#include <math/vector2d.h>#include <gal/color4d.h>#include <eda_shape.h>#include <kiid.h>#include <sch_io/orcad/orcad_records.h>Go to the source code of this file.
Classes | |
| struct | ORCAD_ORIENT_ENTRY |
| OrCAD rotates about the bounding box; KiCad rotates about the anchor. More... | |
| class | ORCAD_CONVERTER |
| struct | ORCAD_CONVERTER::UNIT_INFO |
| – shared bookkeeping types ------------------------------------------------— More... | |
| struct | ORCAD_CONVERTER::LIB_ENTRY |
| One emitted KiCad lib symbol (possibly multi-unit). More... | |
| struct | ORCAD_CONVERTER::OFFPAGE_NET |
| One resolved off-page connector: index into page.offpage, net, pin position. More... | |
| struct | ORCAD_CONVERTER::PLACED_PACKAGE_UNIT |
| struct | ORCAD_CONVERTER::NET_LABEL_INTENT |
| struct | ORCAD_CONVERTER::INTERFACE_LABEL_SOURCE |
| struct | ORCAD_CONVERTER::SOURCE_PIN_IDENTITY |
Functions | |
| KIGFX::COLOR4D | OrcadColor (int aColorIndex) |
| int | OrcadLineWidthIu (int aWidth) |
| int | OrcadPageGraphicLineWidthIu (int aWidth) |
| LINE_STYLE | OrcadLineStyle (int aStyle) |
| std::pair< double, double > | OrcadDashRatios (int aFormatVersionMajor) |
| FILL_T | OrcadFillType (int aFillStyle, int aHatchStyle) |
| int | OrcadHatchPitchIu (uint32_t aModifyTimestamp) |
| int | OrcadHatchLineWidthIu (uint32_t aModifyTimestamp) |
| std::vector< SEG > | OrcadHatchLines (const EDA_SHAPE &aShape, int aHatchStyle, int aPitch) |
| int | OrcadTextBaselineOffset (int aTextSize) |
| int | OrcadDisplayType (const ORCAD_DISPLAY_PROP &aProp) |
| bool | OrcadDisplayPropVisible (const ORCAD_DISPLAY_PROP &aProp) |
| bool | OrcadDisplayPropShowsName (const ORCAD_DISPLAY_PROP &aProp) |
| bool | OrcadDisplayPropShowsValue (const ORCAD_DISPLAY_PROP &aProp) |
| int | OrcadDisplayFontId (const ORCAD_DISPLAY_PROP &aProp) |
| int | OrcadPageOrder (wxString &aName) |
| Return a numeric page prefix (or -1); strip only the "N - title" convention. | |
| VECTOR2I | OrcadStretchedImageSize (int aWidth, int aHeight, int aBoxWidth, int aBoxHeight) |
| wxString | OrcadPinNameMarkup (const wxString &aName) |
| VECTOR2I | OrcadDbuToIu (int aX, int aY) |
| int | OrcadOrientOf (int aRotation, bool aMirror) |
| Compose the 3-bit orientation code from the rotation bits and mirror bit. | |
| int | OrcadOrientDim (int aSelector, int aWidth, int aHeight) |
| VECTOR2I | OrcadOrientOffset (int aOrient, int aWidth, int aHeight) |
| Bbox re-anchoring offset for the given orientation and body size (DBU). | |
| VECTOR2I | OrcadTransformPoint (int aOrient, int aWidth, int aHeight, int aBaseX, int aBaseY, int aPx, int aPy) |
| Parts use the instance anchor as the base. | |
Variables | |
| constexpr int | ORCAD_IU_PER_DBU = 2540 |
| Schematic internal units per OrCAD DBU: 10 mil * 254 IU/mil. | |
| constexpr ORCAD_ORIENT_ENTRY | ORCAD_ORIENT_TABLE [8] |
| Indexed by orientation bits: angle, mirror, offset selectors, then matrix coefficients. | |
| 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().
| std::pair< double, double > OrcadDashRatios | ( | int | aFormatVersionMajor | ) |
Definition at line 215 of file orcad_converter_symbols.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and SCH_IO_ORCAD::LoadSchematicFile().
|
inline |
Definition at line 88 of file orcad_converter.h.
References ORCAD_IU_PER_DBU.
Referenced by ORCAD_CONVERTER::applyTitleBlock(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), ORCAD_CONVERTER::Convert(), eligibleSourceConnectivityWires(), ORCAD_CONVERTER::placeBusEntries(), ORCAD_CONVERTER::placeGraphicDisplayText(), ORCAD_CONVERTER::placeGraphics(), ORCAD_CONVERTER::placeHierarchicalBlockFields(), ORCAD_CONVERTER::placeInstance(), ORCAD_CONVERTER::placeJunctions(), ORCAD_CONVERTER::placeOffpageConnectors(), ORCAD_CONVERTER::placePageFrame(), ORCAD_CONVERTER::placePorts(), ORCAD_CONVERTER::placePowerSymbol(), and ORCAD_CONVERTER::placeSymbolFields().
| int OrcadDisplayFontId | ( | const ORCAD_DISPLAY_PROP & | aProp | ) |
Definition at line 144 of file orcad_converter_symbols.cpp.
References ORCAD_DISPLAY_PROP::fontIdx, and ORCAD_DISPLAY_PROP::name.
Referenced by ORCAD_CONVERTER::displayFontId(), ORCAD_CONVERTER::placeOffpageConnectors(), and ORCAD_CONVERTER::placePorts().
| bool OrcadDisplayPropShowsName | ( | const ORCAD_DISPLAY_PROP & | aProp | ) |
Definition at line 130 of file orcad_converter_symbols.cpp.
References OrcadDisplayType().
Referenced by ORCAD_CONVERTER::applyTitleBlock(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), ORCAD_CONVERTER::placeHierarchicalBlockFields(), ORCAD_CONVERTER::placePowerSymbol(), and ORCAD_CONVERTER::placeSymbolFields().
| bool OrcadDisplayPropShowsValue | ( | const ORCAD_DISPLAY_PROP & | aProp | ) |
Definition at line 137 of file orcad_converter_symbols.cpp.
References OrcadDisplayType().
Referenced by ORCAD_CONVERTER::applyTitleBlock(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and ORCAD_CONVERTER::placeSymbolFields().
| bool OrcadDisplayPropVisible | ( | const ORCAD_DISPLAY_PROP & | aProp | ) |
Definition at line 114 of file orcad_converter_symbols.cpp.
References ORCAD_DISPLAY_PROP::name, OrcadDisplayType(), and propertyNamesEqual().
Referenced by ORCAD_CONVERTER::addSymbolPin(), ORCAD_CONVERTER::applyTitleBlock(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), ORCAD_CONVERTER::kicadSymbolFor(), ORCAD_CONVERTER::placeGraphicDisplayText(), ORCAD_CONVERTER::placeHierarchicalBlockFields(), ORCAD_CONVERTER::placeOffpageConnectors(), ORCAD_CONVERTER::placePorts(), ORCAD_CONVERTER::placePowerSymbol(), and ORCAD_CONVERTER::placeSymbolFields().
| int OrcadDisplayType | ( | const ORCAD_DISPLAY_PROP & | aProp | ) |
Definition at line 108 of file orcad_converter_symbols.cpp.
References ORCAD_DISPLAY_PROP::dispMode.
Referenced by OrcadDisplayPropShowsName(), OrcadDisplayPropShowsValue(), and OrcadDisplayPropVisible().
| FILL_T OrcadFillType | ( | int | aFillStyle, |
| int | aHatchStyle ) |
Definition at line 243 of file orcad_converter_symbols.cpp.
References CROSS_HATCH, FILLED_SHAPE, HATCH, NO_FILL, and REVERSE_HATCH.
Referenced by ORCAD_CONVERTER::addSymbolPrimitive(), and BOOST_AUTO_TEST_CASE().
Definition at line 277 of file orcad_converter_symbols.cpp.
References ANGLE_90, SHAPE_POLY_SET::CloneDropTriangulation(), ERROR_INSIDE, FILLED_SHAPE, SHAPE_POLY_SET::GenerateHatchLines(), SHAPE_POLY_SET::Rotate(), RotatePoint(), schIUScale, EDA_SHAPE::SetFillMode(), and EDA_SHAPE::TransformShapeToPolygon().
Referenced by addOrcadSymbolHatch(), and BOOST_AUTO_TEST_CASE().
| int OrcadHatchLineWidthIu | ( | uint32_t | aModifyTimestamp | ) |
Definition at line 270 of file orcad_converter_symbols.cpp.
References schIUScale.
Referenced by addOrcadSymbolHatch(), and BOOST_AUTO_TEST_CASE().
| int OrcadHatchPitchIu | ( | uint32_t | aModifyTimestamp | ) |
Definition at line 263 of file orcad_converter_symbols.cpp.
References schIUScale.
Referenced by addOrcadSymbolHatch(), and BOOST_AUTO_TEST_CASE().
| LINE_STYLE OrcadLineStyle | ( | int | aStyle | ) |
Definition at line 200 of file orcad_converter_symbols.cpp.
References DASH, DASHDOT, DASHDOTDOT, DEFAULT, DOT, and SOLID.
Referenced by BOOST_AUTO_TEST_CASE(), and ORCAD_CONVERTER::placeGraphics().
| int OrcadLineWidthIu | ( | int | aWidth | ) |
Definition at line 224 of file orcad_converter_symbols.cpp.
References schIUScale.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), OrcadPageGraphicLineWidthIu(), and ORCAD_CONVERTER::placeGraphics().
|
inline |
Definition at line 124 of file orcad_converter.h.
Referenced by OrcadOrientOffset().
|
inline |
Compose the 3-bit orientation code from the rotation bits and mirror bit.
Definition at line 118 of file orcad_converter.h.
Referenced by ORCAD_CONVERTER::applyTitleBlock(), ORCAD_CONVERTER::graphicPinPos(), ORCAD_CONVERTER::placedPinElectricalPosition(), ORCAD_CONVERTER::placeInstance(), ORCAD_CONVERTER::placePowerSymbol(), and ORCAD_CONVERTER::synthesizeSymbol().
|
inline |
Bbox re-anchoring offset for the given orientation and body size (DBU).
Definition at line 131 of file orcad_converter.h.
References ORCAD_ORIENT_TABLE, OrcadOrientDim(), ORCAD_ORIENT_ENTRY::txSel, and ORCAD_ORIENT_ENTRY::tySel.
Referenced by OrcadTransformPoint(), ORCAD_CONVERTER::placeInstance(), ORCAD_CONVERTER::placePowerSymbol(), and ORCAD_CONVERTER::synthesizeSymbol().
| int OrcadPageGraphicLineWidthIu | ( | int | aWidth | ) |
Definition at line 237 of file orcad_converter_symbols.cpp.
References OrcadLineWidthIu(), and schIUScale.
Referenced by BOOST_AUTO_TEST_CASE(), and ORCAD_CONVERTER::placeGraphics().
| 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().
| wxString OrcadPinNameMarkup | ( | const wxString & | aName | ) |
Definition at line 159 of file orcad_converter_symbols.cpp.
References result.
Referenced by ORCAD_CONVERTER::addSymbolPin(), and 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().
| int OrcadTextBaselineOffset | ( | int | aTextSize | ) |
Definition at line 326 of file orcad_converter_symbols.cpp.
References KiROUND().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), ORCAD_CONVERTER::placeGraphics(), ORCAD_CONVERTER::placeInstance(), and ORCAD_CONVERTER::textBaselineOffset().
|
inline |
Parts use the instance anchor as the base.
Power symbols, ports, and connectors use the box minimum.
Definition at line 139 of file orcad_converter.h.
References ORCAD_ORIENT_ENTRY::a, ORCAD_ORIENT_ENTRY::b, ORCAD_ORIENT_ENTRY::c, ORCAD_ORIENT_ENTRY::d, ORCAD_ORIENT_TABLE, OrcadOrientOffset(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by ORCAD_CONVERTER::graphicPinPos(), ORCAD_CONVERTER::placeDefinitionImages(), ORCAD_CONVERTER::placeDefinitionVectors(), and ORCAD_CONVERTER::placeSymbolFields().
|
inlineconstexpr |
Schematic internal units per OrCAD DBU: 10 mil * 254 IU/mil.
Definition at line 67 of file orcad_converter.h.
Referenced by ORCAD_CONVERTER::addSymbolPin(), ORCAD_CONVERTER::addSymbolPrimitive(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), ORCAD_CONVERTER::kicadSymbolFor(), OrcadDbuToIu(), ORCAD_CONVERTER::placeBitmap(), ORCAD_CONVERTER::placeBusEntries(), ORCAD_CONVERTER::placeInstance(), and ORCAD_CONVERTER::placeSymbolFields().
|
inlineconstexpr |
Indexed by orientation bits: angle, mirror, offset selectors, then matrix coefficients.
Definition at line 110 of file orcad_converter.h.
Referenced by OrcadOrientOffset(), OrcadTransformPoint(), ORCAD_CONVERTER::placeBitmap(), ORCAD_CONVERTER::placedPinElectricalPosition(), ORCAD_CONVERTER::placeSymbolFields(), and ORCAD_CONVERTER::synthesizeSymbol().