|
KiCad PCB EDA Suite
|
A class to define an aperture macros based on a free polygon, i.e. More...
#include <gbr_plotter_apertures.h>
Public Member Functions | |
| APER_MACRO_FREEPOLY (const std::vector< VECTOR2I > &aPolygon, int aId) | |
| bool | IsSamePoly (const std::vector< VECTOR2I > &aPolygon) const |
| void | Format (FILE *aOutput, double aIu2GbrMacroUnit) |
| print the aperture macro definition to aOutput | |
| int | CornersCount () const |
Public Attributes | |
| std::vector< VECTOR2I > | m_Corners |
| int | m_Id |
A class to define an aperture macros based on a free polygon, i.e.
using a primitive 4 to describe a free polygon with a rotation. the aperture macro has only one parameter: rotation and is defined on the fly for aGerber file
Definition at line 152 of file gbr_plotter_apertures.h.
|
inline |
Definition at line 155 of file gbr_plotter_apertures.h.
|
inline |
Definition at line 176 of file gbr_plotter_apertures.h.
References m_Corners.
| void APER_MACRO_FREEPOLY::Format | ( | FILE * | aOutput, |
| double | aIu2GbrMacroUnit ) |
print the aperture macro definition to aOutput
| aOutput | is the FILE to write |
| aIu2GbrMacroUnit | is the scaling factor from coordinates value to the Gerber file macros units (always mm or inches) |
Definition at line 1853 of file GERBER_plotter.cpp.
References AM_FREEPOLY_BASENAME, m_Corners, and m_Id.
| bool APER_MACRO_FREEPOLY::IsSamePoly | ( | const std::vector< VECTOR2I > & | aPolygon | ) | const |
| aOther | is the candidate to compare |
Definition at line 1847 of file GERBER_plotter.cpp.
References m_Corners, and polyCompare().
| std::vector<VECTOR2I> APER_MACRO_FREEPOLY::m_Corners |
Definition at line 178 of file gbr_plotter_apertures.h.
Referenced by APER_MACRO_FREEPOLY(), CornersCount(), Format(), and IsSamePoly().
| int APER_MACRO_FREEPOLY::m_Id |
Definition at line 179 of file gbr_plotter_apertures.h.
Referenced by APER_MACRO_FREEPOLY(), and Format().