KiCad PCB EDA Suite
Loading...
Searching...
No Matches
export_gencad_writer.cpp File Reference
#include <build_version.h>
#include <board.h>
#include <board_design_settings.h>
#include <convert_basic_shapes_to_polygon.h>
#include <pcb_shape.h>
#include <footprint.h>
#include <pad.h>
#include <pcb_track.h>
#include <locale_io.h>
#include <macros.h>
#include <hash_eda.h>
#include <export_gencad_writer.h>

Go to the source code of this file.

Functions

static std::string GenCADLayerName (int aCuCount, PCB_LAYER_ID aId)
 
static std::string GenCADLayerNameFlipped (int aCuCount, PCB_LAYER_ID aId)
 
static wxString escapeString (const wxString &aString)
 
static std::string fmt_mask (LSET aSet)
 
static bool ViaSort (const PCB_VIA *aPadref, const PCB_VIA *aPadcmp)
 
static size_t hashFootprint (const FOOTPRINT *aFootprint)
 Compute hashes for footprints without taking into account their position, rotation or layer.
 

Variables

static const PCB_LAYER_ID gc_seq []
 
static std::map< FOOTPRINT *, int > componentShapes
 
static std::map< int, wxString > shapeNames
 
static const double SCALE_FACTOR = 1000.0 * pcbIUScale.IU_PER_MILS
 

Function Documentation

◆ escapeString()

◆ fmt_mask()

static std::string fmt_mask ( LSET  aSet)
static

Definition at line 145 of file export_gencad_writer.cpp.

References LSET::AllCuMask(), and StrPrintf().

Referenced by GENCAD_EXPORTER::CreatePadsShapesSection().

◆ GenCADLayerName()

◆ GenCADLayerNameFlipped()

static std::string GenCADLayerNameFlipped ( int  aCuCount,
PCB_LAYER_ID  aId 
)
static

Definition at line 128 of file export_gencad_writer.cpp.

References GenCADLayerName(), and StrPrintf().

Referenced by GENCAD_EXPORTER::CreatePadsShapesSection().

◆ hashFootprint()

static size_t hashFootprint ( const FOOTPRINT aFootprint)
static

Compute hashes for footprints without taking into account their position, rotation or layer.

Definition at line 646 of file export_gencad_writer.cpp.

References FOOTPRINT::Fields(), FOOTPRINT::GraphicalItems(), hash_fp_item(), HASH_LAYER, HASH_POS, HASH_ROT, FOOTPRINT::Pads(), and REL_COORD.

Referenced by GENCAD_EXPORTER::CreateShapesSection().

◆ ViaSort()

static bool ViaSort ( const PCB_VIA aPadref,
const PCB_VIA aPadcmp 
)
static

Variable Documentation

◆ componentShapes

◆ gc_seq

const PCB_LAYER_ID gc_seq[]
static

Definition at line 91 of file export_gencad_writer.cpp.

Referenced by GENCAD_EXPORTER::CreatePadsShapesSection().

◆ SCALE_FACTOR

const double SCALE_FACTOR = 1000.0 * pcbIUScale.IU_PER_MILS
static

Definition at line 174 of file export_gencad_writer.cpp.

◆ shapeNames