KiCad PCB EDA Suite
dxf_import_plugin.h File Reference
#include "graphics_import_plugin.h"
#include "graphics_importer_buffer.h"
#include <dl_creationadapter.h>
#include <dl_dxf.h>
#include <math/vector3.h>
#include <math/matrix3x3.h>
#include <wildcards_and_files_ext.h>
#include <list>

Go to the source code of this file.

Classes

struct  SPLINE_CTRL_POINT
 A helper class to store a spline control point (in X,Y plane only) More...
 
class  DXF2BRD_ENTITY_DATA
 A helper class to parse a DXF entity (polyline and spline) More...
 
class  DXF_IMPORT_LAYER
 A helper class to hold layer settings temporarily during import. More...
 
class  DXF_IMPORT_BLOCK
 A helper class to hold layer settings temporarily during import. More...
 
class  DXF_IMPORT_STYLE
 A helper class to hold style settings temporarily during import. More...
 
class  DXF_IMPORT_PLUGIN
 

Macros

#define DXF_IMPORT_LINEWEIGHT_BY_LAYER   -1
 
#define DXF_IMPORT_LINEWEIGHT_BY_BLOCK   -2
 
#define DXF_IMPORT_LINEWEIGHT_BY_LW_DEFAULT   -3
 
#define ON_UNSUPPORTED(error_msg)
 This class import DXF ASCII files and convert basic entities to board entities. More...
 

Enumerations

enum class  DXF_IMPORT_UNITS {
  DEFAULT = 0 , INCHES = 1 , FEET = 2 , MILLIMETERS = 4 ,
  CENTIMETERS = 5 , METERS = 6 , MICROINCHES = 8 , MILS = 9 ,
  YARDS = 10 , ANGSTROMS = 11 , NANOMETERS = 12 , MICRONS = 13 ,
  DECIMETERS = 14 , DECAMETERS = 15 , HECTOMETERS = 16 , GIGAMETERS = 17 ,
  ASTRONOMICAL = 18 , LIGHTYEARS = 19 , PARSECS = 20
}
 DXF Units enum with values as specified in DXF 2012 Specification. More...
 

Macro Definition Documentation

◆ DXF_IMPORT_LINEWEIGHT_BY_BLOCK

#define DXF_IMPORT_LINEWEIGHT_BY_BLOCK   -2

Definition at line 116 of file dxf_import_plugin.h.

◆ DXF_IMPORT_LINEWEIGHT_BY_LAYER

#define DXF_IMPORT_LINEWEIGHT_BY_LAYER   -1

Definition at line 115 of file dxf_import_plugin.h.

◆ DXF_IMPORT_LINEWEIGHT_BY_LW_DEFAULT

#define DXF_IMPORT_LINEWEIGHT_BY_LW_DEFAULT   -3

Definition at line 117 of file dxf_import_plugin.h.

◆ ON_UNSUPPORTED

#define ON_UNSUPPORTED (   error_msg)

This class import DXF ASCII files and convert basic entities to board entities.

It depends on the dxflib library.

Definition at line 213 of file dxf_import_plugin.h.

Enumeration Type Documentation

◆ DXF_IMPORT_UNITS

enum class DXF_IMPORT_UNITS
strong

DXF Units enum with values as specified in DXF 2012 Specification.

Enumerator
DEFAULT 
INCHES 
FEET 
MILLIMETERS 
CENTIMETERS 
METERS 
MICROINCHES 
MILS 
YARDS 
ANGSTROMS 
NANOMETERS 
MICRONS 
DECIMETERS 
DECAMETERS 
HECTOMETERS 
GIGAMETERS 
ASTRONOMICAL 
LIGHTYEARS 
PARSECS 

Definition at line 181 of file dxf_import_plugin.h.

182{
183 DEFAULT = 0,
184 INCHES = 1,
185 FEET = 2,
186 MILLIMETERS = 4,
187 CENTIMETERS = 5,
188 METERS = 6,
189 MICROINCHES = 8,
190 MILS = 9,
191 YARDS = 10,
192 ANGSTROMS = 11,
193 NANOMETERS = 12,
194 MICRONS = 13,
195 DECIMETERS = 14,
196 DECAMETERS = 15,
197 HECTOMETERS = 16,
198 GIGAMETERS = 17,
199 ASTRONOMICAL = 18,
200 LIGHTYEARS = 19,
201 PARSECS = 20
202};