KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PADS_PCB Namespace Reference

Functions

PAD_SHAPE PadsShapeToKiCad (const std::string &aShape)
 Map a PADS pad-stack shape code to a KiCad pad shape, shared by both PADS PCB importers.
 

Function Documentation

◆ PadsShapeToKiCad()

PAD_SHAPE PADS_PCB::PadsShapeToKiCad ( const std::string & aShape)
inline

Map a PADS pad-stack shape code to a KiCad pad shape, shared by both PADS PCB importers.

The code lives in pcbnew (PAD_SHAPE is a pcbnew type) rather than the format-neutral pads_common. The "T" finger and untrimmed variants resolve to their base shape; any unrecognized code falls back to a round pad. The caller sets the size, which depends on the code beyond just the shape.

Definition at line 42 of file pads_pcb_shapes.h.

References CIRCLE, OVAL, RECTANGLE, and ROUNDRECT.

Referenced by PCB_IO_PADS_BINARY::applyPadShape(), and PCB_IO_PADS::loadFootprints().