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

Primitive byte lengths can include or exclude the eight-byte size envelope. More...

#include <orcad_records.h>

Public Attributes

ORCAD_PRIM_KIND kind = ORCAD_PRIM_KIND::LINE
 
int x1 = 0
 
int y1 = 0
 
int x2 = 0
 
int y2 = 0
 
std::optional< ORCAD_POINTstart
 arc start point
 
std::optional< ORCAD_POINTend
 arc end point
 
std::vector< ORCAD_POINTpoints
 polygon/polyline/bezier vertices
 
std::string text
 kind == TEXT
 
int fontIdx = 0
 
std::optional< ORCAD_POINTtextBoundsStart
 
int lineStyle = 5
 0 solid, 1 dash, 2 dot, 3 dash-dot, 4 dash-dot-dot, 5 default
 
int lineWidth = 3
 Capture width enum: 0 thin, 1 medium, 2 wide, 3 default.
 
int fillStyle = 1
 0 solid, 1 none, 2 hatch pattern
 
int hatchStyle = 0
 
std::vector< uint8_t > data
 kind == IMAGE: raw embedded payload
 
std::vector< ORCAD_PRIMITIVEchildren
 kind == GROUP, translated by (x1, y1)
 

Detailed Description

Primitive byte lengths can include or exclude the eight-byte size envelope.

See orcad_dsn.ksy for each body layout.

Definition at line 274 of file orcad_records.h.

Member Data Documentation

◆ children

std::vector<ORCAD_PRIMITIVE> ORCAD_PRIMITIVE::children

kind == GROUP, translated by (x1, y1)

Definition at line 292 of file orcad_records.h.

Referenced by ORCAD_CONVERTER::addSymbolPrimitive(), ORCAD_CONVERTER::placeGraphics(), and v2PrimBody().

◆ data

std::vector<uint8_t> ORCAD_PRIMITIVE::data

kind == IMAGE: raw embedded payload

Definition at line 291 of file orcad_records.h.

Referenced by ORCAD_CONVERTER::placeBitmap(), and v2PrimBody().

◆ end

◆ fillStyle

int ORCAD_PRIMITIVE::fillStyle = 1

0 solid, 1 none, 2 hatch pattern

Definition at line 289 of file orcad_records.h.

Referenced by addOrcadSymbolHatch(), ORCAD_CONVERTER::addSymbolPrimitive(), ORCAD_CONVERTER::placeGraphics(), and v2PrimBody().

◆ fontIdx

int ORCAD_PRIMITIVE::fontIdx = 0

◆ hatchStyle

int ORCAD_PRIMITIVE::hatchStyle = 0

◆ kind

◆ lineStyle

int ORCAD_PRIMITIVE::lineStyle = 5

0 solid, 1 dash, 2 dot, 3 dash-dot, 4 dash-dot-dot, 5 default

Definition at line 287 of file orcad_records.h.

Referenced by ORCAD_CONVERTER::placeGraphics(), ORCAD_CONVERTER::placePageFrame(), and v2PrimBody().

◆ lineWidth

int ORCAD_PRIMITIVE::lineWidth = 3

Capture width enum: 0 thin, 1 medium, 2 wide, 3 default.

Definition at line 288 of file orcad_records.h.

Referenced by ORCAD_CONVERTER::placeGraphics(), ORCAD_CONVERTER::placePageFrame(), and v2PrimBody().

◆ points

◆ start

◆ text

std::string ORCAD_PRIMITIVE::text

◆ textBoundsStart

std::optional<ORCAD_POINT> ORCAD_PRIMITIVE::textBoundsStart

◆ x1

◆ x2

◆ y1

◆ y2


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