|
KiCad PCB EDA Suite
|
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. | |
|
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().