KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PAD_LAYER_GEOMETRY Class Reference

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.
 

Detailed Description

A pad's resolved artwork on one fabrication layer.

Definition at line 29 of file fab_pad_geometry.h.

Constructor & Destructor Documentation

◆ PAD_LAYER_GEOMETRY()

PAD_LAYER_GEOMETRY::PAD_LAYER_GEOMETRY ( const PAD & aPad,
PCB_LAYER_ID aLayer )
private

Definition at line 25 of file fab_pad_geometry.cpp.

References m_layer, and m_pad.

Referenced by ResolvePadLayer.

Member Function Documentation

◆ Contour()

const SHAPE_POLY_SET & PAD_LAYER_GEOMETRY::Contour ( ) const
inline

Definition at line 36 of file fab_pad_geometry.h.

References m_contour.

Referenced by PCB_IO_IPC2581::addShape().

◆ CornerRadius()

int PAD_LAYER_GEOMETRY::CornerRadius ( ) const
inline

Definition at line 35 of file fab_pad_geometry.h.

References m_cornerRadius.

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

◆ IsEmpty()

bool PAD_LAYER_GEOMETRY::IsEmpty ( ) const
inline

Definition at line 32 of file fab_pad_geometry.h.

References m_empty.

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

◆ Margin()

VECTOR2I PAD_LAYER_GEOMETRY::Margin ( ) const
inline

Definition at line 34 of file fab_pad_geometry.h.

References m_margin.

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

◆ Pad()

const PAD & PAD_LAYER_GEOMETRY::Pad ( ) const
inline

Definition at line 33 of file fab_pad_geometry.h.

References m_pad.

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

◆ Polygon()

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().

Friends And Related Symbol Documentation

◆ ResolvePadLayer

Member Data Documentation

◆ m_contour

SHAPE_POLY_SET PAD_LAYER_GEOMETRY::m_contour
private

Definition at line 44 of file fab_pad_geometry.h.

Referenced by Contour().

◆ m_cornerRadius

int PAD_LAYER_GEOMETRY::m_cornerRadius = 0
private

Definition at line 49 of file fab_pad_geometry.h.

Referenced by CornerRadius().

◆ m_empty

bool PAD_LAYER_GEOMETRY::m_empty = false
private

Definition at line 47 of file fab_pad_geometry.h.

Referenced by IsEmpty(), and Polygon().

◆ m_layer

PCB_LAYER_ID PAD_LAYER_GEOMETRY::m_layer
private

Definition at line 45 of file fab_pad_geometry.h.

Referenced by PAD_LAYER_GEOMETRY(), and Polygon().

◆ m_margin

VECTOR2I PAD_LAYER_GEOMETRY::m_margin
private

Definition at line 46 of file fab_pad_geometry.h.

Referenced by Margin().

◆ m_maxError

int PAD_LAYER_GEOMETRY::m_maxError = 0
private

Definition at line 48 of file fab_pad_geometry.h.

Referenced by Polygon().

◆ m_pad

std::unique_ptr<PAD> PAD_LAYER_GEOMETRY::m_pad
private

Definition at line 43 of file fab_pad_geometry.h.

Referenced by Pad(), PAD_LAYER_GEOMETRY(), and Polygon().


The documentation for this class was generated from the following files: