31#ifndef _GENDRILL_EXCELLON_WRITER_
32#define _GENDRILL_EXCELLON_WRITER_
36#include <wx/filename.h>
80 int aLeftDigits = 0,
int aRightDigits = 0 );
92 bool aMerge_PTH_NPTH )
123 bool aTagBackdrillHit =
false );
149 void writeCoordinates(
char* aLine,
size_t aLineSize,
double aCoordX,
double aCoordY );
163 int aDepthIU,
int aAngleDeciDegree,
164 const wxString& aSideLabel );
Information pertinent to a Pcbnew printed circuit board.
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.
int createDrillFile(FILE *aFile, const DRILL_SPAN &aSpan, TYPE_FILE aHolesType, bool aTagBackdrillHit=false)
Create an Excellon drill file.
void writePostMachiningComment(PAD_DRILL_POST_MACHINING_MODE aMode, int aSizeIU, int aDepthIU, int aAngleDeciDegree, const wxString &aSideLabel)
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.
EXCELLON_WRITER(BOARD *aPcb)
wxFileName getBackdrillLayerPairFileName(const DRILL_SPAN &aSpan) const
VECTOR2I GetOffset()
Return the plot offset (usually the position of the auxiliary axis.
virtual ~EXCELLON_WRITER()
wxString formatLinearValue(int aValueIU) const
void SetOptions(bool aMirror, bool aMinimalHeader, const VECTOR2I &aOffset, bool aMerge_PTH_NPTH)
Initialize internal parameters to match drill options.
void writeEXCELLONEndOfFile()
void writeHoleComments(const HOLE_INFO &aHole, bool aTagBackdrillHit)
void SetRouteModeForOvalHoles(bool aUseRouteModeForOvalHoles)
bool writeBackdrillLayerPairFile(const wxString &aPlotDirectory, REPORTER *aReporter, const DRILL_SPAN &aSpan)
void writeEXCELLONHeader(const DRILL_SPAN &aSpan, TYPE_FILE aHolesType)
Print the DRILL file header.
GENDRILL_WRITER_BASE(BOARD *aPcb)
Handle hole which must be drilled (diameter, position and layers).
Base plotter engine class.
A pure virtual class used to derive REPORTER objects from.
helper classes to handle hole info for drill files generators.
PAD_DRILL_POST_MACHINING_MODE
VECTOR2< int32_t > VECTOR2I