![]() |
KiCad PCB EDA Suite
|
#include <pcbplot.h>
Public Types | |
enum | DrillMarksType { NO_DRILL_SHAPE = 0, SMALL_DRILL_SHAPE = 1, FULL_DRILL_SHAPE = 2 } |
Public Member Functions | |
BRDITEMS_PLOTTER (PLOTTER *aPlotter, BOARD *aBoard, const PCB_PLOT_PARAMS &aPlotOpts) | |
int | getFineWidthAdj () const |
void | SetLayerSet (LSET aLayerMask) |
void | PlotFootprintGraphicItems (const FOOTPRINT *aFootprint) |
void | PlotFootprintGraphicItem (const FP_SHAPE *aShape) |
void | PlotFootprintTextItem (const FP_TEXT *aText, const COLOR4D &aColor) |
void | PlotFootprintTextItems (const FOOTPRINT *aFootprint) |
void | PlotDimension (const PCB_DIMENSION_BASE *aDim) |
void | PlotPcbTarget (const PCB_TARGET *aMire) |
void | PlotFilledAreas (const ZONE *aZone, const SHAPE_POLY_SET &aPolysList) |
void | PlotPcbText (const PCB_TEXT *aText) |
void | PlotPcbShape (const PCB_SHAPE *aShape) |
void | PlotPad (const PAD *aPad, const COLOR4D &aColor, OUTLINE_MODE aPlotMode) |
Plot a pad. More... | |
void | PlotBoardGraphicItems () |
Plot items like text and graphics but not tracks and footprints. More... | |
void | PlotDrillMarks () |
Draw a drill mark for pads and vias. More... | |
COLOR4D | getColor (LAYER_NUM aLayer) const |
White color is special because it cannot be seen on a white paper in B&W mode. More... | |
void | SetSkipPlotNPTH_Pads (bool aSkip) |
bool | GetSkipPlotNPTH_Pads () const |
void | Format (OUTPUTFORMATTER *aFormatter, int aNestLevel, int aControl=0) const |
void | Parse (PCB_PLOT_PARAMS_PARSER *aParser) |
bool | IsSameAs (const PCB_PLOT_PARAMS &aPcbPlotParams) const |
Compare current settings to aPcbPlotParams, including not saved parameters in brd file. More... | |
void | SetColorSettings (COLOR_SETTINGS *aSettings) |
COLOR_SETTINGS * | ColorSettings () const |
void | SetTextMode (PLOT_TEXT_MODE aVal) |
PLOT_TEXT_MODE | GetTextMode () const |
void | SetPlotMode (OUTLINE_MODE aPlotMode) |
OUTLINE_MODE | GetPlotMode () const |
void | SetDXFPlotPolygonMode (bool aFlag) |
bool | GetDXFPlotPolygonMode () const |
void | SetDXFPlotUnits (DXF_UNITS aUnit) |
DXF_UNITS | GetDXFPlotUnits () const |
void | SetDrillMarksType (DrillMarksType aVal) |
DrillMarksType | GetDrillMarksType () const |
void | SetScale (double aVal) |
double | GetScale () const |
void | SetFineScaleAdjustX (double aVal) |
double | GetFineScaleAdjustX () const |
void | SetFineScaleAdjustY (double aVal) |
double | GetFineScaleAdjustY () const |
void | SetWidthAdjust (int aVal) |
int | GetWidthAdjust () const |
void | SetAutoScale (bool aFlag) |
bool | GetAutoScale () const |
void | SetMirror (bool aFlag) |
bool | GetMirror () const |
void | SetSketchPadsOnFabLayers (bool aFlag) |
bool | GetSketchPadsOnFabLayers () const |
void | SetSketchPadLineWidth (int aWidth) |
int | GetSketchPadLineWidth () const |
void | SetPlotInvisibleText (bool aFlag) |
bool | GetPlotInvisibleText () const |
void | SetPlotValue (bool aFlag) |
bool | GetPlotValue () const |
void | SetPlotReference (bool aFlag) |
bool | GetPlotReference () const |
void | SetNegative (bool aFlag) |
bool | GetNegative () const |
void | SetPlotViaOnMaskLayer (bool aFlag) |
bool | GetPlotViaOnMaskLayer () const |
void | SetPlotFrameRef (bool aFlag) |
bool | GetPlotFrameRef () const |
void | SetExcludeEdgeLayer (bool aFlag) |
bool | GetExcludeEdgeLayer () const |
void | SetFormat (PLOT_FORMAT aFormat) |
PLOT_FORMAT | GetFormat () const |
void | SetOutputDirectory (const wxString &aDir) |
wxString | GetOutputDirectory () const |
void | SetDisableGerberMacros (bool aDisable) |
bool | GetDisableGerberMacros () const |
void | SetUseGerberX2format (bool aUse) |
bool | GetUseGerberX2format () const |
void | SetIncludeGerberNetlistInfo (bool aUse) |
bool | GetIncludeGerberNetlistInfo () const |
void | SetCreateGerberJobFile (bool aCreate) |
bool | GetCreateGerberJobFile () const |
void | SetUseGerberProtelExtensions (bool aUse) |
bool | GetUseGerberProtelExtensions () const |
void | SetGerberPrecision (int aPrecision) |
int | GetGerberPrecision () const |
void | SetSvgPrecision (unsigned aPrecision, bool aUseInch) |
unsigned | GetSvgPrecision () const |
bool | GetSvgUseInch () const |
void | SetSubtractMaskFromSilk (bool aSubtract) |
bool | GetSubtractMaskFromSilk () const |
void | SetLayerSelection (LSET aSelection) |
LSET | GetLayerSelection () const |
void | SetUseAuxOrigin (bool aAux) |
bool | GetUseAuxOrigin () const |
void | SetScaleSelection (int aSelection) |
int | GetScaleSelection () const |
void | SetA4Output (int aForce) |
bool | GetA4Output () const |
double | GetHPGLPenDiameter () const |
bool | SetHPGLPenDiameter (double aValue) |
int | GetHPGLPenSpeed () const |
bool | SetHPGLPenSpeed (int aValue) |
void | SetHPGLPenNum (int aVal) |
int | GetHPGLPenNum () const |
Static Public Member Functions | |
static int | GetGerberDefaultPrecision () |
Default precision of coordinates in Gerber files. More... | |
Private Member Functions | |
void | plotOneDrillMark (PAD_DRILL_SHAPE_T aDrillShape, const wxPoint &aDrillPos, const wxSize &aDrillSize, const wxSize &aPadSize, double aOrientation, int aSmallDrill) |
Helper function to plot a single drill mark. More... | |
Private Attributes | |
PLOTTER * | m_plotter |
BOARD * | m_board |
LSET | m_layerMask |
|
inherited |
Enumerator | |
---|---|
NO_DRILL_SHAPE | |
SMALL_DRILL_SHAPE | |
FULL_DRILL_SHAPE |
Definition at line 38 of file pcb_plot_params.h.
|
inline |
|
inlineinherited |
Definition at line 64 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_colors.
Referenced by getColor(), PlotDimension(), PlotStandardLayer(), and StartPlotBoard().
|
inherited |
Definition at line 166 of file pcb_plot_params.cpp.
References gbrDefaultPrecision, getTokenName(), INCHES, NATIVE, OUTPUTFORMATTER::Print(), and SKETCH.
Referenced by PCB_PLUGIN::formatSetup().
|
inlineinherited |
Definition at line 184 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_A4Output.
Referenced by DIALOG_PLOT::init_Dialog(), and initializePlotter().
|
inlineinherited |
Definition at line 106 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_autoScale.
Referenced by initializePlotter().
White color is special because it cannot be seen on a white paper in B&W mode.
It is plotted as white but other colors are plotted in BLACK so the returned color is LIGHTGRAY when the layer color is WHITE.
aLayer | is the layer id. |
Definition at line 68 of file plot_brditems_plotter.cpp.
References color, PCB_PLOT_PARAMS::ColorSettings(), COLOR_SETTINGS::GetColor(), LIGHTGRAY, and WHITE.
Referenced by PlotFilledAreas(), PlotFootprintGraphicItem(), PlotFootprintTextItems(), PlotPcbShape(), PlotPcbTarget(), PlotPcbText(), and PlotStandardLayer().
|
inlineinherited |
Definition at line 151 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_createGerberJobFile.
Referenced by DIALOG_PLOT::init_Dialog(), and DIALOG_PLOT::Plot().
|
inlineinherited |
Definition at line 142 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_gerberDisableApertMacros.
Referenced by DIALOG_PLOT::init_Dialog(), and StartPlotBoard().
|
inlineinherited |
Definition at line 93 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_drillMarks.
Referenced by DIALOG_PLOT::init_Dialog(), PlotDrillMarks(), PlotLayerOutlines(), and PlotStandardLayer().
|
inlineinherited |
Definition at line 80 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_DXFplotPolygonMode.
Referenced by DIALOG_PLOT::init_Dialog(), and PlotOneBoardLayer().
|
inlineinherited |
Definition at line 87 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_DXFplotUnits.
Referenced by DIALOG_PLOT::init_Dialog(), and StartPlotBoard().
|
inlineinherited |
Definition at line 133 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_excludeEdgeLayer.
Referenced by DIALOG_PLOT::init_Dialog(), and PlotOneBoardLayer().
|
inlineinherited |
Definition at line 99 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_fineScaleAdjustX.
Referenced by StartPlotBoard().
|
inlineinherited |
Definition at line 101 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_fineScaleAdjustY.
Referenced by StartPlotBoard().
|
inline |
Definition at line 75 of file pcbplot.h.
References PCB_PLOT_PARAMS::GetFormat(), PCB_PLOT_PARAMS::GetWidthAdjust(), and POST.
Referenced by plotOneDrillMark(), and PlotStandardLayer().
|
inlineinherited |
Definition at line 136 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_format.
Referenced by getFineWidthAdj(), DIALOG_PLOT::init_Dialog(), DIALOG_PLOT::Plot(), PlotOneBoardLayer(), and StartPlotBoard().
|
inlinestaticinherited |
Default precision of coordinates in Gerber files.
When units are in mm (7 in inches, but Pcbnew uses mm). 6 is the internal resolution of Pcbnew, so the default is 6.
Definition at line 169 of file pcb_plot_params.h.
|
inlineinherited |
Definition at line 157 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_gerberPrecision.
Referenced by DIALOG_GENDRILL::GenDrillAndMapFiles(), DIALOG_PLOT::init_Dialog(), initializePlotter(), and DIALOG_GENDRILL::onFileFormatSelection().
|
inlineinherited |
Definition at line 188 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_HPGLPenDiam.
Referenced by DIALOG_PLOT::applyPlotSettings(), ConfigureHPGLPenSizes(), and DIALOG_PLOT::init_Dialog().
|
inlineinherited |
Definition at line 196 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_HPGLPenNum.
Referenced by ConfigureHPGLPenSizes().
|
inlineinherited |
Definition at line 192 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_HPGLPenSpeed.
Referenced by ConfigureHPGLPenSizes().
|
inlineinherited |
Definition at line 148 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_includeGerberNetlistInfo.
Referenced by DIALOG_PLOT::init_Dialog(), and StartPlotBoard().
|
inlineinherited |
Definition at line 175 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_layerSelection.
Referenced by DIALOG_PLOT::init_Dialog(), and DIALOG_PLOT::Plot().
|
inlineinherited |
Definition at line 109 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_mirror.
Referenced by DIALOG_PLOT::init_Dialog(), initializePlotter(), and StartPlotBoard().
|
inlineinherited |
Definition at line 124 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_negative.
Referenced by DIALOG_PLOT::init_Dialog(), and StartPlotBoard().
|
inlineinherited |
Definition at line 139 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_outputDirectory.
Referenced by DIALOG_GEN_FOOTPRINT_POSITION::CreateAsciiFiles(), DIALOG_GEN_FOOTPRINT_POSITION::CreateGerberFiles(), DIALOG_GENDRILL::GenDrillAndMapFiles(), DIALOG_GEN_FOOTPRINT_POSITION::initDialog(), DIALOG_GENDRILL::InitDisplayParams(), DIALOG_GENDRILL::OnGenReportFile(), PLOT_CONTROLLER::OpenPlotfile(), DIALOG_PLOT::Plot(), and DIALOG_PLOT::reInitDialog().
|
inlineinherited |
Definition at line 130 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_plotFrameRef.
Referenced by DIALOG_PLOT::init_Dialog(), and StartPlotBoard().
|
inlineinherited |
Definition at line 117 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_plotInvisibleText.
Referenced by DIALOG_PLOT::init_Dialog(), and PlotFootprintTextItems().
|
inlineinherited |
Definition at line 77 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_plotMode.
Referenced by DIALOG_PLOT::init_Dialog(), PlotDrillMarks(), PlotFilledAreas(), PlotFootprintGraphicItem(), plotOneDrillMark(), PlotPcbShape(), and PlotStandardLayer().
|
inlineinherited |
Definition at line 121 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_plotReference.
Referenced by DIALOG_PLOT::init_Dialog(), and PlotFootprintTextItems().
|
inlineinherited |
Definition at line 119 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_plotValue.
Referenced by DIALOG_PLOT::init_Dialog(), and PlotFootprintTextItems().
|
inlineinherited |
Definition at line 127 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_plotViaOnMaskLayer.
Referenced by DIALOG_PLOT::init_Dialog(), PlotSolderMaskLayer(), and PlotStandardLayer().
|
inlineinherited |
Definition at line 96 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_scale.
Referenced by ConfigureHPGLPenSizes(), initializePlotter(), and DIALOG_PLOT::Plot().
|
inlineinherited |
Definition at line 181 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_scaleSelection.
Referenced by DIALOG_PLOT::init_Dialog(), and DIALOG_PLOT::Plot().
|
inlineinherited |
Definition at line 114 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_sketchPadLineWidth.
Referenced by PlotPad().
|
inlineinherited |
Definition at line 112 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_sketchPadsOnFabLayers.
Referenced by DIALOG_PLOT::init_Dialog(), and PlotStandardLayer().
|
inlineinherited |
Definition at line 47 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_skipNPTH_Pads.
Referenced by PlotStandardLayer().
|
inlineinherited |
Definition at line 172 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_subtractMaskFromSilk.
Referenced by DIALOG_PLOT::init_Dialog(), and PlotOneBoardLayer().
|
inlineinherited |
Definition at line 160 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_svgPrecision.
Referenced by DIALOG_PLOT::init_Dialog(), and initializePlotter().
|
inlineinherited |
Definition at line 161 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_svgUseInch.
Referenced by DIALOG_PLOT::init_Dialog(), and initializePlotter().
|
inlineinherited |
Definition at line 71 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_textMode.
Referenced by DIALOG_PLOT::init_Dialog(), initializePlotter(), and PlotOneBoardLayer().
|
inlineinherited |
Definition at line 178 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_useAuxOrigin.
Referenced by AddGerberX2Header(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), DIALOG_PLOT::init_Dialog(), DIALOG_GENDRILL::initDialog(), initializePlotter(), and DIALOG_PLOT::reInitDialog().
|
inlineinherited |
Definition at line 154 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_useGerberProtelExtensions.
Referenced by DIALOG_PLOT::init_Dialog().
|
inlineinherited |
Definition at line 145 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_useGerberX2format.
Referenced by DIALOG_PLOT::init_Dialog(), and StartPlotBoard().
|
inlineinherited |
Definition at line 103 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_widthAdjust.
Referenced by getFineWidthAdj().
|
inherited |
Compare current settings to aPcbPlotParams, including not saved parameters in brd file.
aPcbPlotParams | is the PCB_PLOT_PARAMS to compare/ |
aCompareOnlySavedPrms | set to true to compare only saved in file parameters, or false to compare the full set of parameters. |
Definition at line 266 of file pcb_plot_params.cpp.
References PCB_PLOT_PARAMS::m_A4Output, PCB_PLOT_PARAMS::m_autoScale, PCB_PLOT_PARAMS::m_createGerberJobFile, PCB_PLOT_PARAMS::m_drillMarks, PCB_PLOT_PARAMS::m_DXFplotPolygonMode, PCB_PLOT_PARAMS::m_DXFplotUnits, PCB_PLOT_PARAMS::m_excludeEdgeLayer, PCB_PLOT_PARAMS::m_fineScaleAdjustX, PCB_PLOT_PARAMS::m_fineScaleAdjustY, PCB_PLOT_PARAMS::m_format, PCB_PLOT_PARAMS::m_gerberDisableApertMacros, PCB_PLOT_PARAMS::m_gerberPrecision, PCB_PLOT_PARAMS::m_HPGLPenDiam, PCB_PLOT_PARAMS::m_HPGLPenNum, PCB_PLOT_PARAMS::m_HPGLPenSpeed, PCB_PLOT_PARAMS::m_includeGerberNetlistInfo, PCB_PLOT_PARAMS::m_layerSelection, PCB_PLOT_PARAMS::m_mirror, PCB_PLOT_PARAMS::m_negative, PCB_PLOT_PARAMS::m_outputDirectory, PCB_PLOT_PARAMS::m_plotFrameRef, PCB_PLOT_PARAMS::m_plotInvisibleText, PCB_PLOT_PARAMS::m_plotMode, PCB_PLOT_PARAMS::m_plotReference, PCB_PLOT_PARAMS::m_plotValue, PCB_PLOT_PARAMS::m_plotViaOnMaskLayer, PCB_PLOT_PARAMS::m_scale, PCB_PLOT_PARAMS::m_scaleSelection, PCB_PLOT_PARAMS::m_sketchPadsOnFabLayers, PCB_PLOT_PARAMS::m_subtractMaskFromSilk, PCB_PLOT_PARAMS::m_svgPrecision, PCB_PLOT_PARAMS::m_svgUseInch, PCB_PLOT_PARAMS::m_textMode, PCB_PLOT_PARAMS::m_useAuxOrigin, PCB_PLOT_PARAMS::m_useGerberProtelExtensions, PCB_PLOT_PARAMS::m_useGerberX2format, and PCB_PLOT_PARAMS::m_widthAdjust.
Referenced by DIALOG_PLOT::applyPlotSettings(), and DIALOG_GENDRILL::UpdateDrillParams().
|
inherited |
Definition at line 260 of file pcb_plot_params.cpp.
References PCB_PLOT_PARAMS_PARSER::Parse().
Referenced by LEGACY_PLUGIN::loadSETUP(), and PCB_PARSER::parseSetup().
void BRDITEMS_PLOTTER::PlotBoardGraphicItems | ( | ) |
Plot items like text and graphics but not tracks and footprints.
Definition at line 343 of file plot_brditems_plotter.cpp.
References BOARD::Drawings(), m_board, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_SHAPE_T, PCB_TARGET_T, PCB_TEXT_T, PlotDimension(), PlotPcbShape(), PlotPcbTarget(), and PlotPcbText().
Referenced by PLACEFILE_GERBER_WRITER::CreatePlaceFile(), PlotSolderMaskLayer(), and PlotStandardLayer().
void BRDITEMS_PLOTTER::PlotDimension | ( | const PCB_DIMENSION_BASE * | aDim | ) |
Definition at line 416 of file plot_brditems_plotter.cpp.
References SEG::A, SEG::B, CIRCLE, color, PCB_PLOT_PARAMS::ColorSettings(), COLOR_SETTINGS::GetColor(), BOARD_ITEM::GetLayer(), PCB_DIMENSION_BASE::GetLineThickness(), PCB_DIMENSION_BASE::GetShapes(), LIGHTGRAY, m_layerMask, m_plotter, PlotPcbShape(), PlotPcbText(), SEGMENT, PLOTTER::SetColor(), EDA_SHAPE::SetEnd(), EDA_SHAPE::SetFilled(), BOARD_ITEM::SetLayer(), EDA_SHAPE::SetShape(), EDA_SHAPE::SetStart(), EDA_SHAPE::SetWidth(), SH_CIRCLE, SH_SEGMENT, PCB_DIMENSION_BASE::Text(), and WHITE.
Referenced by PlotBoardGraphicItems().
void BRDITEMS_PLOTTER::PlotDrillMarks | ( | ) |
Draw a drill mark for pads and vias.
Must be called after all drawings, because it redraws the drill mark on a pad or via, as a negative (i.e. white) shape in FILLED plot mode (for PS and PDF outputs).
Definition at line 1032 of file plot_brditems_plotter.cpp.
References BLACK, FILLED, BOARD::Footprints(), ADVANCED_CFG::GetCfg(), PCB_PLOT_PARAMS::GetDrillMarksType(), PCB_PLOT_PARAMS::GetPlotMode(), m_board, m_plotter, Millimeter2iu(), pad, PAD_DRILL_SHAPE_CIRCLE, plotOneDrillMark(), PLOTTER::SetColor(), PCB_PLOT_PARAMS::SMALL_DRILL_SHAPE, BOARD::Tracks(), via, and WHITE.
Referenced by PlotStandardLayer().
void BRDITEMS_PLOTTER::PlotFilledAreas | ( | const ZONE * | aZone, |
const SHAPE_POLY_SET & | aPolysList | ||
) |
Definition at line 761 of file plot_brditems_plotter.cpp.
References SHAPE_LINE_CHAIN::CPoint(), PLOTTER::EndBlock(), FILLED, FILLED_SHAPE, GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_CONDUCTOR, GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_NONCONDUCTOR, GBR_NETLIST_METADATA::GBR_NETINFO_NET, GERBER, getColor(), ZONE::GetFilledPolysUseThickness(), ZONE::GetLayer(), ZONE::GetMinThickness(), BOARD_CONNECTED_ITEM::GetNetname(), PCB_PLOT_PARAMS::GetPlotMode(), PLOTTER::GetPlotterType(), SHAPE_POLY_SET::IsEmpty(), ZONE::IsOnCopperLayer(), m_plotter, NO_FILL, SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), PLOTTER::PlotPoly(), SHAPE_LINE_CHAIN::PointCount(), GBR_METADATA::SetApertureAttrib(), PLOTTER::SetColor(), GBR_METADATA::SetCopper(), PLOTTER::SetCurrentLineWidth(), GBR_METADATA::SetNetAttribType(), GBR_METADATA::SetNetName(), PLOTTER::StartBlock(), and PLOTTER::ThickSegment().
Referenced by PlotSolderMaskLayer(), and PlotStandardLayer().
void BRDITEMS_PLOTTER::PlotFootprintGraphicItem | ( | const FP_SHAPE * | aShape | ) |
Definition at line 537 of file plot_brditems_plotter.cpp.
References SHAPE_POLY_SET::AddOutline(), LSET::AllCuMask(), SHAPE_LINE_CHAIN::Append(), ARC, ArcTangente(), BEZIER, PLOTTER::BezierCurve(), CIRCLE, EDA_SHAPE::DupPolyPointsList(), Edge_Cuts, FILLED_SHAPE, PLOTTER::FilledCircle(), SHAPE_POLY_SET::Fracture(), GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_EDGECUT, GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_ETCHEDCMP, GBR_NETLIST_METADATA::GBR_NETINFO_CMP, EDA_SHAPE::GetArcAngle(), EDA_SHAPE::GetBezierC1(), EDA_SHAPE::GetBezierC2(), PCB_SHAPE::GetCenter(), getColor(), EDA_SHAPE::GetEnd(), BOARD_ITEM::GetLayer(), GetLineLength(), FOOTPRINT::GetOrientation(), BOARD_ITEM::GetParent(), PCB_SHAPE::GetParentFootprint(), PCB_PLOT_PARAMS::GetPlotMode(), FOOTPRINT::GetPosition(), EDA_SHAPE::GetRectCorners(), FOOTPRINT::GetReference(), EDA_SHAPE::GetShape(), EDA_SHAPE::GetStart(), EDA_SHAPE::GetWidth(), EDA_SHAPE::IsFilled(), EDA_SHAPE::IsPolyShapeValid(), KiROUND(), m_layerMask, m_plotter, NO_FILL, SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), PCB_FP_SHAPE_T, PLOTTER::PlotPoly(), SHAPE_POLY_SET::PM_FAST, POLY, RECT, RotatePoint(), SEGMENT, GBR_METADATA::SetApertureAttrib(), SHAPE_LINE_CHAIN::SetClosed(), GBR_METADATA::SetCmpReference(), PLOTTER::SetColor(), GBR_METADATA::SetCopper(), GBR_METADATA::SetNetAttribType(), SKETCH, PLOTTER::ThickArc(), PLOTTER::ThickCircle(), PLOTTER::ThickSegment(), and EDA_ITEM::Type().
Referenced by PLACEFILE_GERBER_WRITER::CreatePlaceFile(), PlotFootprintGraphicItems(), and PlotSolderMaskLayer().
void BRDITEMS_PLOTTER::PlotFootprintGraphicItems | ( | const FOOTPRINT * | aFootprint | ) |
Definition at line 525 of file plot_brditems_plotter.cpp.
References BOARD_ITEM::GetLayer(), FOOTPRINT::GraphicalItems(), m_layerMask, and PlotFootprintGraphicItem().
Referenced by PlotStandardLayer().
Definition at line 375 of file plot_brditems_plotter.cpp.
References color, GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_NONCONDUCTOR, GBR_NETLIST_METADATA::GBR_NETINFO_CMP, FP_TEXT::GetDrawRotation(), EDA_TEXT::GetEffectiveTextPenWidth(), EDA_TEXT::GetHorizJustify(), BOARD_ITEM::GetLayer(), BOARD_ITEM::GetParent(), FOOTPRINT::GetReference(), FP_TEXT::GetShownText(), EDA_TEXT::GetTextPos(), EDA_TEXT::GetTextSize(), EDA_TEXT::GetVertJustify(), IsCopperLayer(), EDA_TEXT::IsItalic(), EDA_TEXT::IsMirrored(), LIGHTGRAY, m_plotter, GBR_METADATA::SetApertureAttrib(), PLOTTER::SetColor(), PLOTTER::SetCurrentLineWidth(), PLOTTER::Text(), and WHITE.
Referenced by PlotFootprintTextItems().
void BRDITEMS_PLOTTER::PlotFootprintTextItems | ( | const FOOTPRINT * | aFootprint | ) |
Definition at line 293 of file plot_brditems_plotter.cpp.
References Edge_Cuts, getColor(), BOARD_ITEM::GetLayer(), PCB_PLOT_PARAMS::GetPlotInvisibleText(), PCB_PLOT_PARAMS::GetPlotReference(), PCB_PLOT_PARAMS::GetPlotValue(), EDA_TEXT::GetText(), FOOTPRINT::GraphicalItems(), EDA_TEXT::IsVisible(), m_layerMask, PCB_LAYER_ID_COUNT, PlotFootprintTextItem(), FOOTPRINT::Reference(), and FOOTPRINT::Value().
Referenced by PlotSolderMaskLayer(), and PlotStandardLayer().
|
private |
Helper function to plot a single drill mark.
It compensate and clamp the drill mark size depending on the current plot options.
Definition at line 1005 of file plot_brditems_plotter.cpp.
References Clamp(), PLOTTER::FlashPadCircle(), PLOTTER::FlashPadOval(), getFineWidthAdj(), PCB_PLOT_PARAMS::GetPlotMode(), m_plotter, PAD_DRILL_SHAPE_CIRCLE, and PAD_DRILL_SHAPE_OBLONG.
Referenced by PlotDrillMarks().
void BRDITEMS_PLOTTER::PlotPad | ( | const PAD * | aPad, |
const COLOR4D & | aColor, | ||
OUTLINE_MODE | aPlotMode | ||
) |
Plot a pad.
Unlike other items, a pad had not a specific color and be drawn as a non filled item although the plot mode is filled color and plot mode are needed by this function.
Definition at line 81 of file plot_brditems_plotter.cpp.
References LSET::AllCuMask(), BGA, CASTELLATED, CHAMFERED_RECT, CIRCLE, CONN, CUSTOM, LSET::ExternalCuMask(), FIDUCIAL_GLBL, FIDUCIAL_LOCAL, PLOTTER::FlashPadCircle(), PLOTTER::FlashPadCustom(), PLOTTER::FlashPadOval(), PLOTTER::FlashPadRect(), PLOTTER::FlashPadRoundRect(), PLOTTER::FlashPadTrapez(), GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_BGAPAD_CUDEF, GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_CASTELLATEDPAD, GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_COMPONENTPAD, GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_CONDUCTOR, GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_CONNECTORPAD, GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_FIDUCIAL_GLBL, GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_FIDUCIAL_LOCAL, GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_HEATSINKPAD, GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_SMDPAD_CUDEF, GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_TESTPOINT, GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_WASHERPAD, GBR_NETINFO_ALL, GBR_NETLIST_METADATA::GBR_NETINFO_CMP, GBR_NETLIST_METADATA::GBR_NETINFO_NET, GERBER, PAD::GetAttribute(), PAD::GetChamferPositions(), PAD::GetChamferRectRatio(), PAD::GetDelta(), PAD::GetEffectivePolygon(), BOARD_CONNECTED_ITEM::GetNetname(), PAD::GetNumber(), PAD::GetOrientation(), PAD::GetParent(), PAD::GetPinFunction(), PLOTTER::GetPlotterType(), PAD::GetProperty(), FOOTPRINT::GetReference(), PAD::GetRoundRectCornerRadius(), PAD::GetShape(), PAD::GetSize(), PCB_PLOT_PARAMS::GetSketchPadLineWidth(), HEATSINK, KI_FALLTHROUGH, LIGHTGRAY, m_layerMask, GBR_METADATA::m_NetlistMetadata, GBR_NETLIST_METADATA::m_NotInNet, m_plotter, NONE, NPTH, OVAL, PTH, RECT, ROUNDRECT, GBR_METADATA::SetApertureAttrib(), GBR_METADATA::SetCmpReference(), PLOTTER::SetColor(), GBR_METADATA::SetCopper(), PLOTTER::SetCurrentLineWidth(), GBR_METADATA::SetNetAttribType(), GBR_METADATA::SetNetName(), GBR_METADATA::SetPadName(), GBR_METADATA::SetPadPinFunction(), PAD::ShapePos(), SKETCH, SMD, TESTPOINT, TRAPEZOID, and WHITE.
Referenced by PlotStandardLayer().
void BRDITEMS_PLOTTER::PlotPcbShape | ( | const PCB_SHAPE * | aShape | ) |
Definition at line 869 of file plot_brditems_plotter.cpp.
References SHAPE_LINE_CHAIN::Append(), ARC, ArcTangente(), BEZIER, PLOTTER::BezierCurve(), CIRCLE, SHAPE_POLY_SET::CIterateSegments(), Edge_Cuts, FILLED_SHAPE, PLOTTER::FilledCircle(), SHAPE_POLY_SET::Fracture(), GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_EDGECUT, GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_NONCONDUCTOR, EDA_SHAPE::GetArcAngle(), EDA_SHAPE::GetBezierC1(), EDA_SHAPE::GetBezierC2(), PCB_SHAPE::GetCenter(), getColor(), EDA_SHAPE::GetEnd(), BOARD_ITEM::GetLayer(), PCB_PLOT_PARAMS::GetPlotMode(), EDA_SHAPE::GetPolyShape(), EDA_SHAPE::GetRadius(), EDA_SHAPE::GetRectCorners(), EDA_SHAPE::GetShape(), EDA_SHAPE::GetStart(), EDA_SHAPE::GetWidth(), IsCopperLayer(), EDA_SHAPE::IsFilled(), EDA_SHAPE::IsPolyShapeValid(), m_layerMask, m_plotter, NO_FILL, SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), PLOTTER::PlotPoly(), SHAPE_POLY_SET::PM_FAST, POLY, RECT, SEGMENT, GBR_METADATA::SetApertureAttrib(), SHAPE_LINE_CHAIN::SetClosed(), PLOTTER::SetColor(), PLOTTER::SetCurrentLineWidth(), EDA_SHAPE::SHAPE_T_asString(), SKETCH, PLOTTER::ThickArc(), PLOTTER::ThickCircle(), PLOTTER::ThickSegment(), and UNIMPLEMENTED_FOR.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), PlotBoardGraphicItems(), PlotDimension(), and PlotPcbTarget().
void BRDITEMS_PLOTTER::PlotPcbTarget | ( | const PCB_TARGET * | aMire | ) |
Definition at line 471 of file plot_brditems_plotter.cpp.
References CIRCLE, getColor(), BOARD_ITEM::GetLayer(), PCB_TARGET::GetPosition(), PCB_TARGET::GetShape(), PCB_TARGET::GetSize(), EDA_SHAPE::GetStart(), PCB_TARGET::GetWidth(), m_layerMask, m_plotter, PlotPcbShape(), SEGMENT, PLOTTER::SetColor(), EDA_SHAPE::SetEnd(), EDA_SHAPE::SetFilled(), BOARD_ITEM::SetLayer(), EDA_SHAPE::SetShape(), EDA_SHAPE::SetStart(), and EDA_SHAPE::SetWidth().
Referenced by PlotBoardGraphicItems().
void BRDITEMS_PLOTTER::PlotPcbText | ( | const PCB_TEXT * | aText | ) |
Definition at line 701 of file plot_brditems_plotter.cpp.
References color, GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_NONCONDUCTOR, getColor(), EDA_TEXT::GetEffectiveTextPenWidth(), EDA_TEXT::GetHorizJustify(), BOARD_ITEM::GetLayer(), EDA_TEXT::GetLinePositions(), PCB_TEXT::GetShownText(), EDA_TEXT::GetTextAngle(), EDA_TEXT::GetTextPos(), EDA_TEXT::GetTextSize(), EDA_TEXT::GetVertJustify(), IsCopperLayer(), EDA_TEXT::IsItalic(), EDA_TEXT::IsMirrored(), EDA_TEXT::IsMultilineAllowed(), m_layerMask, m_plotter, GBR_METADATA::SetApertureAttrib(), PLOTTER::SetColor(), PLOTTER::SetCurrentLineWidth(), PLOTTER::Text(), and wxStringSplit().
Referenced by PlotBoardGraphicItems(), and PlotDimension().
|
inlineinherited |
Definition at line 183 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_A4Output.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 105 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_autoScale.
Referenced by DIALOG_PLOT::Plot().
|
inlineinherited |
Definition at line 62 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_colors.
Referenced by DIALOG_EXPORT_SVG::CreateSVGFile(), and DIALOG_PLOT::Plot().
|
inlineinherited |
Definition at line 150 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_createGerberJobFile.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 141 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_gerberDisableApertMacros.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 92 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_drillMarks.
Referenced by DIALOG_PLOT::applyPlotSettings(), DIALOG_EXPORT_SVG::CreateSVGFile(), and PlotOneBoardLayer().
|
inlineinherited |
Definition at line 79 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_DXFplotPolygonMode.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 82 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_DXFplotUnits.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 132 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_excludeEdgeLayer.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 98 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_fineScaleAdjustX.
Referenced by DIALOG_PLOT::Plot().
|
inlineinherited |
Definition at line 100 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_fineScaleAdjustY.
Referenced by DIALOG_PLOT::Plot().
|
inlineinherited |
Definition at line 135 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_format.
Referenced by DIALOG_PLOT::applyPlotSettings(), DIALOG_EXPORT_SVG::CreateSVGFile(), PLOT_CONTROLLER::OpenPlotfile(), and PCB_EDIT_FRAME::ToPlotter().
|
inherited |
Definition at line 147 of file pcb_plot_params.cpp.
References gbrDefaultPrecision.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inherited |
Definition at line 383 of file pcb_plot_params.cpp.
References HPGL_PEN_DIAMETER_MAX, HPGL_PEN_DIAMETER_MIN, and setDouble().
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 195 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_HPGLPenNum.
|
inherited |
Definition at line 389 of file pcb_plot_params.cpp.
References HPGL_PEN_SPEED_MAX, HPGL_PEN_SPEED_MIN, and setInt().
|
inlineinherited |
Definition at line 147 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_includeGerberNetlistInfo.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 174 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_layerSelection.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inline |
Definition at line 84 of file pcbplot.h.
References m_layerMask.
Referenced by PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), PlotLayerOutlines(), PlotSolderMaskLayer(), and PlotStandardLayer().
|
inlineinherited |
Definition at line 108 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_mirror.
Referenced by DIALOG_PLOT::applyPlotSettings(), DIALOG_EXPORT_SVG::CreateSVGFile(), and StartPlotBoard().
|
inlineinherited |
Definition at line 123 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_negative.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 138 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_outputDirectory.
Referenced by DIALOG_PLOT::applyPlotSettings(), DIALOG_GEN_FOOTPRINT_POSITION::OnGenerate(), and DIALOG_GENDRILL::UpdateDrillParams().
|
inlineinherited |
Definition at line 129 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_plotFrameRef.
Referenced by DIALOG_PLOT::applyPlotSettings(), and DIALOG_EXPORT_SVG::CreateSVGFile().
|
inlineinherited |
Definition at line 116 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_plotInvisibleText.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 76 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_plotMode.
Referenced by DIALOG_PLOT::applyPlotSettings(), and PCB_PLOT_PARAMS_PARSER::Parse().
|
inlineinherited |
Definition at line 120 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_plotReference.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 118 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_plotValue.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 126 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_plotViaOnMaskLayer.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 95 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_scale.
Referenced by DIALOG_PLOT::Plot().
|
inlineinherited |
Definition at line 180 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_scaleSelection.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 113 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_sketchPadLineWidth.
Referenced by DIALOG_PLOT::Plot().
|
inlineinherited |
Definition at line 111 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_sketchPadsOnFabLayers.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 46 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_skipNPTH_Pads.
Referenced by DIALOG_EXPORT_SVG::CreateSVGFile(), and PlotOneBoardLayer().
|
inlineinherited |
Definition at line 171 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_subtractMaskFromSilk.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inherited |
Definition at line 159 of file pcb_plot_params.cpp.
References Clamp(), SVG_PRECISION_MAX, and SVG_PRECISION_MIN.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 66 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_textMode.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 177 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_useAuxOrigin.
Referenced by DIALOG_PLOT::applyPlotSettings(), DIALOG_EXPORT_SVG::CreateSVGFile(), and DIALOG_GENDRILL::UpdateDrillParams().
|
inlineinherited |
Definition at line 153 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_useGerberProtelExtensions.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 144 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_useGerberX2format.
Referenced by DIALOG_PLOT::applyPlotSettings().
|
inlineinherited |
Definition at line 102 of file pcb_plot_params.h.
References PCB_PLOT_PARAMS::m_widthAdjust.
Referenced by DIALOG_PLOT::Plot().
|
private |
Definition at line 143 of file pcbplot.h.
Referenced by BRDITEMS_PLOTTER(), PlotBoardGraphicItems(), and PlotDrillMarks().
|
private |
Definition at line 144 of file pcbplot.h.
Referenced by PlotDimension(), PlotFootprintGraphicItem(), PlotFootprintGraphicItems(), PlotFootprintTextItems(), PlotPad(), PlotPcbShape(), PlotPcbTarget(), PlotPcbText(), and SetLayerSet().
|
private |
Definition at line 142 of file pcbplot.h.
Referenced by BRDITEMS_PLOTTER(), PlotDimension(), PlotDrillMarks(), PlotFilledAreas(), PlotFootprintGraphicItem(), PlotFootprintTextItem(), plotOneDrillMark(), PlotPad(), PlotPcbShape(), PlotPcbTarget(), and PlotPcbText().