|
KiCad PCB EDA Suite
|
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... | |
Functions | |
| 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 ORCAD_ORIENT_ENTRY | ORCAD_ORIENT_TABLE [8] |
| Indexed by orientation bits: angle, mirror, offset selectors, then matrix coefficients. | |
|
inline |
Definition at line 62 of file orcad_orient.h.
Referenced by OrcadOrientOffset().
|
inline |
Compose the 3-bit orientation code from the rotation bits and mirror bit.
Definition at line 56 of file orcad_orient.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 69 of file orcad_orient.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().
|
inline |
Parts use the instance anchor as the base.
Power symbols, ports, and connectors use the box minimum.
Definition at line 77 of file orcad_orient.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(), OrcadResolveBlockPins(), ORCAD_CONVERTER::placeDefinitionVectors(), and ORCAD_CONVERTER::placeSymbolFields().
|
inlineconstexpr |
Indexed by orientation bits: angle, mirror, offset selectors, then matrix coefficients.
Definition at line 48 of file orcad_orient.h.
Referenced by OrcadInverseOrient(), OrcadOrientOffset(), OrcadTransformPoint(), ORCAD_CONVERTER::placeBitmap(), ORCAD_CONVERTER::placedPinElectricalPosition(), ORCAD_CONVERTER::placeSymbolFields(), and ORCAD_CONVERTER::synthesizeSymbol().