32 for(
size_t bit = 128; bit < aLayers.size(); ++bit )
34 if( aLayers.test( bit ) )
35 THROW_IO_ERROR( wxT(
"Unreviewed plot layer in a frozen writer." ) );
39 constexpr char hex[] =
"0123456789abcdef";
41 for(
int nibble = 31; nibble >= 0; --nibble )
43 if( nibble != 31 && ( nibble + 1 ) % 8 == 0 )
48 for(
int bit = 0; bit < 4; ++bit )
50 const size_t index = nibble * 4 + bit;
52 if(
index < aLayers.size() && aLayers.test(
index ) )
74 default:
THROW_IO_ERROR( wxT(
"Unsupported plot format in a frozen writer." ) );
85 commonLayers.
set( layer );
88 aOut->
Print(
"(plot_on_all_layers_selection 0x%s)",
FormatLayerSet( commonLayers ).c_str() );
117 aOut->
Print(
"(hpglpennumber 1)(hpglpenspeed 20)(hpglpendiameter %f)", 15.0 );
132 FormatBool( aOut,
"plotinvisibletext",
false );
140 aOut->
Print(
"(outputformat %d)", format );
BASE_SET & set(size_t pos)
LSET is a set of PCB_LAYER_IDs.
Parameters and options when plotting/printing a board.
PLOT_FORMAT GetFormat() const
bool GetUseAuxOrigin() const
LSEQ GetPlotOnAllLayersSequence() const
bool GetHideDNPFPsOnFabLayers() const
DXF_UNITS GetDXFPlotUnits() const
bool GetCrossoutDNPFPsOnFabLayers() const
bool GetSketchDNPFPsOnFabLayers() const
unsigned GetSvgPrecision() const
bool m_PDFMetadata
Generate PDF metadata for SUBJECT and AUTHOR.
PLOT_TEXT_MODE GetTextMode() const override
bool GetCreateGerberJobFile() const
bool GetDXFPlotPolygonMode() const
LSET GetLayerSelection() const
wxString GetOutputDirectory() const
int GetScaleSelection() const
bool m_PDFFrontFPPropertyPopups
Generate PDF property popup menus for footprints.
DXF_OUTLINE_MODE GetDXFPlotMode() const override
bool GetSketchPadsOnFabLayers() const
bool GetSubtractMaskFromSilk() const
int GetGerberPrecision() const
bool GetPlotPadNumbers() const
DRILL_MARKS GetDrillMarksType() const
bool GetUseGerberX2format() const
bool GetIncludeGerberNetlistInfo() const
bool m_PDFSingle
Generate a single PDF file for all layers.
bool GetBlackAndWhite() const
double GetDashedLineGapRatio() const
bool m_PDFBackFPPropertyPopups
on front and/or back of board
bool GetUseGerberProtelExtensions() const
double GetDashedLineDashRatio() const
bool GetPlotFrameRef() const
bool GetDisableGerberMacros() const
#define THROW_IO_ERROR(msg)
macro which captures the "call site" values of FILE_, __FUNCTION & LINE
PCB_LAYER_ID
A quick note on layer IDs:
PLOT_FORMAT
The set of supported output plot formats.
std::string FormatDouble2Str(double aValue)
Print a float number without using scientific notation and no trailing 0 This function is intended in...
wxString result
Test unit parsing edge cases and error handling.