KiCad PCB EDA Suite
Loading...
Searching...
No Matches
specctra_export.cpp File Reference
#include <pcb_edit_frame.h>
#include <confirm.h>
#include <gestfich.h>
#include <locale_io.h>
#include <macros.h>
#include <math/util.h>
#include <set>
#include <map>
#include <board.h>
#include <board_design_settings.h>
#include <footprint.h>
#include <pcb_shape.h>
#include <pcb_track.h>
#include <pad.h>
#include <zone.h>
#include <base_units.h>
#include <collectors.h>
#include <geometry/shape_poly_set.h>
#include <geometry/convex_hull.h>
#include <convert_basic_shapes_to_polygon.h>
#include <geometry/geometry_utils.h>
#include <pcbnew_settings.h>
#include <wx/log.h>
#include "specctra.h"

Go to the source code of this file.

Namespaces

namespace  DSN
 This source file implements export and import capabilities to the specctra dsn file format.
 

Macros

#define EXPORT_CUSTOM_PADS_CONVEX_HULL
 

Typedefs

typedef std::map< wxString, int > DSN::PINMAP
 data type used to ensure unique-ness of pin names, holding (wxString and int)
 
typedef std::set< std::string > DSN::STRINGSET
 
typedef std::pair< STRINGSET::iterator, bool > DSN::STRINGSET_PAIR
 

Functions

void DSN::ExportBoardToSpecctraFile (BOARD *aBoard, const wxString &aFullFilename)
 Helper method to export board to DSN file.
 
static double DSN::scale (int kicadDist)
 Convert a distance from Pcbnew internal units to the reported Specctra DSN units in floating point format.
 
static double DSN::IU2um (int kicadDist)
 
static double DSN::mapX (int x)
 
static double DSN::mapY (int y)
 
static POINT DSN::mapPt (const VECTOR2I &pt)
 Convert a KiCad point into a DSN file point.
 
static POINT DSN::mapPt (const VECTOR2I &pt, FOOTPRINT *aFootprint)
 
static bool DSN::isRoundKeepout (PAD *aPad)
 Decide if the pad is a copper-less through hole which needs to be made into a round keepout.
 
static PATHDSN::makePath (const POINT &aStart, const POINT &aEnd, const std::string &aLayerName)
 Create a PATH element with a single straight line, a pair of vertices.
 

Macro Definition Documentation

◆ EXPORT_CUSTOM_PADS_CONVEX_HULL

#define EXPORT_CUSTOM_PADS_CONVEX_HULL

Definition at line 70 of file specctra_export.cpp.