KiCad PCB EDA Suite
gen_drill_report_files.cpp File Reference

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

#include <fctsys.h>
#include <common.h>
#include <plotter.h>
#include <base_struct.h>
#include <gr_text.h>
#include <confirm.h>
#include <kicad_string.h>
#include <macros.h>
#include <math/util.h>
#include <class_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 48 of file gen_drill_report_files.cpp.

49 {
50  return ius * 0.001 / IU_PER_MILS;
51 }
#define IU_PER_MILS
Definition: plotter.cpp:138

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 54 of file gen_drill_report_files.cpp.

55 {
56  return ius / IU_PER_MM;
57 }

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

◆ getMarkerBestPenSize()

int getMarkerBestPenSize ( int  aMarkerDiameter)
inline

Definition at line 61 of file gen_drill_report_files.cpp.

62 {
63  return aMarkerDiameter / 10;
64 }

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