KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_plotter.h File Reference
#include <pcb_plot_params.h>
#include <map>
#include <vector>

Go to the source code of this file.

Classes

class  PCB_PLOTTER
 

Functions

bool PlotFootprintToSVG (const FOOTPRINT &aFootprint, PROJECT &aProject, const std::map< wxString, wxString > *aVarOverrides, PCB_PLOT_PARAMS &aPlotOpts, const LSEQ &aLayersToPlot, const LSEQ &aLayersOnAll, const wxString &aFileName, REPORTER *aReporter=nullptr)
 Plot a footprint to an SVG file, with the footprint origin at the SVG origin and the page/viewBox sized to the footprint's bounding box.
 

Function Documentation

◆ PlotFootprintToSVG()

bool PlotFootprintToSVG ( const FOOTPRINT & aFootprint,
PROJECT & aProject,
const std::map< wxString, wxString > * aVarOverrides,
PCB_PLOT_PARAMS & aPlotOpts,
const LSEQ & aLayersToPlot,
const LSEQ & aLayersOnAll,
const wxString & aFileName,
REPORTER * aReporter = nullptr )

Plot a footprint to an SVG file, with the footprint origin at the SVG origin and the page/viewBox sized to the footprint's bounding box.

The footprint is plotted through a temporary board with the footprint placed at its origin. Fit-to-board is assumed.

Definition at line 546 of file pcb_plotter.cpp.

References ANGLE_0, FOOTPRINT::Clone(), BOARD_LOADER::CreateEmptyBoard(), INSERT, IS_NEW, niluuid, pad, FOOTPRINT::Pads(), PCB_PLOTTER::Plot(), EDA_ITEM::SetFlags(), PCB_PLOT_PARAMS::SetFormat(), FOOTPRINT::SetLink(), PCB_PLOT_PARAMS::SetMirror(), FOOTPRINT::SetOrientation(), EDA_ITEM::SetParent(), PCB_PLOT_PARAMS::SetPlotFrameRef(), FOOTPRINT::SetPosition(), PCB_PLOT_PARAMS::SetSkipPlotNPTH_Pads(), PCB_PLOT_PARAMS::SetSvgFitPageToBoard(), and SVG.

Referenced by PCBNEW_JOBS_HANDLER::doFpExportSvg(), and FOOTPRINT_EDITOR_CONTROL::ExportFootprintAsSVG().