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

#include <gbr_plotter_apertures.h>

Public Member Functions

 APER_MACRO_FREEPOLY_LIST ()
 
void ClearList ()
 
int AmCount () const
 
void Append (const std::vector< VECTOR2I > &aPolygon)
 append a new APER_MACRO_FREEPOLY containing the polygon aPolygon to the current list
 
int FindAm (const std::vector< VECTOR2I > &aPolygon) const
 
void Format (FILE *aOutput, double aIu2GbrMacroUnit)
 print the aperture macro list to aOutput
 

Public Attributes

std::vector< APER_MACRO_FREEPOLYm_AMList
 

Detailed Description

Definition at line 181 of file gbr_plotter_apertures.h.

Constructor & Destructor Documentation

◆ APER_MACRO_FREEPOLY_LIST()

APER_MACRO_FREEPOLY_LIST::APER_MACRO_FREEPOLY_LIST ( )
inline

Definition at line 184 of file gbr_plotter_apertures.h.

Member Function Documentation

◆ AmCount()

int APER_MACRO_FREEPOLY_LIST::AmCount ( ) const
inline

Definition at line 188 of file gbr_plotter_apertures.h.

References m_AMList.

Referenced by Append(), GERBER_PLOTTER::EndPlot(), FindAm(), and Format().

◆ Append()

void APER_MACRO_FREEPOLY_LIST::Append ( const std::vector< VECTOR2I > &  aPolygon)

append a new APER_MACRO_FREEPOLY containing the polygon aPolygon to the current list

Definition at line 2062 of file GERBER_plotter.cpp.

References AmCount(), and m_AMList.

Referenced by GERBER_PLOTTER::GetOrCreateAperture().

◆ ClearList()

void APER_MACRO_FREEPOLY_LIST::ClearList ( )
inline

Definition at line 186 of file gbr_plotter_apertures.h.

References m_AMList.

Referenced by GERBER_PLOTTER::StartPlot().

◆ FindAm()

int APER_MACRO_FREEPOLY_LIST::FindAm ( const std::vector< VECTOR2I > &  aPolygon) const
Returns
the index in m_AMList of the APER_MACRO_FREEPOLY having the same polygon as aPolygon, or -1
Parameters
aCandidateis the polygon candidate to compare

Definition at line 2068 of file GERBER_plotter.cpp.

References AmCount(), and m_AMList.

Referenced by GERBER_PLOTTER::GetOrCreateAperture(), and GERBER_PLOTTER::writeApertureList().

◆ Format()

void APER_MACRO_FREEPOLY_LIST::Format ( FILE *  aOutput,
double  aIu2GbrMacroUnit 
)

print the aperture macro list to aOutput

Parameters
aOutputis the FILE to write
aIu2GbrMacroUnitis the scaling factor from coordinates value to the Gerber file macros units (always mm or inches)

Definition at line 2055 of file GERBER_plotter.cpp.

References AmCount(), Format(), and m_AMList.

Referenced by GERBER_PLOTTER::EndPlot(), and Format().

Member Data Documentation

◆ m_AMList

std::vector<APER_MACRO_FREEPOLY> APER_MACRO_FREEPOLY_LIST::m_AMList

Definition at line 210 of file gbr_plotter_apertures.h.

Referenced by AmCount(), Append(), ClearList(), FindAm(), and Format().


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