|
TraceMaker
C++ API of the engine
|
Classes | |
| struct | LayerDef |
| struct | Net |
| struct | Pad |
| struct | Graphic |
| struct | Text |
| struct | Footprint |
| struct | Track |
| struct | ArcTrack |
| struct | Via |
| struct | Zone |
| struct | Board |
| struct | NetlistComponent |
| struct | NetlistNode |
| struct | NetlistNet |
| struct | Netlist |
| struct | NetClass |
| struct | TuningLayer |
| A KiCad 10 tuning profile (.kicad_pro tuning_profiles, doc 05 §58): per signal layer the track width and pair gap of the class's nets there (0 = not set) and the propagation delay per millimetre (KiCad's time units; used only with time-domain tuning). More... | |
| struct | TuningViaOverride |
| A via's delay for one signal-layer and via-layer span, instead of the profile's delay per mm (layer names as the project gives them; KiCad matches them exactly, upper layer first). More... | |
| struct | TuningProfile |
| struct | BoardMinimums |
| struct | Constraint |
| One constraint inside a custom rule, e.g. (constraint clearance (min 0.2mm)). More... | |
| struct | CustomRule |
| struct | DesignRules |
| struct | StackupLayer |
| struct | DielectricGap |
| The dielectric between two adjacent copper layers, combined over every stackup layer between them. More... | |
| struct | Stackup |
| struct | Box |
| struct | Point |
Typedefs | |
| using | NetId = std::int32_t |
| 0 = no net | |
| using | LayerMask = std::uint64_t |
| bit i = copper layer i in stack order (0 = F.Cu, last = B.Cu) | |
Enumerations | |
| enum class | PadType : std::uint8_t { Smd , ThruHole , NpThruHole , Connect } |
| enum class | PadShape : std::uint8_t { Circle , Rect , Oval , Trapezoid , RoundRect , ChamferedRect , Custom } |
| enum class | ZoneConnect : std::int8_t { Inherited = -1 , None = 0 , Thermal = 1 , Full = 2 , ThtThermal = 3 } |
| How a pad joins a zone of its net (KiCad's ZONE_CONNECTION; the file stores these numbers). More... | |
| enum class | UnconnectedLayers : std::uint8_t { KeepAll , RemoveAll , RemoveExceptStartEnd , StartEndOnly } |
| A padstack's copper on layers nothing connects to (KiCad's UNCONNECTED_LAYER_MODE; doc 05 §60): kept on every layer, removed from every layer, removed except on the drill's start and end layers, or only on the start and end layers. More... | |
| enum class | ViaType : std::uint8_t { Through , Blind , Micro } |
Functions | |
| constexpr LayerMask | layer_bit (int copper_index) |
| bool | wildcard_match (std::string_view pattern, std::string_view text) |
| KiCad net-class pattern match: shell-style wildcards (* and ?), case-sensitive. | |
| bool | pattern_match (const std::string &pattern, const std::string &text) |
| Net-class pattern: wildcard match or full regular-expression match (KiCad accepts both). | |
| using tmk::model::LayerMask = std::uint64_t |
| using tmk::model::NetId = std::int32_t |
|
strong |
|
strong |
|
strong |
A padstack's copper on layers nothing connects to (KiCad's UNCONNECTED_LAYER_MODE; doc 05 §60): kept on every layer, removed from every layer, removed except on the drill's start and end layers, or only on the start and end layers.
Vias and plated through-hole pads; read from (remove_unused_layers), (keep_end_layers) and (start_end_only) in file order, as KiCad reads them.
| Enumerator | |
|---|---|
| KeepAll | |
| RemoveAll | |
| RemoveExceptStartEnd | |
| StartEndOnly | |
|
strong |
|
strong |
|
inlineconstexpr |
| bool tmk::model::pattern_match | ( | const std::string & | pattern, |
| const std::string & | text ) |
Net-class pattern: wildcard match or full regular-expression match (KiCad accepts both).
| bool tmk::model::wildcard_match | ( | std::string_view | pattern, |
| std::string_view | text ) |
KiCad net-class pattern match: shell-style wildcards (* and ?), case-sensitive.