27#ifndef _GENDRILL_EXCELLON_WRITER_
28#define _GENDRILL_EXCELLON_WRITER_
32#include <wx/filename.h>
76 int aLeftDigits = 0,
int aRightDigits = 0 );
88 bool aMerge_PTH_NPTH )
120 bool aTagBackdrillHit =
false );
146 void writeCoordinates(
char* aLine,
size_t aLineSize,
double aCoordX,
double aCoordY );
160 int aDepthIU,
int aAngleDeciDegree,
161 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.
void writeHoleComments(const DRILL_OPERATION &aHole, bool aTagBackdrillHit)
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 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)
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
One machining action, which is also one NC hit and one tool assignment.
VECTOR2< int32_t > VECTOR2I