31#ifndef _GENDRILL_EXCELLON_WRITER_
32#define _GENDRILL_EXCELLON_WRITER_
78 int aLeftDigits = 0,
int aRightDigits = 0 );
90 bool aMerge_PTH_NPTH )
146 void writeCoordinates(
char* aLine,
size_t aLineSize,
double aCoordX,
double aCoordY );
Information pertinent to a Pcbnew printed circuit board.
Create Excellon drill, drill map, and drill report files.
void SetFormat(bool aMetric, ZEROS_FMT aZerosFmt=DECIMAL_FORMAT, int aLeftDigits=0, int aRightDigits=0)
Initialize internal parameters to match the given format.
bool m_useRouteModeForOval
void writeCoordinates(char *aLine, size_t aLineSize, double aCoordX, double aCoordY)
Create a line like according to the selected format.
void writeEXCELLONHeader(DRILL_LAYER_PAIR aLayerPair, TYPE_FILE aHolesType)
Print the DRILL file header.
void writeHoleAttribute(HOLE_ATTRIBUTE aAttribute)
Write a comment string giving the hole attribute.
bool CreateDrillandMapFilesSet(const wxString &aPlotDirectory, bool aGenDrill, bool aGenMap, REPORTER *aReporter=nullptr)
Create the full set of Excellon drill file for the board.
VECTOR2I GetOffset()
Return the plot offset (usually the position of the auxiliary axis.
virtual ~EXCELLON_WRITER()
int createDrillFile(FILE *aFile, DRILL_LAYER_PAIR aLayerPair, TYPE_FILE aHolesType)
Create an Excellon drill file.
void SetOptions(bool aMirror, bool aMinimalHeader, const VECTOR2I &aOffset, bool aMerge_PTH_NPTH)
Initialize internal parameters to match drill options.
void writeEXCELLONEndOfFile()
void SetRouteModeForOvalHoles(bool aUseRouteModeForOvalHoles)
Create drill maps and drill reports and drill files.
Base plotter engine class.
A pure virtual class used to derive REPORTER objects from.
helper classes to handle hole info for drill files generators.
std::pair< PCB_LAYER_ID, PCB_LAYER_ID > DRILL_LAYER_PAIR