|
| KIGFX::COLOR4D | KICAD_DIFF::ThemeColorFor (const DIFF_COLOR_THEME &aTheme, CATEGORY aCategory) |
| | Map a CATEGORY to its color in a DIFF_COLOR_THEME.
|
| |
| std::optional< BOX2I > | KICAD_DIFF::BBoxFromGeometry (const DOCUMENT_GEOMETRY &aGeometry) |
| | Compute the tight bounding box of a DOCUMENT_GEOMETRY, inflating each primitive by half its stroke so the bbox actually contains the rendered pixels.
|
| |
| LSET | KICAD_DIFF::GeometryLayerSet (const DOCUMENT_GEOMETRY &aGeometry) |
| | Return the union of every non-empty layer set carried by the geometry.
|
| |
| DOCUMENT_GEOMETRY | KICAD_DIFF::FilterGeometryByVisibleLayers (const DOCUMENT_GEOMETRY &aGeometry, const LSET &aVisibleLayers) |
| | Copy geometry primitives whose layer set intersects aVisibleLayers.
|
| |
| void | KICAD_DIFF::AppendGeometry (DOCUMENT_GEOMETRY &aDst, DOCUMENT_GEOMETRY &&aSrc) |
| | Move all primitives from aSrc into aDst.
|
| |
| bool | KICAD_DIFF::IsRoutingNetChange (const ITEM_CHANGE &aChange) |
| | Presentation predicate for PCB routing changes that should be displayed as one net-level entry/shape.
|
| |
| wxString | KICAD_DIFF::ChangeDisplayLabel (const ITEM_CHANGE &aChange) |
| | User-facing item label used consistently by scene tooltips and change tree entries.
|
| |
| DIFF_SCENE | KICAD_DIFF::BuildScene (const DOCUMENT_DIFF &aDiff, const DIFF_COLOR_THEME &aTheme) |
| | Build a DIFF_SCENE from a DOCUMENT_DIFF, populating the shape lists and computing the union bbox.
|
| |
| void | KICAD_DIFF::ExpandBBoxToGeometry (DIFF_SCENE &aScene) |
| | Grow the scene's documentBBox to also include the extent of any background geometry.
|
| |
| void | KICAD_DIFF::CollectChangeBBoxes (const DOCUMENT_DIFF &aDiff, std::map< KIID_PATH, BOX2I > &aOut) |
| | Walk a DOCUMENT_DIFF and populate a (KIID_PATH → BOX2I) map with each changed item's bbox, recursing into nested children.
|
| |
| DOCUMENT_POLYGON | KICAD_DIFF::MakeBBoxOutline (const BOX2I &aBBox, const KIGFX::COLOR4D &aColor, int aLineWidth=0) |
| | Build a DOCUMENT_POLYGON outlining a bounding box.
|
| |
| SHAPE_POLY_SET | KICAD_DIFF::PolySetFromPolygonList (const SCENE_SHAPE::PolygonList &aPolygons) |
| | Build a SHAPE_POLY_SET from a SCENE_SHAPE::PolygonList.
|
| |
| CATEGORY | KICAD_DIFF::CategoryFor (CHANGE_KIND aKind) |
| | Map a CHANGE_KIND to the visual category it belongs to.
|
| |
| const std::vector< SCENE_SHAPE > & | KICAD_DIFF::ShapesFor (const DIFF_SCENE &aScene, CATEGORY aCategory) |
| | Read-only access to a DIFF_SCENE's shape list for a given category.
|
| |
| std::optional< BOX2I > | KICAD_DIFF::HighlightedBBox (const DIFF_SCENE &aScene, const KIID_PATH &aChangeId, const std::array< bool, CATEGORY_COUNT > &aCategoryVisible) |
| | Union bbox of every visible SCENE_SHAPE whose changeId matches aChangeId.
|
| |