#include <model/board.hpp>
|
| struct | CustomPrim |
| | Custom-pad primitives in the pad frame, each already grown by half its stroke width (KiCad draws them with a round pen and fills them): a polygon or rectangle, a polyline (line, arc) or a disc (circle; pts[0] is the centre). More...
|
|
| int | footprint = -1 |
| std::string | number |
| PadType | type = PadType::Smd |
| PadShape | shape = PadShape::Rect |
| Point | pos |
| | absolute centre
|
| double | angle = 0 |
| | absolute orientation, degrees
|
| Coord | size_x = 0 |
| Coord | size_y = 0 |
| Coord | drill_x = 0 |
| Coord | drill_y = 0 |
| | 0 = no hole
|
| bool | drill_oval = false |
| Point | drill_offset |
| | copper shape offset from the hole (pad position), in the pad's own frame
|
| LayerMask | copper = 0 |
| | copper layers the pad has copper on
|
| std::vector< std::string > | layers |
| | all layer names as written (incl. mask/paste, wildcards expanded)
|
| double | roundrect_ratio = 0 |
| double | chamfer_ratio = 0 |
| std::uint8_t | chamfer_corners = 0 |
| | bit 0 TL, 1 TR, 2 BL, 3 BR
|
| Coord | trapezoid_dx = 0 |
| Coord | trapezoid_dy = 0 |
| | rect_delta
|
| std::vector< CustomPrim > | custom_prims |
| Coord | clearance = -1 |
| | local override, -1 = none
|
| Coord | die_length = 0 |
| | Pad-to-die length and delay (KiCad's (die_length) and (die_delay); the delay in attoseconds, KiCad's time unit), added to the net's length and delay by length rules (drc/length.hpp).
|
| std::int64_t | die_delay = 0 |
| Coord | mask_margin = INT64_MIN |
| | local solder-mask expansion (unset = INT64_MIN)
|
| ZoneConnect | zone_connect = ZoneConnect::Inherited |
| | (zone_connect n)
|
| Coord | thermal_gap = -1 |
| Coord | thermal_bridge_width = -1 |
| | local overrides, -1 = none
|
| double | thermal_bridge_angle = -1 |
| | degrees; -1 = KiCad's default (45 for round pads, 90 otherwise)
|
| std::string | pinfunction |
| | Schematic pin name and electrical type (KiCad 6+ boards; empty in older files).
|
| std::string | pintype |
| NetId | net = 0 |
| UnconnectedLayers | unconnected = UnconnectedLayers::KeepAll |
| | plated through-hole pads only
|
| LayerMask | zone_layers = 0 |
| | (zone_layer_connections): layers where a zone fill joins the pad, so it keeps its copper
|
| sexpr::NodeId | node = sexpr::kNoNode |
Definition at line 51 of file board.hpp.
◆ angle
| double tmk::model::Pad::angle = 0 |
absolute orientation, degrees
Definition at line 57 of file board.hpp.
◆ chamfer_corners
| std::uint8_t tmk::model::Pad::chamfer_corners = 0 |
bit 0 TL, 1 TR, 2 BL, 3 BR
Definition at line 66 of file board.hpp.
◆ chamfer_ratio
| double tmk::model::Pad::chamfer_ratio = 0 |
◆ clearance
| Coord tmk::model::Pad::clearance = -1 |
local override, -1 = none
Definition at line 76 of file board.hpp.
◆ copper
copper layers the pad has copper on
Definition at line 62 of file board.hpp.
◆ custom_prims
| std::vector<CustomPrim> tmk::model::Pad::custom_prims |
◆ die_delay
| std::int64_t tmk::model::Pad::die_delay = 0 |
◆ die_length
| Coord tmk::model::Pad::die_length = 0 |
Pad-to-die length and delay (KiCad's (die_length) and (die_delay); the delay in attoseconds, KiCad's time unit), added to the net's length and delay by length rules (drc/length.hpp).
Definition at line 79 of file board.hpp.
◆ drill_offset
| Point tmk::model::Pad::drill_offset |
copper shape offset from the hole (pad position), in the pad's own frame
Definition at line 61 of file board.hpp.
◆ drill_oval
| bool tmk::model::Pad::drill_oval = false |
◆ drill_x
| Coord tmk::model::Pad::drill_x = 0 |
◆ drill_y
| Coord tmk::model::Pad::drill_y = 0 |
◆ footprint
| int tmk::model::Pad::footprint = -1 |
◆ layers
| std::vector<std::string> tmk::model::Pad::layers |
all layer names as written (incl. mask/paste, wildcards expanded)
Definition at line 63 of file board.hpp.
◆ mask_margin
| Coord tmk::model::Pad::mask_margin = INT64_MIN |
local solder-mask expansion (unset = INT64_MIN)
Definition at line 81 of file board.hpp.
◆ net
| NetId tmk::model::Pad::net = 0 |
◆ node
◆ number
| std::string tmk::model::Pad::number |
◆ pinfunction
| std::string tmk::model::Pad::pinfunction |
Schematic pin name and electrical type (KiCad 6+ boards; empty in older files).
Read-only, used to recognise component roles (doc 15 ยง3.1).
Definition at line 87 of file board.hpp.
◆ pintype
| std::string tmk::model::Pad::pintype |
◆ pos
| Point tmk::model::Pad::pos |
absolute centre
Definition at line 56 of file board.hpp.
◆ roundrect_ratio
| double tmk::model::Pad::roundrect_ratio = 0 |
◆ shape
◆ size_x
| Coord tmk::model::Pad::size_x = 0 |
◆ size_y
| Coord tmk::model::Pad::size_y = 0 |
◆ thermal_bridge_angle
| double tmk::model::Pad::thermal_bridge_angle = -1 |
degrees; -1 = KiCad's default (45 for round pads, 90 otherwise)
Definition at line 84 of file board.hpp.
◆ thermal_bridge_width
| Coord tmk::model::Pad::thermal_bridge_width = -1 |
local overrides, -1 = none
Definition at line 83 of file board.hpp.
◆ thermal_gap
| Coord tmk::model::Pad::thermal_gap = -1 |
◆ trapezoid_dx
| Coord tmk::model::Pad::trapezoid_dx = 0 |
◆ trapezoid_dy
| Coord tmk::model::Pad::trapezoid_dy = 0 |
◆ type
◆ unconnected
plated through-hole pads only
Definition at line 89 of file board.hpp.
◆ zone_connect
(zone_connect n)
Definition at line 82 of file board.hpp.
◆ zone_layers
(zone_layer_connections): layers where a zone fill joins the pad, so it keeps its copper
Definition at line 90 of file board.hpp.
The documentation for this struct was generated from the following file: