|
KiCad PCB EDA Suite
|
A symbol definition from the design Cache (LibraryPart / GlobalSymbol / PortSymbol / OffPageSymbol / TitleBlockSymbol / ERCSymbol / ...), or the nested SthInPages0 body of a page graphic. More...
#include <orcad_records.h>
Public Attributes | |
| int | typeId = 0 |
| ORCAD_ST value. | |
| std::string | name |
| cache name, e.g. "C.Normal" | |
| std::string | sourceLib |
| int | color = 0 |
| std::vector< ORCAD_PRIMITIVE > | primitives |
| std::vector< ORCAD_SYMBOL_PIN > | pins |
| std::optional< ORCAD_BBOX > | bbox |
| symbol-space body box | |
| std::map< std::string, std::string > | props |
| std::vector< ORCAD_SYMBOL_DEF > | variants |
| Stale same-name cache entries (older library versions), in cache order, EXCLUDING this entry itself. | |
| int | generalFlags = -1 |
| LibraryPart GeneralProperties flags (-1 = absent); bit0 = pin numbers visible, bit2 = pin names hidden. | |
| bool | synthesized = false |
| placeholder built from T0x10 data | |
A symbol definition from the design Cache (LibraryPart / GlobalSymbol / PortSymbol / OffPageSymbol / TitleBlockSymbol / ERCSymbol / ...), or the nested SthInPages0 body of a page graphic.
Body layout: lzt name, lzt sourceLib, u32 color, u16 primitive count (with an occasional 8 zero bytes between primitives, detected by the next 2 bytes not forming a valid doubled primitive type pair), then the bounding box stored as the LAST 8 bytes before the next prefix stop offset (the gap is 8, or 16 with 8 unknown/legacy-trailer bytes first) as 4 x i16 (x1, y1, x2, y2), accepted only when x1 <= x2, y1 <= y2 and each span <= 4000 DBU. Library symbols then carry u16 pin count (pin structures) and u16 property count (framed, skipped); SthInPages0 bodies have no pin/property lists.
Definition at line 417 of file orcad_records.h.
| std::optional<ORCAD_BBOX> ORCAD_SYMBOL_DEF::bbox |
symbol-space body box
Definition at line 425 of file orcad_records.h.
Referenced by ORCAD_CONVERTER::graphicPinPos(), ORCAD_CONVERTER::kicadSymbolFor(), OrcadReadDrawnInstance(), OrcadReadSymbolDef(), ORCAD_CONVERTER::pickVariant(), ORCAD_CONVERTER::placeDefinitionImages(), ORCAD_CONVERTER::placeDefinitionVectors(), ORCAD_CONVERTER::placeInstance(), ORCAD_CONVERTER::placePowerSymbol(), ORCAD_CONVERTER::placeSymbolFields(), ORCAD_CONVERTER::synthesizeSymbol(), v2LibSymbolDef(), and v2SymbolDef().
| int ORCAD_SYMBOL_DEF::color = 0 |
Definition at line 422 of file orcad_records.h.
Referenced by ORCAD_CONVERTER::kicadSymbolFor(), OrcadReadSymbolDef(), ORCAD_CONVERTER::placeDefinitionVectors(), v2LibSymbolDef(), and v2SymbolDef().
| int ORCAD_SYMBOL_DEF::generalFlags = -1 |
LibraryPart GeneralProperties flags (-1 = absent); bit0 = pin numbers visible, bit2 = pin names hidden.
Definition at line 439 of file orcad_records.h.
Referenced by ORCAD_CONVERTER::kicadSymbolFor(), OrcadReadSymbolDef(), and v2PartCell().
| std::string ORCAD_SYMBOL_DEF::name |
cache name, e.g. "C.Normal"
Definition at line 420 of file orcad_records.h.
Referenced by ORCAD_CONVERTER::libForInstance(), OrcadParseCache(), OrcadParseOlbPackageStreamV2(), OrcadParseOlbSymbolStreamV2(), OrcadReadSymbolDef(), ORCAD_CONVERTER::powerLibFor(), ORCAD_CONVERTER::synthesizeSymbol(), v2LibSymbolDef(), and v2SymbolDef().
| std::vector<ORCAD_SYMBOL_PIN> ORCAD_SYMBOL_DEF::pins |
Definition at line 424 of file orcad_records.h.
Referenced by ORCAD_CONVERTER::graphicPinPos(), ORCAD_CONVERTER::kicadSymbolFor(), OrcadReadDrawnInstance(), OrcadReadSymbolDef(), ORCAD_CONVERTER::pickVariant(), ORCAD_CONVERTER::placeInstance(), ORCAD_CONVERTER::placeSymbolFields(), ORCAD_CONVERTER::synthesizeSymbol(), and v2LibSymbolDef().
| std::vector<ORCAD_PRIMITIVE> ORCAD_SYMBOL_DEF::primitives |
Definition at line 423 of file orcad_records.h.
Referenced by ORCAD_CONVERTER::kicadSymbolFor(), OrcadReadSymbolDef(), ORCAD_CONVERTER::pageExtentDbu(), ORCAD_CONVERTER::placeDefinitionImages(), ORCAD_CONVERTER::placeDefinitionVectors(), ORCAD_CONVERTER::placeGraphics(), ORCAD_CONVERTER::synthesizeSymbol(), v2LibSymbolDef(), and v2SymbolDef().
| std::map<std::string, std::string> ORCAD_SYMBOL_DEF::props |
Definition at line 426 of file orcad_records.h.
Referenced by OrcadReadSymbolDef().
| std::string ORCAD_SYMBOL_DEF::sourceLib |
Definition at line 421 of file orcad_records.h.
Referenced by OrcadReadSymbolDef(), v2LibSymbolDef(), and v2SymbolDef().
| bool ORCAD_SYMBOL_DEF::synthesized = false |
placeholder built from T0x10 data
Definition at line 441 of file orcad_records.h.
Referenced by ORCAD_CONVERTER::placeInstance(), and ORCAD_CONVERTER::synthesizeSymbol().
| int ORCAD_SYMBOL_DEF::typeId = 0 |
ORCAD_ST value.
Definition at line 419 of file orcad_records.h.
Referenced by ORCAD_CONVERTER::libForInstance(), OrcadReadSymbolDef(), ORCAD_CONVERTER::powerLibFor(), ORCAD_CONVERTER::synthesizeSymbol(), v2LibSymbolDef(), and v2SymbolDef().
| std::vector<ORCAD_SYMBOL_DEF> ORCAD_SYMBOL_DEF::variants |
Stale same-name cache entries (older library versions), in cache order, EXCLUDING this entry itself.
Variant index 0 designates this (the first seen, default) definition; index i >= 1 designates variants[i - 1]. Per-instance selection matches transformed pin hot points against the instance's T0x10 absolute positions; first entry wins by default.
Definition at line 435 of file orcad_records.h.
Referenced by ORCAD_CONVERTER::pickVariant().