Skip to main content
← Back to kicad-monkey Rust Docs kicad-monkey Rust Crate API Reference

Module board_plotter_ir

Module board_plotter_ir 

Source
Expand description

Board-level plotter IR producer over selected PCB families.

Mirrors the Python pcb_to_ir gr_*/segment/track_arc/via/zone record subset: layerless graphic-state operations, per-category record ordering, PCB stroke widths without the footprint pen-width clamps, dash/dot decomposition parity, reversed track-arc endpoints, via aperture/ drill/mask-hint operation sequences, zone fill rings, and project sidecar net-class extras.

Structs§

BoardBoundsLimits
Ignored ceilings, defaulting to usize::MAX: KiCad reads and plots boards and footprints without them (#612). Request hosts still pass caller values.
BoardDimensionRecord
One (dimension ...) record in Python text-before-shape order.
BoardFootprintBlock
One grouping marker surrounding a pad flash or its independently grouped drill operation.
BoardFootprintBlockAttributes
Closed string-valued block attributes. Python’s start_block helper stringifies every retained value and drops empty values.
BoardFootprintChildAttributes
Closed, typed child attributes serialized under extra_attrs.
BoardFootprintChildMetadata
Canonical ownership metadata attached to one embedded-footprint child operation by the established Python producer.
BoardFootprintPlacement
Board-local placement carried separately from footprint-local operations.
BoardFootprintRecord
One PCB-embedded footprint record in canonical child-family order.
BoardGraphicRecord
One board-level graphic record; the carrier layer travels on the record.
BoardImportFacts
Source-bound import observations. This is a Rust operation result, not a plot document or saved carrier. Ordinary plots keep their complete output.
BoardNetClassAssignments
Exact net-name to net-class assignments from the project sidecar.
BoardNetClassExtras
Python _with_net_class_extras: optional exact-match sidecar classes.
BoardPadFlashFact
An affected authored pad’s actual plot-block admission, without its drawing. None is missing, not an inferred empty copper set. The separate suppression observation lets a consumer retain its existing qualified NPTH exception.
BoardPlotBuildProfile
Opt-in successful-build timings for board Plotter-IR production.
BoardPlotDocument
Typed facts needed to serialize the promoted board plotter subset.
BoardPlotFacts
Source-bound board plot facts used by downstream presentation.
BoardPlotFactsBuildProfile
BoardPlotLimits
Ignored ceilings, defaulting to usize::MAX: KiCad reads and plots boards and footprints without them (#612). Request hosts still pass caller values.
BoardPlotSourceArtifact
One atomic source-model document/facts pair. Construction is core-owned so facts from a different board cannot be paired with the document.
BoardRenderFacts
Complete source-layer facts required by truthful presentation filtering.
BoardSegmentRecord
One (segment ...) track record; Python emits exactly one thick segment.
BoardTableRecord
One (table ...) record with its source cell count and participating layers.
BoardTextBoxRecord
One gr_text_box record with its border extra.
BoardTextOperation
One Text operation payload. Ordinary gr_text remains black; the text-box source model can carry an RGBA font color.
BoardTextRecord
One gr_text record; Python board text never hides, so records carry a constant hide: false extra at serialization time.
BoardTextRenderCache
Attached authored or native-generated render-cache facts.
BoardTextVariables
Case-expanded ${NAME} variables mirroring Python kicad_text_variables.normalize_text_variables.
BoardTrackArcRecord
One (arc ...) routing record; the Python serializer reverses the file-order endpoints so the arc plots end-to-start.
BoardViaFabrication
Front/back optional fabrication metadata mirrored from the via carrier.
BoardViaFlashFact
An affected via’s resolved aperture layers; empty is an actual drill-only result.
BoardViaOperation
One via operation; flashes and drills share the circular payload.
BoardViaRecord
One (via ...) record with its raw-mm extras and operation sequence.
BoardZoneRecord
One (zone ...) record bundling every filled_polygon fill ring.

Enums§

BoardDimensionOperation
One board dimension operation. Stroke-font text and dimension geometry use shared layered geometry operations; faced text retains the board cache payload used by ordinary board text.
BoardFootprintOperation
One operation in an embedded board-footprint record. Geometry and text children retain source ownership metadata; pad payloads are bracketed by explicit block markers exactly as in the Python plotter IR.
BoardGraphicRecordKind
Board graphic record kinds promoted in the first board slice.
BoardPlotRecord
One record of the promoted board plotter subset in Python emission order.
BoardTableOperation
One operation within a table record. Grid/border segments precede cached cell text, matching the established Python producer.
BoardTextBoxOperation
One gr_text_box operation in Python emission order: the optional border rect precedes the optional text payload.
BoardTextHAlign
Python KiCadHorizAlign subset emitted for board text.
BoardTextRenderCacheCoordinateSpace
Coordinate space retained by the typed cache payload.
BoardTextRenderCacheSource
Provenance serialized with an attached board text render cache.
BoardTextVAlign
Python KiCadVertAlign subset emitted for board text.
BoardViaOperationKind
The role of one operation inside a via record’s fixed sequence.
BoardViaType
Python via types serialized in the via_type extra.

Functions§

board_import_facts_from_view
Resolve exactly the facts consumed by canonical board import from an already parsed, current Source view. No reparse, standalone wrapper or whole-board plot is constructed. Existing bounds apply to input and retained fact work; operation budgets do not charge omitted route/zone/table/dimension drawings. Required syntax/selected-family errors and consumed text/flash errors remain strict. Unconsumed families must be interpreted by their actual downstream reader; this operation does not qualify their drawing capability.
board_outline_page_bounds
The board outline’s extent in nanometres, [min_x, min_y, max_x, max_y]: the centrelines of the board’s and its footprints’ Edge.Cuts lines, arcs, circles, rectangles and polygons and the board’s curves, stroke excluded. None when they form no closed outline: no Edge.Cuts shape, or a line, arc or curve end that meets no other end within KiCad’s chaining epsilon. The board SVG’s page is this box, else the board’s drawn bounds.
board_plot_artifact_with_sidecars
Build one atomic board Plotter-IR/source-layer artifact with project sidecars. This parses the source once through the existing source-bound facts path.
board_plot_artifact_with_text_cache_sidecar
Build one atomic board artifact with optional deterministic text-cache resources. This is the fit-capable direct-render producer; the document and complete layer facts are derived from the same parsed board view.
board_plot_document
Read supported board families into plotter records without sidecar extras.
board_plot_document_with_net_classes
Read supported board graphics, tracks, vias, and zones into plotter records, attaching project-sidecar net-class extras by exact net name.
board_plot_document_with_primary_errors
Localize primary drawing capability failures without emitting error wire fields. Scalar fields, other drawings and pads remain in the ordinary plot document.
board_plot_document_with_sidecars
Read the supported board families into plotter records with both project sidecar inputs: net-class extras and ${NAME} text variables (which the board (property ...) entries overlay key-by-key).
board_plot_document_with_text_cache_sidecar
Read the supported board families with project sidecars plus optional, caller-supplied deterministic outline-font/cache-generation resources.
board_plot_facts_with_sidecars
Build one immutable, source-bound board fact set with project sidecars.
board_plot_facts_with_sidecars_profiled