KiCad PCB EDA Suite
Loading...
Searching...
No Matches
export_idf.cpp File Reference
#include <list>
#include <locale_io.h>
#include <macros.h>
#include <pcb_edit_frame.h>
#include <board.h>
#include <board_design_settings.h>
#include <footprint.h>
#include <fp_lib_table.h>
#include <idf_parser.h>
#include <pad.h>
#include <pcb_shape.h>
#include <build_version.h>
#include <project_pcb.h>
#include <wx/msgdlg.h>
#include "project.h"
#include "kiway.h"
#include "3d_cache/3d_cache.h"
#include "filename_resolver.h"
#include <base_units.h>

Go to the source code of this file.

Macros

#define LINE_WIDTH   (pcbIUScale.mmToIU( 0.1 ))
 

Functions

static void idf_export_outline (BOARD *aPcb, IDF3_BOARD &aIDFBoard)
 Retrieve line segment information from the edge layer and compiles the data into a form which can be output as an IDFv3 compliant #BOARD_OUTLINE section.
 
static void idf_export_footprint (BOARD *aPcb, FOOTPRINT *aFootprint, IDF3_BOARD &aIDFBoard, bool aIncludeUnspecified, bool aIncludeDNP)
 Retrieve information from all board footprints, adds drill holes to the DRILLED_HOLES or BOARD_OUTLINE section as appropriate, Compiles data for the PLACEMENT section and compiles data for the library ELECTRICAL section.
 

Variables

static FILENAME_RESOLVERresolver
 

Macro Definition Documentation

◆ LINE_WIDTH

#define LINE_WIDTH   (pcbIUScale.mmToIU( 0.1 ))

Definition at line 50 of file export_idf.cpp.

Function Documentation

◆ idf_export_footprint()

static void idf_export_footprint ( BOARD aPcb,
FOOTPRINT aFootprint,
IDF3_BOARD &  aIDFBoard,
bool  aIncludeUnspecified,
bool  aIncludeDNP 
)
static

◆ idf_export_outline()

static void idf_export_outline ( BOARD aPcb,
IDF3_BOARD &  aIDFBoard 
)
static

Retrieve line segment information from the edge layer and compiles the data into a form which can be output as an IDFv3 compliant #BOARD_OUTLINE section.

Definition at line 60 of file export_idf.cpp.

References ARC, EDA_ANGLE::AsDegrees(), CIRCLE, BOARD::Drawings(), Edge_Cuts, EDA_SHAPE::GetArcAngle(), BOARD::GetBoardEdgesBoundingBox(), PCB_SHAPE::GetCenter(), EDA_SHAPE::GetEnd(), BOX2< Vec >::GetOrigin(), EDA_SHAPE::GetRadius(), EDA_SHAPE::GetShape(), BOX2< Vec >::GetSize(), EDA_SHAPE::GetStart(), left, LINE_WIDTH, PCB_SHAPE_T, RECTANGLE, right, scale, SEGMENT, VECTOR2< T >::x, and VECTOR2< T >::y.

Referenced by PCB_EDIT_FRAME::Export_IDF3().

Variable Documentation

◆ resolver