1#ifndef PCB_PLOT_PARAMS_H_
2#define PCB_PLOT_PARAMS_H_
Color settings are a bit different than most of the settings objects in that there can be more than o...
LSET is a set of PCB_LAYER_IDs.
The parser for PCB_PLOT_PARAMS.
Parameters and options when plotting/printing a board.
PLOT_FORMAT GetFormat() const
bool m_sketchPadsOnFabLayers
Plots pads outlines on fab layers.
int m_HPGLPenNum
HPGL only: pen number selection(1 to 9)
DXF_UNITS m_DXFplotUnits
DXF format: Units to use when plotting the DXF.
bool GetSkipPlotNPTH_Pads() const
double m_dashedLineGapRatio
static int GetGerberDefaultPrecision()
Default precision of coordinates in Gerber files.
void SetDrillMarksType(DRILL_MARKS aVal)
bool GetUseAuxOrigin() const
void SetSkipPlotNPTH_Pads(bool aSkip)
int m_gerberPrecision
precision of coordinates in Gerber files: accepted 5 or 6 when units are in mm (6 or 7 in inches,...
void SetLayerSelection(LSET aSelection)
void SetOutputDirectory(const wxString &aDir)
void SetPlotReference(bool aFlag)
std::shared_ptr< COLOR_SETTINGS > m_default_colors
Dummy colors object that can be created if there is no Pgm context.
int GetWidthAdjust() const
void SetSketchPadsOnFabLayers(bool aFlag)
OUTLINE_MODE m_plotMode
FILLED or SKETCH selects how to plot filled objects.
void SetUseGerberX2format(bool aUse)
bool m_A4Output
Autoscale the plot to fit an A4 (landscape?) sheet.
DXF_UNITS GetDXFPlotUnits() const
bool GetAutoScale() const
int m_scaleSelection
Scale ratio index (UI only)
bool GetPlotInvisibleText() const
void SetA4Output(int aForce)
PLOT_TEXT_MODE GetTextMode() const
void SetHPGLPenNum(int aVal)
PLOT_TEXT_MODE m_textMode
Choose how represent text with PS, PDF and DXF drivers.
bool m_plotValue
Enable plotting of part values.
void SetDXFPlotPolygonMode(bool aFlag)
void SetAutoScale(bool aFlag)
double GetHPGLPenDiameter() const
unsigned GetSvgPrecision() const
wxString m_outputDirectory
Output directory for plot files (usually relative to the board file)
void SetPlotFrameRef(bool aFlag)
void SetDashedLineGapRatio(double aVal)
unsigned GetBlackAndWhite() const
bool m_autoScale
When true set the scale to fit the board in the page.
bool m_useGerberProtelExtensions
When plotting gerber files, use a conventional set of Protel extensions instead of ....
int m_HPGLPenSpeed
HPGL only: pen speed, always in cm/s (1 to 99 cm/s)
bool GetCreateGerberJobFile() const
bool GetDXFPlotPolygonMode() const
bool m_useAuxOrigin
Plot gerbers using auxiliary (drill) origin instead of absolute coordinates.
void SetSketchPadLineWidth(int aWidth)
double m_scale
Global scale factor, 1.0 plots a board with its actual size.
LSET GetLayerSelection() const
bool GetPlotReference() const
wxString GetOutputDirectory() const
int GetScaleSelection() const
void SetPlotOnAllLayersSelection(LSET aSelection)
int m_widthAdjust
This width factor is intended to compensate PS printers/ plotters that do not strictly obey line widt...
LSET GetPlotOnAllLayersSelection() const
bool SetHPGLPenDiameter(double aValue)
void SetScale(double aVal)
void SetDisableGerberMacros(bool aDisable)
double m_fineScaleAdjustX
fine scale adjust X axis
LSET m_plotOnAllLayersSelection
Set of layers that get plotted on each of the layers to plot.
void SetScaleSelection(int aSelection)
double m_dashedLineDashRatio
void SetFineScaleAdjustX(double aVal)
void Format(OUTPUTFORMATTER *aFormatter, int aNestLevel, int aControl=0) const
void SetMirror(bool aFlag)
void SetBlackAndWhite(bool blackAndWhite)
void SetPlotViaOnMaskLayer(bool aFlag)
bool m_plotFrameRef
True to plot/print frame references.
void SetGerberPrecision(int aPrecision)
bool m_blackAndWhite
Plot in black and white only.
void SetSubtractMaskFromSilk(bool aSubtract)
bool SetHPGLPenSpeed(int aValue)
bool m_plotInvisibleText
Force plotting of fields marked invisible.
int GetSketchPadLineWidth() const
PLOT_FORMAT m_format
Plot format type (chooses the driver to be used)
bool GetSketchPadsOnFabLayers() const
bool m_createGerberJobFile
generate the auxiliary "job file" in gerber format
bool GetSubtractMaskFromSilk() const
void SetPlotValue(bool aFlag)
int GetGerberPrecision() const
bool m_plotReference
Enable plotting of part references.
double m_fineScaleAdjustY
fine scale adjust Y axis
double m_HPGLPenDiam
HPGL only: pen diameter in MILS, useful to fill areas However, it is in mm in hpgl files.
bool m_DXFplotPolygonMode
DXF format: Plot items in outline (polygon) mode.
int GetHPGLPenSpeed() const
double GetFineScaleAdjustY() const
bool m_gerberDisableApertMacros
Disable aperture macros in Gerber format (only for broken Gerber readers) Ideally,...
void SetUseGerberProtelExtensions(bool aUse)
void SetDashedLineDashRatio(double aVal)
void Parse(PCB_PLOT_PARAMS_PARSER *aParser)
bool m_subtractMaskFromSilk
On gerbers 'scrape' away the solder mask from silkscreen (trim silks)
COLOR_SETTINGS * m_colors
Pointer to active color settings to be used for plotting.
int GetHPGLPenNum() const
DRILL_MARKS GetDrillMarksType() const
bool GetUseGerberX2format() const
bool m_mirror
Mirror the plot around the X axis.
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)
bool m_includeGerberNetlistInfo
Include netlist info (only in Gerber X2 format) (chapter ? in revision ?)
bool GetPlotValue() const
void SetPlotInvisibleText(bool aFlag)
void SetCreateGerberJobFile(bool aCreate)
unsigned m_svgPrecision
precision of coordinates in SVG files: accepted 3 - 6 6 is the internal resolution of Pcbnew
bool GetIncludeGerberNetlistInfo() const
void SetNegative(bool aFlag)
double GetFineScaleAdjustX() const
void SetPlotMode(OUTLINE_MODE aPlotMode)
double GetDashedLineGapRatio() const
void SetUseAuxOrigin(bool aAux)
void SetTextMode(PLOT_TEXT_MODE aVal)
bool GetUseGerberProtelExtensions() const
double GetDashedLineDashRatio() const
void SetSvgPrecision(unsigned aPrecision)
bool GetPlotFrameRef() const
DRILL_MARKS m_drillMarks
Holes can be not plotted, have a small mark or plotted in actual size.
bool m_useGerberX2format
Include attributes from the Gerber X2 format (chapter 5 in revision J2)
bool m_negative
Plot in negative color (supported only by some drivers)
void SetFormat(PLOT_FORMAT aFormat)
bool GetPlotViaOnMaskLayer() const
bool m_plotViaOnMaskLayer
True if vias are drawn on Mask layer (ie untented, exposed by mask)
bool GetDisableGerberMacros() const
void SetFineScaleAdjustY(double aVal)
OUTLINE_MODE GetPlotMode() const
LSET m_layerSelection
Set of layers to plot.
void SetWidthAdjust(int aVal)
COLOR_SETTINGS * ColorSettings() const
DRILL_MARKS
Plots and prints can show holes in pads and vias 3 options are available:
Plot settings, and plotting engines (PostScript, Gerber, HPGL and DXF)
PLOT_TEXT_MODE
Which kind of text to output with the PSLIKE plotters.
PLOT_FORMAT
The set of supported output plot formats.