KiCad PCB EDA Suite
gen_drill_report_files.cpp File Reference
#include <plotters/plotter_dxf.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>
#include <pcb_shape.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)
 

Function Documentation

◆ diameter_in_inches()

double diameter_in_inches ( double  ius)
inline

Definition at line 45 of file gen_drill_report_files.cpp.

46{
47 return ius * 0.001 / pcbIUScale.IU_PER_MILS;
48}
constexpr EDA_IU_SCALE pcbIUScale
Definition: base_units.h:109
const double IU_PER_MILS
Definition: base_units.h:78

References EDA_IU_SCALE::IU_PER_MILS, and pcbIUScale.

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

◆ diameter_in_mm()

double diameter_in_mm ( double  ius)
inline

Definition at line 51 of file gen_drill_report_files.cpp.

52{
53 return ius / pcbIUScale.IU_PER_MM;
54}
const double IU_PER_MM
Definition: base_units.h:77

References EDA_IU_SCALE::IU_PER_MM, and pcbIUScale.

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

◆ getMarkerBestPenSize()

int getMarkerBestPenSize ( int  aMarkerDiameter)
inline

Definition at line 58 of file gen_drill_report_files.cpp.

59{
60 return aMarkerDiameter / 10;
61}

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