KiCad PCB EDA Suite
gen_drill_report_files.cpp File Reference

Functions to create report and map files for EXCELLON drill files. More...

#include <plotters/plotter_dxf.h>
#include <plotters/plotter_hpgl.h>
#include <plotters/plotter_gerber.h>
#include <plotters/plotters_pslike.h>
#include <eda_item.h>
#include <confirm.h>
#include <string_utils.h>
#include <locale_io.h>
#include <macros.h>
#include <math/util.h>
#include <board.h>
#include <pcbnew.h>
#include <pcbplot.h>
#include <gendrill_file_writer_base.h>
#include <pcb_painter.h>

Go to the source code of this file.

Functions

double diameter_in_inches (double ius)
 
double diameter_in_mm (double ius)
 
int getMarkerBestPenSize (int aMarkerDiameter)
 

Detailed Description

Functions to create report and map files for EXCELLON drill files.

Definition in file gen_drill_report_files.cpp.

Function Documentation

◆ diameter_in_inches()

double diameter_in_inches ( double  ius)
inline

Definition at line 50 of file gen_drill_report_files.cpp.

51 {
52  return ius * 0.001 / IU_PER_MILS;
53 }
#define IU_PER_MILS
Definition: plotter.cpp:136

References IU_PER_MILS.

Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), and GENDRILL_WRITER_BASE::printToolSummary().

◆ diameter_in_mm()

double diameter_in_mm ( double  ius)
inline

Definition at line 56 of file gen_drill_report_files.cpp.

57 {
58  return ius / IU_PER_MM;
59 }
static constexpr double IU_PER_MM
Mock up a conversion function.

References IU_PER_MM.

Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), and GENDRILL_WRITER_BASE::printToolSummary().

◆ getMarkerBestPenSize()

int getMarkerBestPenSize ( int  aMarkerDiameter)
inline

Definition at line 63 of file gen_drill_report_files.cpp.

64 {
65  return aMarkerDiameter / 10;
66 }

Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), and GENDRILL_WRITER_BASE::plotDrillMarks().