KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dxf_import_plugin.cpp File Reference
#include "dxf_import_plugin.h"
#include <wx/arrstr.h>
#include <wx/regex.h>
#include <geometry/ellipse.h>
#include <bezier_curves.h>
#include <trigo.h>
#include <macros.h>
#include <cmath>
#include <vector>
#include <board.h>
#include "common.h"
#include "tinysplinecxx.h"

Go to the source code of this file.

Macros

#define MIN_BULGE   0.0218
 
#define SCALE_FACTOR(x)
 

Functions

static std::vector< std::pair< DXF_IMPORT_UNITS, wxString > > dxfImportUnitChoices ()
 
wxArrayString GetDxfImportUnitChoices ()
 
DXF_IMPORT_UNITS DxfImportUnitFromChoice (int aSelection)
 

Macro Definition Documentation

◆ MIN_BULGE

#define MIN_BULGE   0.0218

◆ SCALE_FACTOR

Function Documentation

◆ dxfImportUnitChoices()

static std::vector< std::pair< DXF_IMPORT_UNITS, wxString > > dxfImportUnitChoices ( )
static

Definition at line 1067 of file dxf_import_plugin.cpp.

References _, CM, FEET, INCH, MILS, and MM.

Referenced by DxfImportUnitFromChoice(), and GetDxfImportUnitChoices().

◆ DxfImportUnitFromChoice()

DXF_IMPORT_UNITS DxfImportUnitFromChoice ( int aSelection)
Returns
the unit at aSelection in GetDxfImportUnitChoices(), or DXF_IMPORT_UNITS::DEFAULT when aSelection is wxNOT_FOUND or otherwise out of range.

Definition at line 1089 of file dxf_import_plugin.cpp.

References DEFAULT, and dxfImportUnitChoices().

Referenced by DIALOG_IMPORT_GFX_SCH::TransferDataFromWindow(), and DIALOG_IMPORT_GRAPHICS::TransferDataFromWindow().

◆ GetDxfImportUnitChoices()

wxArrayString GetDxfImportUnitChoices ( )
Returns
the translated names of the units offered for a DXF file without $INSUNITS, in the order used by DxfImportUnitFromChoice().

Definition at line 1078 of file dxf_import_plugin.cpp.

References dxfImportUnitChoices().

Referenced by DIALOG_IMPORT_GFX_SCH::DIALOG_IMPORT_GFX_SCH(), and DIALOG_IMPORT_GRAPHICS::DIALOG_IMPORT_GRAPHICS().