KiCad PCB EDA Suite
Loading...
Searching...
No Matches
fab_pad_geometry.h File Reference
#include <pad.h>
#include <geometry/shape_poly_set.h>
#include <memory>

Go to the source code of this file.

Classes

class  PAD_LAYER_GEOMETRY
 A pad's resolved artwork on one fabrication layer. More...
 

Functions

VECTOR2I ResolvePadMargin (const PAD &aPad, PCB_LAYER_ID aLayer)
 Per-side mask or paste margin as PlotStandardLayer applies it.
 
PAD_LAYER_GEOMETRY ResolvePadLayer (const PAD &aPad, PCB_LAYER_ID aLayer, int aMaxError)
 Artwork on one layer as plotted by PlotStandardLayer; keep the plotter independent as the parity oracle.
 

Function Documentation

◆ ResolvePadLayer()

PAD_LAYER_GEOMETRY ResolvePadLayer ( const PAD & aPad,
PCB_LAYER_ID aLayer,
int aMaxError )

Artwork on one layer as plotted by PlotStandardLayer; keep the plotter independent as the parity oracle.

Definition at line 40 of file fab_pad_geometry.cpp.

Referenced by FEATURES_MANAGER::AddPadShape(), PCB_IO_IPC2581::addShape(), and BOOST_AUTO_TEST_CASE().

◆ ResolvePadMargin()

VECTOR2I ResolvePadMargin ( const PAD & aPad,
PCB_LAYER_ID aLayer )

Per-side mask or paste margin as PlotStandardLayer applies it.

Definition at line 43 of file fab_pad_geometry.cpp.

References B_Mask, B_Paste, F_Mask, F_Paste, PAD::GetSolderMaskExpansion(), and PAD::GetSolderPasteMargin().

Referenced by PCB_IO_IPC2581::addShape(), and PAD_LAYER_GEOMETRY::ResolvePadLayer.