60 if( !aBoard || !aPlotter || aLayers.empty() )
100 std::vector<wxString> properties;
102 properties.emplace_back( wxString::Format( wxT(
"!%s = %s" ),
103 _(
"Reference designator" ),
104 fp->Reference().GetShownText(
false ) ) );
106 properties.emplace_back( wxString::Format( wxT(
"!%s = %s" ),
108 fp->Value().GetShownText(
false ) ) );
110 properties.emplace_back( wxString::Format( wxT(
"!%s = %s" ),
112 fp->GetFPID().GetUniStringLibItemName() ) );
114 for(
const PCB_FIELD* field : fp->GetFields() )
116 if( field->IsReference() || field->IsValue() )
119 if( field->GetText().IsEmpty() )
122 properties.emplace_back( wxString::Format( wxT(
"!%s = %s" ),
124 field->GetText() ) );
129 properties.emplace_back( wxString::Format( wxT(
"!%s = %s" ),
_(
"Library Description" ),
130 fp->GetLibDescription() ) );
132 properties.emplace_back( wxString::Format( wxT(
"!%s = %s" ),
134 fp->GetKeywords() ) );
141 BOX2I bbox = fp->GetBoundingBox(
false );
148 bbox = fp->GetBoundingBox(
true );
151 aPlotter->
Bookmark( bbox, fp->GetReference(),
_(
"Footprints" ) );
163 if( plotOpts.GetFormat() ==
PLOT_FORMAT::DXF && plotOpts.GetDXFPlotPolygonMode() )
178 LSET layer_mask( { aLayer } );
189 plotLayer( layer_mask, plotOpt );
204 if( soldermask_min_thickness == 0 )
206 plotLayer( layer_mask, plotOpt );
211 soldermask_min_thickness );
226 plotLayer( layer_mask, plotOpt );
232 plotLayer( layer_mask, plotOpt );
269 plotLayer( layer_mask, plotOpt );
291 bool onFrontFab = (
LSET( {
F_Fab } ) & aLayerMask ).any();
292 bool onBackFab = (
LSET( {
B_Fab } ) & aLayerMask ).any();
312 for(
PAD*
pad : footprint->Pads() )
316 if( !(
pad->GetLayerSet() & aLayerMask ).any() )
319 ( ( onFrontFab &&
pad->GetLayerSet().Contains(
F_Cu ) ) ||
320 ( onBackFab &&
pad->GetLayerSet().Contains(
B_Cu ) ) ) )
330 if( onCopperLayer && !
pad->IsOnCopperLayer() )
334 if( onCopperLayer && !
pad->FlashLayer( aLayerMask ) )
342 if( aLayerMask.count() == 1 )
348 if( (
pad->GetLayerSet() & aLayerMask )[
B_Cu] )
351 if( (
pad->GetLayerSet() & aLayerMask )[
F_Cu] )
354 if( sketchPads && aLayerMask[
F_Fab] )
356 else if( sketchPads && aLayerMask[
B_Fab] )
361 ( ( onFrontFab &&
pad->GetLayerSet().Contains(
F_Cu ) ) ||
362 ( onBackFab &&
pad->GetLayerSet().Contains(
B_Cu ) ) ) )
377 if( onSolderMaskLayer )
378 margin.
x = margin.
y =
pad->GetSolderMaskExpansion( aLayer );
380 if( onSolderPasteLayer )
381 margin =
pad->GetSolderPasteMargin( aLayer );
387 int mask_clearance = margin.
x;
391 pad->GetSize( aLayer ) + margin * 2 +
VECTOR2I( width_adj, width_adj );
399 double padCornerRadiusRatio =
pad->GetRoundRectRadiusRatio( aLayer );
404 && ( padPlotsSize.
x <= 0 || padPlotsSize.
y <= 0 ) )
413 pad->SetSize( aLayer, padPlotsSize );
417 (
pad->GetSize(aLayer ) ==
pad->GetDrillSize() ) &&
427 pad->SetSize( aLayer, padPlotsSize );
429 if( mask_clearance > 0 )
432 pad->SetRoundRectCornerRadius( aLayer, mask_clearance );
444 if( mask_clearance == 0 )
455 int dx = padSize.
x / 2;
456 int dy = padSize.
y / 2;
457 int ddx = padDelta.
x / 2;
458 int ddy = padDelta.
y / 2;
460 outline.
Append( -dx - ddy, dy + ddx );
461 outline.
Append( dx + ddy, dy - ddx );
462 outline.
Append( dx - ddy, -dy + ddx );
463 outline.
Append( -dx + ddy, -dy - ddx );
469 dummy.DeletePrimitivesList();
470 dummy.AddPrimitivePoly( aLayer, outline, 0,
true );
487 double radius_ratio =
pad->GetRoundRectRadiusRatio( aLayer );
488 pad->SetSize( aLayer, padPlotsSize );
489 pad->SetRoundRectRadiusRatio( aLayer, radius_ratio );
496 if( mask_clearance == 0 )
499 pad->SetSize( aLayer, padPlotsSize );
523 dummy.DeletePrimitivesList();
524 dummy.AddPrimitivePoly( aLayer, outline, 0,
true );
531 dummy.SetPosition(
pad->GetPosition() );
532 dummy.SetOffset( aLayer,
pad->GetOffset( aLayer ) );
533 dummy.SetOrientation(
pad->GetOrientation() );
545 dummy.SetParentGroup(
nullptr );
548 pad->MergePrimitivesAsPolygon( aLayer, &shape );
554 dummy.DeletePrimitivesList();
555 dummy.AddPrimitivePoly( aLayer, shape, 0,
true );
560 if( mask_clearance < 0 )
562 std::max( 0, padPlotsSize.
y ) ) );
570 pad->SetSize( aLayer, padSize );
571 pad->SetDelta( aLayer, padDelta );
572 pad->SetShape( aLayer, padShape );
573 pad->SetRoundRectRadiusRatio( aLayer, padCornerRadiusRatio );
577 plotPadLayer( layer );
580 if( footprint->IsDNP()
583 && ( onFrontFab || onBackFab ) )
585 BOX2I rect = footprint->GetBoundingHull().BBox();
617 LSET via_mask_layer =
via->GetLayerSet();
619 if( !( via_mask_layer & aLayerMask ).any() )
623 double width_adj = 0;
626 if( onSolderMaskLayer )
627 via_margin =
via->GetSolderMaskExpansion();
633 if( onCopperLayer && !
via->FlashLayer( aLayerMask ) )
639 diameter = std::max( diameter,
via->GetWidth( layer ) );
641 diameter += 2 * via_margin + width_adj;
656 if( aLayerMask.count() == 1 )
696 if( !( aLayerMask & track->GetLayerSet() ).any() )
703 gbr_metadata.
SetNetName( track->GetNetname() );
707 if( onSolderMaskLayer )
708 margin = track->GetSolderMaskExpansion();
710 int width = track->GetWidth() + 2 * margin + itemplotter.
getFineWidthAdj();
723 arc->
GetRadius(), width, plotMode, &gbr_metadata );
728 aPlotter->
ThickSegment( track->GetStart(), track->GetEnd(), width, plotMode,
734 aPlotter->
ThickSegment( track->GetStart(), track->GetEnd(), width, plotMode,
746 for(
const ZONE* zone : aBoard->
Zones() )
748 if( zone->GetIsRuleArea() )
753 if( !aLayerMask[layer] )
761 if( zone->IsIsland( layer, i ) )
768 itemplotter.
PlotZone( zone, layer, mainArea );
773 dummy.SetNet( &nonet );
806 std::vector<VECTOR2I> cornerList;
811 for(
int kk = 0; kk <= outlines.
HoleCount(ii); kk++ )
815 : outlines.
CHole( ii, kk - 1 );
830 for(
PAD*
pad : footprint->Pads() )
834 std::shared_ptr<SHAPE_SEGMENT> slot =
pad->GetEffectiveHoleShape();
836 if( slot->GetSeg().A == slot->GetSeg().B )
838 int drill = std::min( smallDrill, slot->GetWidth() );
844 aPlotter->
ThickSegment( slot->GetSeg().A, slot->GetSeg().B,
845 slot->GetWidth(),
SKETCH,
nullptr );
860 if(
via->GetLayerSet().Contains( layer ) )
893 boardOutline = &buffer;
897 int inflate = aMinThickness / 2 - 1;
914 auto plotFPTextItem =
923 if( aText.GetText() == wxT(
"${REFERENCE}" ) && !itemplotter.
GetPlotReference() )
926 if( aText.GetText() == wxT(
"${VALUE}" ) && !itemplotter.
GetPlotValue() )
930 aText.TransformTextToPolySet( initialPolys, 0, maxError,
ERROR_OUTSIDE );
933 aText.TransformTextToPolySet( areas, inflate, maxError,
ERROR_OUTSIDE );
944 footprint->TransformPadsToPolySet( initialPolys, layer, 0, maxError,
ERROR_OUTSIDE );
946 footprint->TransformPadsToPolySet( areas, layer, inflate, maxError,
ERROR_OUTSIDE );
948 for(
const PCB_FIELD* field : footprint->GetFields() )
956 if( field->IsOnLayer( layer ) )
957 plotFPTextItem(
static_cast<const PCB_TEXT&
>( *field ) );
960 for(
const BOARD_ITEM* item : footprint->GraphicalItems() )
962 if( item->IsOnLayer( layer ) )
966 plotFPTextItem(
static_cast<const PCB_TEXT&
>( *item ) );
971 item->TransformShapeToPolygon( initialPolys, layer, 0, maxError,
975 item->TransformShapeToPolygon( areas, layer, inflate, maxError,
991 if( !
via->IsOnLayer( layer ) )
994 int clearance =
via->GetSolderMaskExpansion();
997 via->TransformShapeToPolygon( initialPolys, layer, clearance, maxError,
ERROR_OUTSIDE );
1000 clearance += inflate;
1001 via->TransformShapeToPolygon( areas, layer, clearance, maxError,
ERROR_OUTSIDE );
1008 int zone_margin = 0;
1013 if( item->IsOnLayer( layer ) )
1028 item->TransformShapeToPolygon( initialPolys, layer, 0, maxError,
1032 item->TransformShapeToPolygon( areas, layer, inflate, maxError,
ERROR_OUTSIDE );
1039 if( zone->GetIsRuleArea() )
1042 if( !zone->IsOnLayer( layer ) )
1046 zone->TransformSmoothedOutlineToPolygon( areas, inflate + zone_margin, maxError,
1050 zone->TransformSmoothedOutlineToPolygon( initialPolys, zone_margin, maxError,
1065 ZONE zone( aBoard );
1074 itemplotter.
PlotZone( &zone, layer, areas );
1093 bool autocenter =
false;
1102 sheet_info = &pageA4;
1104 paperscale = (double) paperSizeIU.
x / pageSizeIU.
x;
1109 sheet_info = &pageInfo;
1110 paperSizeIU = pageSizeIU;
1114 autocenter = (aPlotOpts->
GetScale() != 1.0);
1121 double compound_scale;
1125 if( aPlotOpts->
GetAutoScale() && boardSize.
x > 0 && boardSize.
y > 0 )
1127 double xscale = (paperSizeIU.
x * 0.8) / boardSize.
x;
1128 double yscale = (paperSizeIU.
y * 0.8) / boardSize.
y;
1130 compound_scale = std::min( xscale, yscale ) * paperscale;
1134 compound_scale = aPlotOpts->
GetScale() * paperscale;
1143 offset.
x =
KiROUND( boardCenter.
x - ( paperSizeIU.
x / 2.0 ) / compound_scale );
1144 offset.
y =
KiROUND( boardCenter.
y - ( paperSizeIU.
y / 2.0 ) / compound_scale );
1177 BOX2I area = aBbbox;
1207 const wxString& aLayerName,
const wxString& aFullFileName,
1208 const wxString& aSheetName,
const wxString& aSheetPath,
1209 const wxString& aPageName,
const wxString& aPageNumber,
1210 const int aPageCount )
1212 wxCHECK( aBoard && aPlotOpts,
nullptr );
1224 plotter = DXF_plotter;
1232 plotter = PS_plotter;
1245 plotter = HPGL_plotter;
1253 wxLogError( wxString::Format(
1254 "Invalid board layer %d, cannot build a valid Gerber file header",
1287 if( plotter->
OpenFile( aFullFileName ) )
1305 bool startPlotSuccess =
false;
1309 static_cast<PDF_PLOTTER*
>( plotter )->StartPlot( aPageNumber, aPageName );
1313 startPlotSuccess = plotter->
StartPlot( aPageName );
1317 if( startPlotSuccess )
1324 aPageCount, aSheetName, aSheetPath, aBoard->
GetFileName(),
1352 const wxString& aSheetName,
const wxString& aSheetPath,
1353 const wxString& aPageNumber,
int aPageCount )
constexpr EDA_IU_SCALE pcbIUScale
constexpr BOX2I KiROUND(const BOX2D &aBoxD)
static const ADVANCED_CFG & GetCfg()
Get the singleton instance's config, which is shared by all consumers.
const VECTOR2I & GetAuxOrigin()
int m_SolderMaskExpansion
int m_LineThickness[LAYER_CLASS_COUNT]
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Information pertinent to a Pcbnew printed circuit board.
bool GetBoardPolygonOutlines(SHAPE_POLY_SET &aOutlines, OUTLINE_ERROR_HANDLER *aErrorHandler=nullptr, bool aAllowUseArcsInPolygons=false, bool aIncludeNPTHAsOutlines=false)
Extract the board outlines and build a closed polygon from lines, arcs and circle items on edge cut l...
const PAGE_INFO & GetPageSettings() const
const ZONES & Zones() const
void ConvertBrdLayerToPolygonalContours(PCB_LAYER_ID aLayer, SHAPE_POLY_SET &aOutlines) const
Build a set of polygons which are the outlines of copper items (pads, tracks, vias,...
TITLE_BLOCK & GetTitleBlock()
BOX2I ComputeBoundingBox(bool aBoardEdgesOnly=false) const
Calculate the bounding box containing all board items (or board edge segments).
const std::map< wxString, wxString > & GetProperties() const
const FOOTPRINTS & Footprints() const
const TRACKS & Tracks() const
const wxString & GetFileName() const
PROJECT * GetProject() const
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
const DRAWINGS & Drawings() const
constexpr BOX2< Vec > & Inflate(coord_type dx, coord_type dy)
Inflates the rectangle horizontally by dx and vertically by dy.
constexpr const Vec GetEnd() const
constexpr size_type GetWidth() const
constexpr Vec Centre() const
constexpr size_type GetHeight() const
constexpr coord_type GetLeft() const
constexpr void Move(const Vec &aMoveVector)
Move the rectangle by the aMoveVector.
constexpr const Vec & GetOrigin() const
constexpr coord_type GetRight() const
constexpr const SizeVec & GetSize() const
constexpr coord_type GetTop() const
constexpr coord_type GetBottom() const
void PlotDrillMarks()
Draw a drill mark for pads and vias.
void PlotZone(const ZONE *aZone, PCB_LAYER_ID aLayer, const SHAPE_POLY_SET &aPolysList)
void PlotPadNumber(const PAD *aPad, const COLOR4D &aColor)
void PlotBoardGraphicItem(const BOARD_ITEM *item)
Plot items like text and graphics but not tracks and footprints.
void SetLayerSet(LSET aLayerMask)
void PlotPad(const PAD *aPad, PCB_LAYER_ID aLayer, const COLOR4D &aColor, OUTLINE_MODE aPlotMode)
Plot a pad.
COLOR4D getColor(int aLayer) const
White color is special because it cannot be seen on a white paper in B&W mode.
void PlotFootprintTextItems(const FOOTPRINT *aFootprint)
int getFineWidthAdj() const
void PlotFootprintGraphicItems(const FOOTPRINT *aFootprint)
COLOR4D GetColor(int aLayer) const
When creating polygons to create a clearance polygonal area, the polygon must be same or bigger than ...
void SetUnits(DXF_UNITS aUnit)
Set the units to use for plotting the DXF file.
void UseX2format(bool aEnable)
void UseX2NetAttributes(bool aEnable)
void DisableApertMacros(bool aDisable)
Disable Aperture Macro (AM) command, only for broken Gerber Readers.
virtual void SetPenSpeed(int speed)
virtual void SetPenNumber(int number)
virtual void SetPenDiameter(double diameter)
A color representation with 4 components: red, green, blue, alpha.
static const COLOR4D UNSPECIFIED
For legacy support; used as a value to indicate color hasn't been set yet.
static const COLOR4D BLACK
PCB specific render settings.
void LoadColors(const COLOR_SETTINGS *aSettings) override
void SetDefaultPenWidth(int aWidth)
const COLOR4D & GetLayerColor(int aLayer) const
Return the color used to draw a layer.
void SetLayerName(const wxString &aLayerName)
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 AllCuMask(int aCuLayerCount=MAX_CU_LAYERS)
Return a mask holding the requested number of Cu PCB_LAYER_IDs.
LSEQ Seq(const LSEQ &aSequence) const
Return an LSEQ from the union of this LSET and a desired sequence.
Handle the data for a net.
Describe the page size and margins of a paper page on which to eventually print or plot.
const VECTOR2D GetSizeIU(double aIUScale) const
Gets the page size in internal units.
bool IsDegenerated(int aThreshold=5) const
EDA_ANGLE GetArcAngleStart() const
EDA_ANGLE GetAngle() const
virtual VECTOR2I GetCenter() const override
This defaults to the center of the bounding box if not overridden.
Parameters and options when plotting/printing a board.
PLOT_FORMAT GetFormat() const
bool GetSkipPlotNPTH_Pads() const
void SetDrillMarksType(DRILL_MARKS aVal)
bool GetUseAuxOrigin() const
bool GetHideDNPFPsOnFabLayers() const
void SetSkipPlotNPTH_Pads(bool aSkip)
DXF_UNITS GetDXFPlotUnits() const
bool GetAutoScale() const
bool GetPlotInvisibleText() const
PLOT_TEXT_MODE GetTextMode() const
bool GetCrossoutDNPFPsOnFabLayers() const
void SetDXFPlotPolygonMode(bool aFlag)
double GetHPGLPenDiameter() const
unsigned GetSvgPrecision() const
unsigned GetBlackAndWhite() const
bool GetPlotReference() const
bool m_PDFFrontFPPropertyPopups
Generate PDF property popup menus for footprints.
void SetMirror(bool aFlag)
bool GetSketchPadsOnFabLayers() const
bool GetSubtractMaskFromSilk() const
int GetGerberPrecision() const
int GetHPGLPenSpeed() const
double GetFineScaleAdjustY() const
bool GetPlotPadNumbers() const
int GetHPGLPenNum() const
DRILL_MARKS GetDrillMarksType() const
bool GetUseGerberX2format() const
bool GetPlotValue() const
bool GetIncludeGerberNetlistInfo() const
double GetFineScaleAdjustX() const
bool m_PDFBackFPPropertyPopups
on front and/or back of board
bool GetPlotFPText() const
bool GetPlotFrameRef() const
bool GetDisableGerberMacros() const
OUTLINE_MODE GetPlotMode() const
COLOR_SETTINGS * ColorSettings() const
Base plotter engine class.
virtual void ThickArc(const EDA_SHAPE &aArcShape, OUTLINE_MODE aTraceMode, void *aData, int aWidth)
virtual void ThickSegment(const VECTOR2I &start, const VECTOR2I &end, int width, OUTLINE_MODE tracemode, void *aData)
virtual void Circle(const VECTOR2I &pos, int diametre, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH)=0
virtual bool OpenFile(const wxString &aFullFilename)
Open or create the plot file aFullFilename.
virtual void SetNegative(bool aNegative)
virtual void SetSvgCoordinatesFormat(unsigned aPrecision)
Set the number of digits for mantissa in coordinates in mm for SVG plotter.
virtual void SetPageSettings(const PAGE_INFO &aPageSettings)
void SetRenderSettings(RENDER_SETTINGS *aSettings)
virtual bool StartPlot(const wxString &aPageNumber)=0
RENDER_SETTINGS * RenderSettings()
virtual void SetGerberCoordinatesFormat(int aResolution, bool aUseInches=false)
virtual void Bookmark(const BOX2I &aBox, const wxString &aName, const wxString &aGroupName=wxEmptyString)
Create a bookmark to a symbol.
virtual PLOT_FORMAT GetPlotterType() const =0
Return the effective plot engine in use.
virtual void SetTextMode(PLOT_TEXT_MODE mode)
Change the current text mode.
virtual void SetCreator(const wxString &aCreator)
VECTOR2I GetPlotOffsetUserUnits()
void ClearHeaderLinesList()
Remove all lines from the list of free lines to print at the beginning of the file.
virtual void FlashPadCircle(const VECTOR2I &aPadPos, int aDiameter, OUTLINE_MODE aTraceMode, void *aData)=0
virtual void SetViewport(const VECTOR2I &aOffset, double aIusPerDecimil, double aScale, bool aMirror)=0
Set the plot offset and scaling for the current plot.
virtual void SetColorMode(bool aColorMode)
Plot in B/W or color.
virtual void StartBlock(void *aData)
calling this function allows one to define the beginning of a group of drawing items,...
virtual void PlotPoly(const std::vector< VECTOR2I > &aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void *aData=nullptr)=0
Draw a polygon ( filled or not ).
virtual void HyperlinkMenu(const BOX2I &aBox, const std::vector< wxString > &aDestURLs)
Create a clickable hyperlink menu with a rectangular click area.
virtual void SetLayerPolarity(bool aPositive)
Set the current Gerber layer polarity to positive or negative by writing %LPD*% or %LPC*% to the Gerb...
virtual void Rect(const VECTOR2I &p1, const VECTOR2I &p2, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH)=0
virtual void SetColor(const COLOR4D &color)=0
virtual void EndBlock(void *aData)
calling this function allows one to define the end of a group of drawing items for instance in SVG or...
void SetScaleAdjust(double scaleX, double scaleY)
Set the 'fine' scaling for the postscript engine.
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
Represent a set of closed polygons.
void RemoveAllContours()
Remove all outlines & holes (clears) the polygon set.
void BooleanAdd(const SHAPE_POLY_SET &b)
Perform boolean polyset union.
int AddOutline(const SHAPE_LINE_CHAIN &aOutline)
Adds a new outline to the set and returns its index.
void DeletePolygon(int aIdx)
Delete aIdx-th polygon from the set.
bool IsEmpty() const
Return true if the set is empty (no polygons at all)
void Fracture()
Convert a set of polygons with holes to a single outline with "slits"/"fractures" connecting the oute...
int HoleCount(int aOutline) const
Returns the number of holes in a given outline.
int Append(int x, int y, int aOutline=-1, int aHole=-1, bool aAllowDuplication=false)
Appends a vertex at the end of the given outline/hole (default: the last outline)
void Simplify()
Simplify the polyset (merges overlapping polys, eliminates degeneracy/self-intersections)
int NewOutline()
Creates a new empty polygon in the set and returns its index.
void Deflate(int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError)
const SHAPE_LINE_CHAIN & CHole(int aOutline, int aHole) const
int OutlineCount() const
Return the number of outlines in the set.
void InflateWithLinkedHoles(int aFactor, CORNER_STRATEGY aCornerStrategy, int aMaxError)
Perform outline inflation/deflation, using round corners.
SHAPE_POLY_SET CloneDropTriangulation() const
const POLYGON & CPolygon(int aIndex) const
const SHAPE_LINE_CHAIN & COutline(int aIndex) const
Handle a list of polygons defining a copper zone.
void SetMinThickness(int aMinThickness)
virtual void SetLayer(PCB_LAYER_ID aLayer) override
Set the layer this item is on.
void PlotDrawingSheet(PLOTTER *plotter, const PROJECT *aProject, const TITLE_BLOCK &aTitleBlock, const PAGE_INFO &aPageInfo, const std::map< wxString, wxString > *aProperties, const wxString &aSheetNumber, int aSheetCount, const wxString &aSheetName, const wxString &aSheetPath, const wxString &aFilename, COLOR4D aColor, bool aIsFirstPage)
@ CHAMFER_ALL_CORNERS
All angles are chamfered.
@ ROUND_ALL_CORNERS
All angles are rounded.
static constexpr EDA_ANGLE ANGLE_0
@ FILLED_SHAPE
Fill with object color.
a few functions useful in geometry calculations.
double m_SmallDrillMarkSize
The diameter of the drill marks on print and plot outputs (in mm) when the "Drill marks" option is se...
bool IsCopperLayer(int aLayerId)
Test whether a layer is a copper layer.
@ LAYER_DRAWINGSHEET
Sheet frame and title block.
@ LAYER_VIAS
Meta control for all vias opacity/visibility.
PCB_LAYER_ID
A quick note on layer IDs:
@ NPTH
like PAD_PTH, but not plated mechanical use only, no connection allowed
PAD_SHAPE
The set of pad shapes, used with PAD::{Set,Get}Shape()
void AddGerberX2Attribute(PLOTTER *aPlotter, const BOARD *aBoard, int aLayer, bool aUseX1CompatibilityMode)
Calculate some X2 attributes as defined in the Gerber file format specification and add them to the g...
static void FillNegativeKnockout(PLOTTER *aPlotter, const BOX2I &aBbbox)
Prefill in black an area a little bigger than the board to prepare for the negative plot.
void PlotBoardLayers(BOARD *aBoard, PLOTTER *aPlotter, const LSEQ &aLayers, const PCB_PLOT_PARAMS &aPlotOptions)
Plot a sequence of board layer IDs.
void PlotStandardLayer(BOARD *aBoard, PLOTTER *aPlotter, LSET aLayerMask, const PCB_PLOT_PARAMS &aPlotOpt)
Plot any layer EXCEPT a solder-mask with an enforced minimum width.
static void PlotSolderMaskLayer(BOARD *aBoard, PLOTTER *aPlotter, LSET aLayerMask, const PCB_PLOT_PARAMS &aPlotOpt, int aMinThickness)
Plot a solder mask layer.
void PlotOneBoardLayer(BOARD *aBoard, PLOTTER *aPlotter, PCB_LAYER_ID aLayer, const PCB_PLOT_PARAMS &aPlotOpt)
Plot one copper or technical layer.
PLOTTER * StartPlotBoard(BOARD *aBoard, const PCB_PLOT_PARAMS *aPlotOpts, int aLayer, const wxString &aLayerName, const wxString &aFullFileName, const wxString &aSheetName, const wxString &aSheetPath, const wxString &aPageName, const wxString &aPageNumber, const int aPageCount)
Open a new plotfile using the options (and especially the format) specified in the options and prepar...
void PlotLayerOutlines(BOARD *aBoard, PLOTTER *aPlotter, LSET aLayerMask, const PCB_PLOT_PARAMS &aPlotOpt)
Plot outlines.
static void ConfigureHPGLPenSizes(HPGL_PLOTTER *aPlotter, const PCB_PLOT_PARAMS *aPlotOpts)
Calculate the effective size of HPGL pens and set them in the plotter object.
void setupPlotterNewPDFPage(PLOTTER *aPlotter, BOARD *aBoard, const PCB_PLOT_PARAMS *aPlotOpts, const wxString &aSheetName, const wxString &aSheetPath, const wxString &aPageNumber, int aPageCount)
static void initializePlotter(PLOTTER *aPlotter, const BOARD *aBoard, const PCB_PLOT_PARAMS *aPlotOpts)
Set up most plot options for plotting a board (especially the viewport) Important thing: page size is...
void PlotInteractiveLayer(BOARD *aBoard, PLOTTER *aPlotter, const PCB_PLOT_PARAMS &aPlotOpt)
Plot interactive items (hypertext links, properties, etc.).
Plotting engines similar to ps (PostScript, Gerber, svg)
std::vector< FAB_LAYER_COLOR > dummy
constexpr int mmToIU(double mm) const
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)
@ PCB_TEXT_T
class PCB_TEXT, text on a layer
@ PCB_ARC_T
class PCB_ARC, an arc track segment on a copper layer
VECTOR2< int32_t > VECTOR2I