KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DIPTRACE::DT_COMPONENT Struct Reference

#include <diptrace_pcb_parser.h>

Public Attributes

wxString libraryPath
 
int positionX = 0
 DipTrace units.
 
int positionY = 0
 DipTrace units.
 
int placementQuarterTurns = 0
 Board-placement angle snapped to 90-degree turns (metadata Id-6 int3)
 
bool hasPlacementQuarterTurns = false
 
double placementAngleDeg = 0.0
 Exact board-placement angle in degrees (placement section), when available.
 
bool hasPlacementAngle = false
 
int rotation = 0
 Raw header int4; matches Pattern.Float1 in DipXML (not placement angle)
 
int fieldC = 0
 Raw header int4; matches Pattern.Float2 in DipXML.
 
int fieldD = 0
 Raw header int4; matches Pattern.Float3 in DipXML.
 
wxString patternName
 
wxString displayName
 
wxString refdes
 
wxString value
 
int layer = 0
 0 = top, 1 = bottom
 
int bboxWidth = 0
 Footprint X extent in DipTrace units (for shape scaling)
 
int bboxHeight = 0
 Footprint Y extent in DipTrace units (for shape scaling)
 
int padWidthHint = 0
 Raw bbox companion field (pad width in DipTrace units)
 
int padHeightHint = 0
 Raw bbox companion field (pad height in DipTrace units)
 
int drillWidthHint = 0
 Raw bbox companion field (drill width in DipTrace units)
 
int drillHeightHint = 0
 Raw bbox companion field (drill height in DipTrace units)
 
int fieldA = 0
 Raw header int3 field A.
 
int fieldF = 0
 Raw header int3 field F (component kind discriminator)
 
bool isStandaloneVia = false
 True for explicit standalone via components.
 
std::vector< uint8_t > flags
 
std::vector< DT_PADpads
 
std::vector< DT_MOUNT_HOLEholes
 
std::vector< DT_FP_SHAPEshapes
 Graphics in normalized coordinates.
 
size_t boundaryOffset = 0
 Boundary marker offset for this component record.
 
size_t stringStartOffset = 0
 Parsed start offset of library-path string.
 
size_t regionEndOffset = 0
 Component region end offset (next boundary / upper bound)
 
size_t headerEndOffset = 0
 Byte offset after parsed component header strings.
 
size_t padRegionEnd = 0
 Byte offset after last pad record (for shape finding)
 
int refdesYOffset = 0
 Refdes text Y offset from component origin (DipTrace units)
 
int valueYOffset = 0
 Value text Y offset from component origin (DipTrace units)
 
bool refdesVisible = true
 False when text visibility flag is -1.
 
bool valueVisible = true
 (Currently same flag as refdesVisible)
 
bool hasTailData = false
 True if the 37-byte tail was successfully parsed.
 

Detailed Description

Definition at line 151 of file diptrace_pcb_parser.h.

Member Data Documentation

◆ bboxHeight

int DIPTRACE::DT_COMPONENT::bboxHeight = 0

Footprint Y extent in DipTrace units (for shape scaling)

Definition at line 169 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::CreateFootprint(), DumpComponentHeader(), DIPTRACE::PCB_PARSER::FindShapesInRegion(), and DIPTRACE::PCB_PARSER::ParseSingleComponent().

◆ bboxWidth

int DIPTRACE::DT_COMPONENT::bboxWidth = 0

◆ boundaryOffset

size_t DIPTRACE::DT_COMPONENT::boundaryOffset = 0

Boundary marker offset for this component record.

Definition at line 181 of file diptrace_pcb_parser.h.

Referenced by DumpComponentBinaryScan(), and DumpComponentHeader().

◆ displayName

wxString DIPTRACE::DT_COMPONENT::displayName

◆ drillHeightHint

int DIPTRACE::DT_COMPONENT::drillHeightHint = 0

Raw bbox companion field (drill height in DipTrace units)

Definition at line 173 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::ParseSingleComponent().

◆ drillWidthHint

int DIPTRACE::DT_COMPONENT::drillWidthHint = 0

Raw bbox companion field (drill width in DipTrace units)

Definition at line 172 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::ParseSingleComponent().

◆ fieldA

int DIPTRACE::DT_COMPONENT::fieldA = 0

Raw header int3 field A.

Definition at line 174 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::ParseSingleComponent().

◆ fieldC

int DIPTRACE::DT_COMPONENT::fieldC = 0

Raw header int4; matches Pattern.Float2 in DipXML.

Definition at line 161 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::ParseSingleComponent().

◆ fieldD

int DIPTRACE::DT_COMPONENT::fieldD = 0

Raw header int4; matches Pattern.Float3 in DipXML.

Definition at line 162 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::ParseSingleComponent().

◆ fieldF

int DIPTRACE::DT_COMPONENT::fieldF = 0

Raw header int3 field F (component kind discriminator)

Definition at line 175 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::ParseSingleComponent().

◆ flags

std::vector<uint8_t> DIPTRACE::DT_COMPONENT::flags

◆ hasPlacementAngle

bool DIPTRACE::DT_COMPONENT::hasPlacementAngle = false

Definition at line 159 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::CreateFootprint().

◆ hasPlacementQuarterTurns

bool DIPTRACE::DT_COMPONENT::hasPlacementQuarterTurns = false

◆ hasTailData

bool DIPTRACE::DT_COMPONENT::hasTailData = false

True if the 37-byte tail was successfully parsed.

Definition at line 192 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::CreateFootprint(), and DIPTRACE::PCB_PARSER::ParseComponentTail().

◆ headerEndOffset

size_t DIPTRACE::DT_COMPONENT::headerEndOffset = 0

Byte offset after parsed component header strings.

Definition at line 184 of file diptrace_pcb_parser.h.

Referenced by DumpComponentBinaryScan(), DumpComponentHeader(), DIPTRACE::PCB_PARSER::FindPadsInRegion(), and DIPTRACE::PCB_PARSER::ParseSingleComponent().

◆ holes

std::vector<DT_MOUNT_HOLE> DIPTRACE::DT_COMPONENT::holes

◆ isStandaloneVia

bool DIPTRACE::DT_COMPONENT::isStandaloneVia = false

True for explicit standalone via components.

Definition at line 176 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::CreateFootprint(), and DIPTRACE::PCB_PARSER::ParseSingleComponent().

◆ layer

◆ libraryPath

wxString DIPTRACE::DT_COMPONENT::libraryPath

◆ padHeightHint

int DIPTRACE::DT_COMPONENT::padHeightHint = 0

Raw bbox companion field (pad height in DipTrace units)

Definition at line 171 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::ParseSingleComponent().

◆ padRegionEnd

◆ pads

◆ padWidthHint

int DIPTRACE::DT_COMPONENT::padWidthHint = 0

Raw bbox companion field (pad width in DipTrace units)

Definition at line 170 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::ParseSingleComponent().

◆ patternName

◆ placementAngleDeg

double DIPTRACE::DT_COMPONENT::placementAngleDeg = 0.0

Exact board-placement angle in degrees (placement section), when available.

Definition at line 158 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::CreateFootprint().

◆ placementQuarterTurns

int DIPTRACE::DT_COMPONENT::placementQuarterTurns = 0

Board-placement angle snapped to 90-degree turns (metadata Id-6 int3)

Definition at line 156 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::CreateFootprint(), DumpComponentHeader(), and DIPTRACE::PCB_PARSER::ParseSingleComponent().

◆ positionX

int DIPTRACE::DT_COMPONENT::positionX = 0

◆ positionY

int DIPTRACE::DT_COMPONENT::positionY = 0

◆ refdes

◆ refdesVisible

bool DIPTRACE::DT_COMPONENT::refdesVisible = true

False when text visibility flag is -1.

Definition at line 190 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::CreateFootprint(), and DIPTRACE::PCB_PARSER::ParseComponentTail().

◆ refdesYOffset

int DIPTRACE::DT_COMPONENT::refdesYOffset = 0

Refdes text Y offset from component origin (DipTrace units)

Definition at line 188 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::CreateFootprint(), and DIPTRACE::PCB_PARSER::ParseComponentTail().

◆ regionEndOffset

size_t DIPTRACE::DT_COMPONENT::regionEndOffset = 0

Component region end offset (next boundary / upper bound)

Definition at line 183 of file diptrace_pcb_parser.h.

Referenced by DumpComponentBinaryScan(), and DumpComponentHeader().

◆ rotation

int DIPTRACE::DT_COMPONENT::rotation = 0

Raw header int4; matches Pattern.Float1 in DipXML (not placement angle)

Definition at line 160 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::CreateFootprint(), DumpComponentHeader(), and DIPTRACE::PCB_PARSER::ParseSingleComponent().

◆ shapes

◆ stringStartOffset

size_t DIPTRACE::DT_COMPONENT::stringStartOffset = 0

Parsed start offset of library-path string.

Definition at line 182 of file diptrace_pcb_parser.h.

Referenced by DumpComponentBinaryScan(), and DumpComponentHeader().

◆ value

wxString DIPTRACE::DT_COMPONENT::value

◆ valueVisible

bool DIPTRACE::DT_COMPONENT::valueVisible = true

(Currently same flag as refdesVisible)

Definition at line 191 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::CreateFootprint(), and DIPTRACE::PCB_PARSER::ParseComponentTail().

◆ valueYOffset

int DIPTRACE::DT_COMPONENT::valueYOffset = 0

Value text Y offset from component origin (DipTrace units)

Definition at line 189 of file diptrace_pcb_parser.h.

Referenced by DIPTRACE::PCB_PARSER::CreateFootprint(), and DIPTRACE::PCB_PARSER::ParseComponentTail().


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