36 double total()
const {
return static_cast<double>(
track) +
static_cast<double>(
via) +
static_cast<double>(
die); }
The board model (design doc 02 §3): every object TraceMaker reads from a .kicad_pcb,...
NetLength net_length(const model::Board &b, const model::DesignRules &rules, const ViaHeights &vh, const LengthItems &items, const model::TuningProfile *profile)
Length and delay of items, all of one net.
ViaHeights via_heights(const model::Board &b, const model::DesignRules &rules)
std::int64_t Coord
Engine coordinate: signed 64-bit nanometres.
Design rules as KiCad defines them (design doc 08 §3–4): board minimums and net classes from the ....
The items of one net that a length or skew rule matched: indices into the board's pads,...
std::vector< int > tracks
KiCad's LENGTH_DELAY_STATS. Lengths in nm, delays in attoseconds.
double total_delay() const
std::int64_t track
tracks and arcs, joined into chains and clipped in vias and pads
Coord via
via heights (0 when the project does not use heights)
Coord die
pad-to-die lengths
The length a via adds to its net in KiCad's length calculation (KiCad 10, BOARD_STACKUP::GetLayerDist...
std::vector< Coord > from
std::vector< Coord > to
per copper layer: where a via starting / ending on it begins / ends, nm from the top
Coord between(int a, int b) const
copper indices, either order; 0 for a == b