|
TraceMaker
C++ API of the engine
|
Classes | |
| struct | StitchOptions |
| struct | StitchReturn |
| struct | StitchResult |
| struct | StyleOptions |
| struct | ConnectionStyle |
| One connection: copper of one net from one end to the next. More... | |
| struct | StyleReport |
| struct | WidenOptions |
| struct | WidenNet |
| struct | WidenResult |
Functions | |
| StitchResult | stitch_vias (const model::Board &board, const model::DesignRules &rules, const StitchOptions &opt) |
| board holds the routed copper (the run's new tracks and vias appended). | |
| StyleReport | measure_style (const model::Board &b, const std::vector< model::Track > &tracks, const std::vector< model::ArcTrack > &arcs, const std::vector< model::Via > &vias, const StyleOptions &opt={}) |
| Measures tracks, arcs and vias (any subset of a board's copper, e.g. | |
| nlohmann::json | style_json (const model::Board &b, const StyleReport &r, bool per_connection=false) |
| The style object of the route summary and of tracemaker style --json. | |
| WidenResult | widen_tracks (const model::Board &board, const model::DesignRules &rules, std::vector< model::Track > &tracks, const std::vector< model::Via > &vias, const WidenOptions &opt) |
| board is the board as the router saw it (without the new copper); tracks and vias are the run's new copper. | |
| StyleReport tmk::passes::measure_style | ( | const model::Board & | b, |
| const std::vector< model::Track > & | tracks, | ||
| const std::vector< model::ArcTrack > & | arcs, | ||
| const std::vector< model::Via > & | vias, | ||
| const StyleOptions & | opt = {} ) |
Measures tracks, arcs and vias (any subset of a board's copper, e.g.
only what a run added). b supplies the pads that end connections. The result does not depend on the order of the three lists.
| StitchResult tmk::passes::stitch_vias | ( | const model::Board & | board, |
| const model::DesignRules & | rules, | ||
| const StitchOptions & | opt ) |
board holds the routed copper (the run's new tracks and vias appended).
Zone fills on it may be stale: the pass refills them in the engine (drc/refill.hpp) and places against that.
| nlohmann::json tmk::passes::style_json | ( | const model::Board & | b, |
| const StyleReport & | r, | ||
| bool | per_connection = false ) |
The style object of the route summary and of tracemaker style --json.
per_connection adds one row per connection.
| WidenResult tmk::passes::widen_tracks | ( | const model::Board & | board, |
| const model::DesignRules & | rules, | ||
| std::vector< model::Track > & | tracks, | ||
| const std::vector< model::Via > & | vias, | ||
| const WidenOptions & | opt ) |
board is the board as the router saw it (without the new copper); tracks and vias are the run's new copper.
On return the widths in tracks are the widened ones; order and end points are unchanged.