KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ORCAD_GRAPHIC_INST Struct Reference

Shared body of Port / Global / OffPageConnector / TitleBlock / ERCObject and the Graphic*Inst shapes (structure types 23, 37, 38, 55..62, 65, 77, 88, 89). More...

#include <orcad_records.h>

Public Attributes

int typeId = 0
 ORCAD_ST value.
 
std::string name
 cache symbol name
 
uint32_t dbId = 0
 
int x = 0
 
int y = 0
 
ORCAD_BBOX bbox
 
int color = 0
 
std::map< std::string, std::string > props
 
std::vector< ORCAD_DISPLAY_PROPdisplayProps
 
std::unique_ptr< ORCAD_SYMBOL_DEFnested
 SthInPages0 body, else nullptr.
 
int rotation = 0
 0..3 quarter turns
 
bool mirror = false
 
std::string logicalName
 ports: resolved net/port name
 

Detailed Description

Shared body of Port / Global / OffPageConnector / TitleBlock / ERCObject and the Graphic*Inst shapes (structure types 23, 37, 38, 55..62, 65, 77, 88, 89).

Body layout: u32 nameIdx (ports: logical net/port name string index), u32 source library string index, lzt name, u32 dbId, i16 y, x, y2, x2, x1, y1 (NOTE the interleaved order; (x, y) anchor, (x1, y1, x2, y2) bounding box), u8 color, u8 orientation (bits 0..1 = rotation, bit 2 = mirror), 2 unknown bytes, u16 display-prop count (framed), u8 flag; when flag == 0x02 one nested structure follows (normally an SthInPages0 symbol body carrying the drawable primitives).

Trailers by type: Port +9 bytes; TitleBlock +12 bytes; ERCObject +3 lzt strings; on pages each Global and each OffPageConnector list entry is followed by 5 bytes.

The outer bbox of free Graphic*Inst records is anchor-relative junk; only the nested primitives carry real page coordinates. For Global/OffPage/Port symbols the orientation transform base is the placed bbox min corner, NOT the anchor.

Definition at line 317 of file orcad_records.h.

Member Data Documentation

◆ bbox

◆ color

◆ dbId

uint32_t ORCAD_GRAPHIC_INST::dbId = 0

Definition at line 321 of file orcad_records.h.

Referenced by OrcadReadGraphicInst(), and v2GraphicInst().

◆ displayProps

std::vector<ORCAD_DISPLAY_PROP> ORCAD_GRAPHIC_INST::displayProps

Definition at line 327 of file orcad_records.h.

Referenced by OrcadReadGraphicInst(), and v2GraphicInst().

◆ logicalName

std::string ORCAD_GRAPHIC_INST::logicalName

◆ mirror

◆ name

◆ nested

std::unique_ptr<ORCAD_SYMBOL_DEF> ORCAD_GRAPHIC_INST::nested

◆ props

std::map<std::string, std::string> ORCAD_GRAPHIC_INST::props

◆ rotation

◆ typeId

int ORCAD_GRAPHIC_INST::typeId = 0

ORCAD_ST value.

Definition at line 319 of file orcad_records.h.

Referenced by OrcadReadGraphicInst(), and v2GraphicInst().

◆ x

int ORCAD_GRAPHIC_INST::x = 0

◆ y

int ORCAD_GRAPHIC_INST::y = 0

The documentation for this struct was generated from the following file: