|
KiCad PCB EDA Suite
|
A pad's resolved artwork on one fabrication layer. More...
#include <fab_pad_geometry.h>
Public Member Functions | |
| bool | IsEmpty () const |
| const PAD & | Pad () const |
| VECTOR2I | Margin () const |
| int | CornerRadius () const |
| const SHAPE_POLY_SET & | Contour () const |
| SHAPE_POLY_SET | Polygon () const |
Private Member Functions | |
| PAD_LAYER_GEOMETRY (const PAD &aPad, PCB_LAYER_ID aLayer) | |
Private Attributes | |
| std::unique_ptr< PAD > | m_pad |
| SHAPE_POLY_SET | m_contour |
| PCB_LAYER_ID | m_layer |
| VECTOR2I | m_margin |
| bool | m_empty = false |
| int | m_maxError = 0 |
| int | m_cornerRadius = 0 |
Friends | |
| 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. | |
A pad's resolved artwork on one fabrication layer.
Definition at line 29 of file fab_pad_geometry.h.
|
private |
Definition at line 25 of file fab_pad_geometry.cpp.
References m_layer, and m_pad.
Referenced by ResolvePadLayer.
|
inline |
Definition at line 36 of file fab_pad_geometry.h.
References m_contour.
Referenced by PCB_IO_IPC2581::addShape().
|
inline |
Definition at line 35 of file fab_pad_geometry.h.
References m_cornerRadius.
Referenced by FEATURES_MANAGER::AddPadShape(), and PCB_IO_IPC2581::addShape().
|
inline |
Definition at line 32 of file fab_pad_geometry.h.
References m_empty.
Referenced by FEATURES_MANAGER::AddPadShape(), and BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 34 of file fab_pad_geometry.h.
References m_margin.
Referenced by FEATURES_MANAGER::AddPadShape(), and BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 33 of file fab_pad_geometry.h.
References m_pad.
Referenced by FEATURES_MANAGER::AddPadShape(), and PCB_IO_IPC2581::addShape().
| SHAPE_POLY_SET PAD_LAYER_GEOMETRY::Polygon | ( | ) | const |
Definition at line 32 of file fab_pad_geometry.cpp.
References ERROR_INSIDE, m_empty, m_layer, m_maxError, and m_pad.
Referenced by FEATURES_MANAGER::AddPadShape(), and BOOST_AUTO_TEST_CASE().
|
friend |
Artwork on one layer as plotted by PlotStandardLayer; keep the plotter independent as the parity oracle.
Definition at line 58 of file fab_pad_geometry.cpp.
References std::abs(), PAD::AddPrimitivePoly(), ANGLE_0, SHAPE_POLY_SET::Append(), CHAMFERED_RECT, CIRCLE, clearance, CUSTOM, PAD::DeletePrimitivesList(), dummy, ERROR_INSIDE, PAD::GetDelta(), PAD::GetRoundRectCornerRadius(), PAD::GetRoundRectRadiusRatio(), PAD::GetShape(), PAD::GetSize(), SHAPE_POLY_SET::InflateWithLinkedHoles(), KiROUND(), PAD::MergePrimitivesAsPolygon(), SHAPE_POLY_SET::NewOutline(), OVAL, PAD_LAYER_GEOMETRY(), RECTANGLE, ResolvePadMargin(), result, ROUND_ALL_CORNERS, ROUNDRECT, PAD::SetAnchorPadShape(), PAD::SetRoundRectCornerRadius(), PAD::SetShape(), PAD::SetSize(), TRAPEZOID, VECTOR2< T >::x, and VECTOR2< T >::y.
|
private |
Definition at line 44 of file fab_pad_geometry.h.
Referenced by Contour().
|
private |
Definition at line 49 of file fab_pad_geometry.h.
Referenced by CornerRadius().
|
private |
Definition at line 47 of file fab_pad_geometry.h.
|
private |
Definition at line 45 of file fab_pad_geometry.h.
Referenced by PAD_LAYER_GEOMETRY(), and Polygon().
|
private |
Definition at line 46 of file fab_pad_geometry.h.
Referenced by Margin().
|
private |
Definition at line 48 of file fab_pad_geometry.h.
Referenced by Polygon().
|
private |
Definition at line 43 of file fab_pad_geometry.h.
Referenced by Pad(), PAD_LAYER_GEOMETRY(), and Polygon().