24#include <wx/bmpbuttn.h>
25#include <wx/clntdata.h>
26#include <wx/rearrangectrl.h>
90 m_defaultPenSize( aParent, m_hpglPenLabel, m_hpglPenCtrl, m_hpglPenUnits ),
91 m_trackWidthCorrection( aParent, m_widthAdjustLabel, m_widthAdjustCtrl, m_widthAdjustUnits )
103 wxArrayInt plotAllLayersOrder;
104 wxArrayString plotAllLayersChoicesStrings;
105 std::vector<PCB_LAYER_ID> layersIdChoiceList;
115 plotAllLayersChoicesStrings.Add( layerName );
116 layersIdChoiceList.push_back( layer );
118 size_t size = plotOnAllLayersSelection.
size();
120 if( (
static_cast<size_t>( layer ) <= size ) && plotOnAllLayersSelection.
test( layer ) )
121 plotAllLayersOrder.push_back( order );
123 plotAllLayersOrder.push_back( ~order );
128 int checkColSize = 22;
129 int layerColSize = textWidth + 15;
141 wxStaticBox* allLayersLabel =
new wxStaticBox(
this, wxID_ANY,
_(
"Plot on All Layers" ) );
142 wxStaticBoxSizer* sbSizer =
new wxStaticBoxSizer( allLayersLabel, wxVERTICAL );
145 wxDefaultPosition, wxDefaultSize,
146 plotAllLayersOrder, plotAllLayersChoicesStrings, 0 );
154 for(
size_t idx = 0; idx < layersIdChoiceList.size(); idx++ )
156 wxString& txt = plotAllLayersChoicesStrings[idx];
165 wxBoxSizer* bButtonSizer;
166 bButtonSizer =
new wxBoxSizer( wxHORIZONTAL );
169 wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW | 0 );
170 m_bpMoveUp->SetToolTip(
_(
"Move current selection up" ) );
173 bButtonSizer->Add(
m_bpMoveUp, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 3 );
176 wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW | 0 );
177 m_bpMoveDown->SetToolTip(
_(
"Move current selection down" ) );
180 bButtonSizer->Add(
m_bpMoveDown, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5 );
182 sbSizer->Add( bButtonSizer, 0, wxALL | wxEXPAND, 3 );
184 bmiddleSizer->Insert( 1, sbSizer, 1, wxALL | wxEXPAND, 5 );
189 { wxID_APPLY,
_(
"Generate Drill Files..." ) },
190 { wxID_CANCEL,
_(
"Close" ) } } );
192 GetSizer()->Fit(
this );
193 GetSizer()->SetSizeHints(
this );
386 wxCommandEvent cmd_event;
402 int knownViolations = 0;
413 if( knownViolations || exclusions )
442 [&]( wxRearrangeList* aList,
PCB_LAYER_ID aLayer ) ->
int
444 for(
int ii = 0; ii < (int) aList->GetCount(); ++ii )
459 while( currentPos > idx )
469#define ID_LAYER_FAB 13001
470#define ID_SELECT_COPPER_LAYERS 13002
471#define ID_DESELECT_COPPER_LAYERS 13003
472#define ID_SELECT_ALL_LAYERS 13004
473#define ID_DESELECT_ALL_LAYERS 13005
474#define ID_STACKUP_ORDER 13006
484 menu.Append(
new wxMenuItem( &menu,
ID_LAYER_FAB,
_(
"Select Fab Layers" ) ) );
486 menu.AppendSeparator();
490 menu.AppendSeparator();
494 menu.Bind( wxEVT_COMMAND_MENU_SELECTED,
495 [&]( wxCommandEvent& aCmd )
497 switch( aCmd.GetId() )
505 if( ( layermask & fab_layer_set ).any() )
559 menu.AppendSeparator();
560 menu.Append(
new wxMenuItem( &menu,
ID_STACKUP_ORDER,
_(
"Order as Board Stackup" ) ) );
562 menu.Bind( wxEVT_COMMAND_MENU_SELECTED,
563 [&]( wxCommandEvent& aCmd )
565 switch( aCmd.GetId() )
567 case ID_SELECT_ALL_LAYERS:
568 for( unsigned i = 0; i < m_plotAllLayersList->GetCount(); i++ )
569 m_plotAllLayersList->Check( i, true );
573 case ID_DESELECT_ALL_LAYERS:
574 for( unsigned i = 0; i < m_plotAllLayersList->GetCount(); i++ )
575 m_plotAllLayersList->Check( i, false );
579 case ID_STACKUP_ORDER:
581 LSEQ stackup = m_parent->GetBoard()->GetEnabledLayers().SeqStackupForPlotting();
582 arrangeAllLayersList( stackup );
583 m_plotAllLayersList->Select( -1 );
626 bool scale1 = (
m_scaleOpt->GetSelection() == 1 );
638 std::function<bool( wxString* )> textResolver =
639 [&]( wxString* token ) ->
bool
649 wxDirDialog dirDialog(
this,
_(
"Select Output Directory" ),
path );
651 if( dirDialog.ShowModal() == wxID_CANCEL )
654 wxFileName dirName = wxFileName::DirName( dirDialog.GetPath() );
657 wxString defaultPath = fn.GetPathWithSep();
659 wxFileName relPathTest;
661 relPathTest.Assign( dirDialog.GetPath() );
664 if( relPathTest.MakeRelativeTo( defaultPath ) )
666 msg.Printf(
_(
"Do you want to use a path relative to\n'%s'?" ), defaultPath );
668 wxMessageDialog dialog(
this, msg,
_(
"Plot Output Directory" ),
669 wxYES_NO | wxICON_QUESTION | wxYES_DEFAULT );
671 if( dialog.ShowModal() == wxID_YES )
672 dirName.MakeRelativeTo( defaultPath );
716 case PLOT_FORMAT::SVG:
717 case PLOT_FORMAT::PDF:
750 case PLOT_FORMAT::POST:
772 case PLOT_FORMAT::GERBER:
799 case PLOT_FORMAT::HPGL:
822 case PLOT_FORMAT::DXF:
850 case PLOT_FORMAT::UNDEFINED:
865static bool setDouble(
double* aResult,
double aValue,
double aMin,
double aMax )
872 else if( aValue > aMax )
883static bool setInt(
int* aResult,
int aValue,
int aMin,
int aMax )
890 else if( aValue > aMax )
928 tempOptions.
SetDXFPlotUnits( sel == 0 ? DXF_UNITS::INCHES : DXF_UNITS::MILLIMETERS );
931 tempOptions.
SetTextMode( PLOT_TEXT_MODE::DEFAULT );
934 PLOT_TEXT_MODE::NATIVE );
965 msg.Printf(
_(
"HPGL pen size constrained." ) );
977 msg.ToDouble( &tmpDouble );
983 msg.Printf(
_(
"X scale constrained." ) );
989 msg.ToDouble( &tmpDouble );
995 msg.Printf(
_(
"Y scale constrained." ) );
1004 cfg->m_Plot.check_zones_before_plotting =
m_zoneFillCheck->GetValue();
1011 msg.Printf(
_(
"Width correction constrained. The width correction value must be in the"
1012 " range of [%s; %s] for the current design rules." ),
1032 LSET selectedLayers;
1034 for(
unsigned i = 0; i <
m_layerList.size(); i++ )
1041 LSET disabledCopperLayers =
LSET::AllCuMask() & ~m_parent->GetBoard()->GetEnabledLayers();
1043 LSET plotOnAllLayers;
1046 wxArrayInt plotOnAllLayersSelections;
1050 size_t count = plotOnAllLayersSelections.GetCount();
1052 for(
size_t i = 0; i < count; i++ )
1054 int index = plotOnAllLayersSelections.Item( i );
1058 wxCHECK2( layerId,
continue );
1060 plotOnAllLayers.
set( layerId->
Layer() );
1067 selectedLayers = selectedLayers | disabledCopperLayers;
1076 dirStr.Replace( wxT(
"\\" ), wxT(
"/" ) );
1112 DisplayError(
this,
_(
"No layer selected, Nothing to plot" ) );
1119 std::function<bool( wxString* )> textResolver =
1120 [&]( wxString* token ) ->
bool
1130 wxFileName outputDir = wxFileName::DirName(
path );
1137 msg.Printf(
_(
"Could not write plot files to folder '%s'." ), outputDir.GetPath() );
1194 plotSequence.push_back( layer );
1197 wxArrayInt plotOnAllLayers;
1201 size_t count = plotOnAllLayers.GetCount();
1203 for(
size_t i = 0; i < count; i++ )
1205 int index = plotOnAllLayers.Item( i );
1209 if(
find( plotSequence.begin(), plotSequence.end(), client_layer ) != plotSequence.end() )
1212 plotSequence.push_back( client_layer );
1232 wxFileName fn( boardFilename );
1240 wxString fullname = fn.GetFullName();
1241 jobfile_writer.
AddGbrFile( layer, fullname );
1246 sheetName, sheetPath );
1257 msg = wxS(
"AUTHOR" );
1262 msg = wxS(
"SUBJECT" );
1274 msg.Printf(
_(
"Plotted to '%s'." ), fn.GetFullPath() );
1279 msg.Printf(
_(
"Failed to create file '%s'." ), fn.GetFullPath() );
1289 wxFileName fn( boardFilename );
1352 m_hideDNP->Enable( aEvent.IsChecked() );
constexpr EDA_IU_SCALE pcbIUScale
constexpr EDA_IU_SCALE unityScale
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap)
wxString m_ColorTheme
Active color theme name.
BASE_SET & set(size_t pos=std::numeric_limits< size_t >::max(), bool value=true)
bool test(size_t pos) const
Container for design settings for a BOARD object.
int GetSmallestClearanceValue() const
int m_SolderMaskExpansion
int GetLineThickness(PCB_LAYER_ID aLayer) const
Return the default graphic segment thickness from the layer class for the given layer.
Information pertinent to a Pcbnew printed circuit board.
LSET GetEnabledLayers() const
A proxy function that calls the corresponding function in m_BoardSettings.
bool ResolveTextVar(wxString *token, int aDepth) const
const MARKERS & Markers() const
TITLE_BLOCK & GetTitleBlock()
const wxString & GetFileName() const
const wxString GetLayerName(PCB_LAYER_ID aLayer) const
Return the name of a aLayer.
PROJECT * GetProject() const
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
wxCheckBox * m_frontFPPropertyPopups
wxStaticText * m_DRCExclusionsWarning
wxCheckBox * m_backFPPropertyPopups
wxTextCtrl * m_fineAdjustXCtrl
wxBoxSizer * bmiddleSizer
wxStaticBoxSizer * m_PDFOptionsSizer
wxCheckBox * m_disableApertMacros
wxChoice * m_coordFormatCtrl
wxCheckBox * m_DXF_plotModeOpt
wxChoice * m_SVGColorChoice
STD_BITMAP_BUTTON * m_browseButton
wxTextCtrl * m_outputDirectoryName
wxSpinCtrl * m_svgPrecsision
wxTextCtrl * m_fineAdjustYCtrl
wxCheckBox * m_plotPadNumbers
wxStaticBoxSizer * m_HPGLOptionsSizer
wxCheckBox * m_useAuxOriginCheckBox
wxStaticBoxSizer * m_PSOptionsSizer
wxCheckBox * m_plotPSNegativeOpt
wxCheckBox * m_DXF_plotTextStrokeFontOpt
wxCheckBox * m_useGerberExtensions
wxCheckBox * m_plotSheetRef
wxBoxSizer * m_SizerSolderMaskAlert
wxCheckBox * m_generateGerberJobFile
wxRadioButton * m_crossoutDNP
wxCheckBox * m_useGerberX2Format
wxCheckListBox * m_layerCheckListBox
wxCheckBox * m_plotMirrorOpt
wxStaticBoxSizer * m_svgOptionsSizer
wxCheckBox * m_forcePSA4OutputOpt
wxCheckBox * m_useGerberNetAttributes
wxCheckBox * m_sketchPadsOnFabLayers
wxCheckBox * m_subtractMaskFromSilk
wxBoxSizer * m_PlotOptionsSizer
wxChoice * m_DXF_plotUnits
wxStaticBoxSizer * m_SizerDXF_options
wxCheckBox * m_plotInvisibleText
wxCheckBox * m_pdfMetadata
wxChoice * m_drillShapeOpt
wxRadioButton * m_hideDNP
wxCheckBox * m_zoneFillCheck
wxStaticBoxSizer * m_GerberOptionsSizer
WX_HTML_REPORT_PANEL * m_messagesPanel
wxChoice * m_PDFColorChoice
wxChoice * m_plotFormatOpt
static LSET s_lastAllLayersSet
void OnRightClickLayers(wxMouseEvent &event)
static LSEQ s_lastAllLayersOrder
The plot on all layers ordering the last time the dialog was opened.
PCB_PLOT_PARAMS m_plotOpts
STD_BITMAP_BUTTON * m_bpMoveUp
void onPlotAllListMoveUp(wxCommandEvent &aEvent)
void OnChangeDXFPlotMode(wxCommandEvent &event) override
int m_widthAdjustMinValue
UNIT_BINDER m_trackWidthCorrection
void onBoardSetup(wxHyperlinkEvent &aEvent) override
void OnRightClickAllLayers(wxMouseEvent &event)
void onSketchPads(wxCommandEvent &event) override
PCB_EDIT_FRAME * m_parent
void Plot(wxCommandEvent &event) override
wxString m_DRCWarningTemplate
void setPlotModeChoiceSelection(OUTLINE_MODE aPlotMode)
void OnOutputDirectoryBrowseClicked(wxCommandEvent &event) override
wxRearrangeList * m_plotAllLayersList
void onPlotAllListMoveDown(wxCommandEvent &aEvent)
void onRunDRC(wxCommandEvent &event) override
void arrangeAllLayersList(const LSEQ &aSeq)
void OnSetScaleOpt(wxCommandEvent &event) override
STD_BITMAP_BUTTON * m_bpMoveDown
DIALOG_PLOT(PCB_EDIT_FRAME *parent)
void CreateDrillFile(wxCommandEvent &event) override
void onDNPCheckbox(wxCommandEvent &event) override
UNIT_BINDER m_defaultPenSize
PLOT_FORMAT getPlotFormat()
static LSET s_lastLayerSet
The plot layer set that last time the dialog was opened.
int m_widthAdjustMaxValue
void OnGerberX2Checked(wxCommandEvent &event) override
void SetPlotFormat(wxCommandEvent &event) override
void SetupStandardButtons(std::map< int, wxString > aLabels={})
GERBER_JOBFILE_WRITER is a class used to create Gerber job file a Gerber job file stores info to make...
bool CreateJobFile(const wxString &aFullFilename)
Creates a Gerber job file.
void AddGbrFile(PCB_LAYER_ID aLayer, wxString &aFilename)
add a gerber file name and type in job file list
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
LSEQ is a sequence (and therefore also a set) of PCB_LAYER_IDs.
LSET is a set of PCB_LAYER_IDs.
LSEQ SeqStackupForPlotting() const
Return the sequence that is typical for a bottom-to-top stack-up.
static LSET AllTechMask()
Return a mask holding all technical layers (no CU layer) on both side.
static LSET AllCuMask(int aCuLayerCount=MAX_CU_LAYERS)
Return a mask holding the requested number of Cu PCB_LAYER_IDs.
virtual const PCB_PLOT_PARAMS & GetPlotSettings() const
Return the PCB_PLOT_PARAMS for the BOARD owned by this frame.
PCBNEW_SETTINGS * GetPcbNewSettings() const
virtual void SetPlotSettings(const PCB_PLOT_PARAMS &aSettings)
The main frame for Pcbnew.
void ShowBoardSetupDialog(const wxString &aInitialPage=wxEmptyString)
void OnModify() override
Must be called after a board change to set the modified flag.
A helper wxWidgets control client data object to store layer IDs.
PCB_LAYER_ID Layer() const
void SetData(PCB_LAYER_ID aId)
PCB_LAYER_ID_CLIENT_DATA()
PCB_LAYER_ID_CLIENT_DATA(PCB_LAYER_ID aId)
Parameters and options when plotting/printing a board.
PLOT_FORMAT GetFormat() const
void SetDrillMarksType(DRILL_MARKS aVal)
bool GetUseAuxOrigin() const
bool GetHideDNPFPsOnFabLayers() const
void SetLayerSelection(LSET aSelection)
void SetOutputDirectory(const wxString &aDir)
void SetSketchPadsOnFabLayers(bool aFlag)
void SetUseGerberX2format(bool aUse)
DXF_UNITS GetDXFPlotUnits() const
bool GetPlotInvisibleText() const
void SetA4Output(int aForce)
PLOT_TEXT_MODE GetTextMode() const
bool GetCrossoutDNPFPsOnFabLayers() const
bool GetSketchDNPFPsOnFabLayers() const
void SetDXFPlotPolygonMode(bool aFlag)
void SetAutoScale(bool aFlag)
double GetHPGLPenDiameter() const
unsigned GetSvgPrecision() const
void SetPlotFrameRef(bool aFlag)
void SetSketchDNPFPsOnFabLayers(bool aFlag)
bool m_PDFMetadata
Generate PDF metadata for SUBJECT and AUTHOR.
unsigned GetBlackAndWhite() const
bool GetCreateGerberJobFile() const
void SetPlotPadNumbers(bool aFlag)
bool GetDXFPlotPolygonMode() const
void SetSketchPadLineWidth(int aWidth)
LSET GetLayerSelection() const
wxString GetOutputDirectory() const
int GetScaleSelection() const
void SetPlotOnAllLayersSelection(LSET aSelection)
LSET GetPlotOnAllLayersSelection() const
bool SetHPGLPenDiameter(double aValue)
bool m_PDFFrontFPPropertyPopups
Generate PDF property popup menus for footprints.
void SetScale(double aVal)
void SetDisableGerberMacros(bool aDisable)
void SetScaleSelection(int aSelection)
void SetFineScaleAdjustX(double aVal)
void SetMirror(bool aFlag)
void SetBlackAndWhite(bool blackAndWhite)
void SetGerberPrecision(int aPrecision)
void SetSubtractMaskFromSilk(bool aSubtract)
bool GetSketchPadsOnFabLayers() const
void SetHideDNPFPsOnFabLayers(bool aFlag)
bool GetSubtractMaskFromSilk() const
int GetGerberPrecision() const
void SetUseGerberProtelExtensions(bool aUse)
bool GetPlotPadNumbers() const
DRILL_MARKS GetDrillMarksType() const
bool GetUseGerberX2format() const
void SetDXFPlotUnits(DXF_UNITS aUnit)
void SetColorSettings(COLOR_SETTINGS *aSettings)
bool IsSameAs(const PCB_PLOT_PARAMS &aPcbPlotParams) const
Compare current settings to aPcbPlotParams, including not saved parameters in brd file.
void SetIncludeGerberNetlistInfo(bool aUse)
void SetPlotInvisibleText(bool aFlag)
void SetCreateGerberJobFile(bool aCreate)
bool GetIncludeGerberNetlistInfo() const
void SetNegative(bool aFlag)
void SetPlotMode(OUTLINE_MODE aPlotMode)
void SetUseAuxOrigin(bool aAux)
bool m_PDFBackFPPropertyPopups
on front and/or back of board
void SetTextMode(PLOT_TEXT_MODE aVal)
bool GetUseGerberProtelExtensions() const
void SetSvgPrecision(unsigned aPrecision)
bool GetPlotFrameRef() const
void SetCrossoutDNPFPsOnFabLayers(bool aFlag)
void SetFormat(PLOT_FORMAT aFormat)
bool GetDisableGerberMacros() const
void SetFineScaleAdjustY(double aVal)
OUTLINE_MODE GetPlotMode() const
void SetWidthAdjust(int aVal)
virtual SETTINGS_MANAGER & GetSettingsManager() const
Base plotter engine class.
virtual void SetAuthor(const wxString &aAuthor)
virtual void SetTitle(const wxString &aTitle)
RENDER_SETTINGS * RenderSettings()
virtual void SetSubject(const wxString &aSubject)
The backing store for a PROJECT, in JSON format.
wxString m_PcbLastPath[LAST_PATH_SIZE]
MRU path storage.
virtual PROJECT_FILE & GetProjectFile() const
virtual const wxString AbsolutePath(const wxString &aFileName) const
Fix up aFileName if it is relative to the project's directory to be an absolute path and filename.
A pure virtual class used to derive REPORTER objects from.
virtual REPORTER & ReportTail(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)
Places the report at the end of the list, for objects that support report ordering.
virtual REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)=0
Report a string with a given severity.
T * GetAppSettings()
Returns a handle to the a given settings by type If the settings have already been loaded,...
COLOR_SETTINGS * GetColorSettings(const wxString &aName="user")
Retrieves a color settings object that applications can read colors from.
const wxString & GetTitle() const
wxString StringFromValue(double aValue, bool aAddUnitLabel=false, EDA_DATA_TYPE aType=EDA_DATA_TYPE::DISTANCE) const
Converts aValue in internal units into a united string.
virtual long long int GetValue()
Return the current value in Internal Units.
void Enable(bool aEnable)
Enable/disable the label, widget and units label.
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
void SetFileName(const wxString &aReportFileName)
const wxString ExpandEnvVarSubstitutions(const wxString &aString, const PROJECT *aProject)
Replace any environment variable & text variable references with their values.
bool EnsureFileDirectoryExists(wxFileName *aTargetFullFileName, const wxString &aBaseFilename, REPORTER *aReporter)
Make aTargetFullFileName absolute and create the path of this file if it doesn't yet exist.
wxString ExpandTextVars(const wxString &aSource, const PROJECT *aProject)
wxString GetDefaultPlotExtension(PLOT_FORMAT aFormat)
Returns the default plot extension for a format.
void DisplayError(wxWindow *aParent, const wxString &aText, int aDisplayTime)
Display an error or warning message box with aMessage.
void DisplayInfoMessage(wxWindow *aParent, const wxString &aMessage, const wxString &aExtraInfo)
Display an informational message box with aMessage.
This file is part of the common library.
static bool setDouble(double *aResult, double aValue, double aMin, double aMax)
static bool setInt(int *aResult, int aValue, int aMin, int aMax)
PCB_LAYER_ID_CLIENT_DATA * getLayerClientData(const wxRearrangeList *aList, int aIdx)
#define ID_SELECT_ALL_LAYERS
#define ID_DESELECT_COPPER_LAYERS
#define ID_DESELECT_ALL_LAYERS
#define ID_SELECT_COPPER_LAYERS
Classes used to generate a Gerber job file in JSON.
static const std::string GerberJobFileExtension
bool IsCopperLayer(int aLayerId)
Tests whether a layer is a copper layer.
PCB_LAYER_ID
A quick note on layer IDs:
This file contains miscellaneous commonly used macros and functions.
KICOMMON_API wxString StringFromValue(const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=false, EDA_DATA_TYPE aType=EDA_DATA_TYPE::DISTANCE)
Returns the string from aValue according to aUnits (inch, mm ...) for display.
KICOMMON_API wxSize GetTextSize(const wxString &aSingleLine, wxWindow *aWindow)
Return the size of aSingleLine of text when it is rendered in aWindow using whatever font is currentl...
const wxString GetGerberProtelExtension(int aLayer)
void BuildPlotFileName(wxFileName *aFilename, const wxString &aOutputDir, const wxString &aSuffix, const wxString &aExtension)
Complete a plot filename.
void PlotBoardLayers(BOARD *aBoard, PLOTTER *aPlotter, const LSEQ &aLayerSequence, const PCB_PLOT_PARAMS &aPlotOptions)
Plot a sequence of board layer IDs.
void PlotInteractiveLayer(BOARD *aBoard, PLOTTER *aPlotter, const PCB_PLOT_PARAMS &aPlotOpt)
Plot interactive items (hypertext links, properties, etc.).
PLOTTER * StartPlotBoard(BOARD *aBoard, const PCB_PLOT_PARAMS *aPlotOpts, int aLayer, const wxString &aLayerName, const wxString &aFullFileName, const wxString &aSheetName, const wxString &aSheetPath)
Open a new plotfile using the options (and especially the format) specified in the options and prepar...
PGM_BASE & Pgm()
The global Program "get" accessor.
DRILL_MARKS
Plots and prints can show holes in pads and vias 3 options are available:
PLOT_FORMAT
The set of supported output plot formats.
std::vector< FAB_LAYER_COLOR > dummy
constexpr double IUTomm(int iu) const
double ps_fine_width_adjust
bool check_zones_before_plotting
constexpr ret_type KiROUND(fp_type v, bool aQuiet=false)
Round a floating point number to an integer using "round halfway cases away from zero".
Definition of file extensions used in Kicad.