KiCad PCB EDA Suite
|
#include <plotter_gerber.h>
Public Member Functions | |
GERBER_PLOTTER () | |
virtual PLOT_FORMAT | GetPlotterType () const override |
Return the effective plot engine in use. | |
virtual bool | StartPlot (const wxString &pageNumber) override |
Write GERBER header to file initialize global variable g_Plot_PlotOutputFile. | |
virtual bool | EndPlot () override |
virtual void | SetCurrentLineWidth (int aLineWidth, void *aData=nullptr) override |
Set the line width for the next drawing. | |
virtual void | SetDash (int aLineWidth, LINE_STYLE aLineStyle) override |
virtual void | SetColor (const COLOR4D &aColor) override |
virtual void | SetViewport (const VECTOR2I &aOffset, double aIusPerDecimil, double aScale, bool aMirror) override |
Set the plot offset and scaling for the current plot. | |
virtual void | Rect (const VECTOR2I &p1, const VECTOR2I &p2, FILL_T fill, int width) override |
virtual void | Circle (const VECTOR2I &pos, int diametre, FILL_T fill, int width) override |
virtual void | Arc (const VECTOR2D &aCenter, const EDA_ANGLE &aStartAngle, const EDA_ANGLE &aAngle, double aRadius, FILL_T aFill, int aWidth) override |
virtual void | ThickSegment (const VECTOR2I &start, const VECTOR2I &end, int width, void *aData) override |
virtual void | ThickRect (const VECTOR2I &p1, const VECTOR2I &p2, int width, void *aData) override |
virtual void | ThickCircle (const VECTOR2I &pos, int diametre, int width, void *aData) override |
virtual void | FilledCircle (const VECTOR2I &pos, int diametre, void *aData) override |
virtual void | ThickPoly (const SHAPE_POLY_SET &aPoly, int aWidth, void *aData) override |
virtual void | PlotPoly (const std::vector< VECTOR2I > &aCornerList, FILL_T aFill, int aWidth, void *aData) override |
Gerber polygon: they can (and should) be filled with the appropriate G36/G37 sequence. | |
virtual void | PlotPoly (const SHAPE_LINE_CHAIN &aCornerList, FILL_T aFill, int aWidth, void *aData) override |
Draw a polygon ( filled or not ). | |
void | PlotPolyAsRegion (const SHAPE_LINE_CHAIN &aPoly, FILL_T aFill, int aWidth, GBR_METADATA *aGbrMetadata) |
Similar to PlotPoly(), plot a filled polygon using Gerber region, therefore adding X2 attributes to the region object, like TA.xxx. | |
virtual void | PenTo (const VECTOR2I &pos, char plume) override |
Moveto/lineto primitive, moves the 'pen' to the specified direction. | |
virtual void | Text (const VECTOR2I &aPos, const COLOR4D &aColor, const wxString &aText, const EDA_ANGLE &aOrient, const VECTOR2I &aSize, enum GR_TEXT_H_ALIGN_T aH_justify, enum GR_TEXT_V_ALIGN_T aV_justify, int aWidth, bool aItalic, bool aBold, bool aMultilineAllowed, KIFONT::FONT *aFont, const KIFONT::METRICS &aFontMetrics, void *aData=nullptr) override |
Draw text with the plotter. | |
virtual void | PlotText (const VECTOR2I &aPos, const COLOR4D &aColor, const wxString &aText, const TEXT_ATTRIBUTES &aAttributes, KIFONT::FONT *aFont, const KIFONT::METRICS &aFontMetrics, void *aData=nullptr) override |
virtual void | FlashPadCircle (const VECTOR2I &pos, int diametre, void *aData) override |
Filled circular flashes are stored as apertures. | |
virtual void | FlashPadOval (const VECTOR2I &aPadPos, const VECTOR2I &aSize, const EDA_ANGLE &aOrient, void *aData) override |
virtual void | FlashPadRect (const VECTOR2I &aPadPos, const VECTOR2I &aSize, const EDA_ANGLE &aOrient, void *aData) override |
virtual void | FlashPadRoundRect (const VECTOR2I &aPadPos, const VECTOR2I &aSize, int aCornerRadius, const EDA_ANGLE &aOrient, void *aData) override |
virtual void | FlashPadCustom (const VECTOR2I &aPadPos, const VECTOR2I &aSize, const EDA_ANGLE &aPadOrient, SHAPE_POLY_SET *aPolygons, void *aData) override |
virtual void | FlashPadTrapez (const VECTOR2I &aPadPos, const VECTOR2I *aCorners, const EDA_ANGLE &aPadOrient, void *aData) override |
Flash a trapezoidal pad. | |
virtual void | FlashRegularPolygon (const VECTOR2I &aShapePos, int aDiameter, int aCornerCount, const EDA_ANGLE &aOrient, void *aData) override |
Flash a regular polygon. | |
void | FlashPadChamferRoundRect (const VECTOR2I &aShapePos, const VECTOR2I &aPadSize, int aCornerRadius, double aChamferRatio, int aChamferPositions, const EDA_ANGLE &aPadOrient, void *aData) |
Flash a chamfered round rect pad. | |
void | PlotGerberRegion (const std::vector< VECTOR2I > &aCornerList, GBR_METADATA *aGbrMetadata) |
Plot a Gerber region: similar to PlotPoly but plot only filled polygon, and add the TA.AperFunction if aGbrMetadata contains this attribute, and clear it after plotting. | |
void | PlotGerberRegion (const SHAPE_LINE_CHAIN &aPoly, GBR_METADATA *aGbrMetadata) |
virtual void | SetLayerPolarity (bool aPositive) override |
Change the plot polarity and begin a new layer. | |
virtual void | SetGerberCoordinatesFormat (int aResolution, bool aUseInches=false) override |
Selection of Gerber units and resolution (number of digits in mantissa). | |
void | UseX2format (bool aEnable) |
void | UseX2NetAttributes (bool aEnable) |
void | DisableApertMacros (bool aDisable) |
Disable Aperture Macro (AM) command, only for broken Gerber Readers. | |
virtual void | StartBlock (void *aData) override |
Calling this function allows one to define the beginning of a group of drawing items (used in X2 format with netlist attributes). | |
virtual void | EndBlock (void *aData) override |
Define the end of a group of drawing items the group is started by StartBlock(). | |
void | ClearAllAttributes () |
Remove (clear) all attributes from object attributes dictionary (TO. | |
int | GetOrCreateAperture (const VECTOR2I &aSize, int aRadius, const EDA_ANGLE &aRotation, APERTURE::APERTURE_TYPE aType, int aApertureAttribute, const std::string &aCustomAttribute) |
int | GetOrCreateAperture (const std::vector< VECTOR2I > &aCorners, const EDA_ANGLE &aRotation, APERTURE::APERTURE_TYPE aType, int aApertureAttribute, const std::string &aCustomAttribute) |
virtual void | SetNegative (bool aNegative) |
virtual void | SetColorMode (bool aColorMode) |
Plot in B/W or color. | |
bool | GetColorMode () const |
void | SetRenderSettings (RENDER_SETTINGS *aSettings) |
RENDER_SETTINGS * | RenderSettings () |
virtual void | SetPageSettings (const PAGE_INFO &aPageSettings) |
PAGE_INFO & | PageSettings () |
void | SetPlotMirrored (bool aMirror) |
bool | GetPlotMirrored () const |
virtual int | GetCurrentLineWidth () const |
virtual void | SetCreator (const wxString &aCreator) |
virtual void | SetTitle (const wxString &aTitle) |
virtual void | SetAuthor (const wxString &aAuthor) |
virtual void | SetSubject (const wxString &aSubject) |
void | AddLineToHeader (const wxString &aExtraString) |
Add a line to the list of free lines to print at the beginning of the file. | |
void | ClearHeaderLinesList () |
Remove all lines from the list of free lines to print at the beginning of the file. | |
virtual bool | OpenFile (const wxString &aFullFilename) |
Open or create the plot file aFullFilename. | |
double | GetIUsPerDecimil () const |
The IUs per decimil are an essential scaling factor when plotting; they are set and saved when establishing the viewport. | |
int | GetPlotterArcLowDef () const |
int | GetPlotterArcHighDef () const |
virtual void | Arc (const VECTOR2D &aStart, const VECTOR2D &aMid, const VECTOR2D &aEnd, FILL_T aFill, int aWidth) |
virtual void | BezierCurve (const VECTOR2I &aStart, const VECTOR2I &aControl1, const VECTOR2I &aControl2, const VECTOR2I &aEnd, int aTolerance, int aLineThickness) |
Generic fallback: Cubic Bezier curve rendered as a polyline. | |
void | MoveTo (const VECTOR2I &pos) |
void | LineTo (const VECTOR2I &pos) |
void | FinishTo (const VECTOR2I &pos) |
void | PenFinish () |
virtual void | PlotImage (const wxImage &aImage, const VECTOR2I &aPos, double aScaleFactor) |
Only PostScript plotters can plot bitmaps. | |
virtual void | ThickArc (const EDA_SHAPE &aArcShape, void *aData, int aWidth) |
virtual void | ThickOval (const VECTOR2I &aPos, const VECTOR2I &aSize, const EDA_ANGLE &aOrient, int aWidth, void *aData) |
virtual void | HyperlinkBox (const BOX2I &aBox, const wxString &aDestinationURL) |
Create a clickable hyperlink with a rectangular click area. | |
virtual void | HyperlinkMenu (const BOX2I &aBox, const std::vector< wxString > &aDestURLs) |
Create a clickable hyperlink menu with a rectangular click area. | |
virtual void | Bookmark (const BOX2I &aBox, const wxString &aName, const wxString &aGroupName=wxEmptyString) |
Create a bookmark to a symbol. | |
void | Marker (const VECTOR2I &position, int diametre, unsigned aShapeId) |
Draw a pattern shape number aShapeId, to coord position. | |
virtual void | SetTextMode (PLOT_TEXT_MODE mode) |
Change the current text mode. | |
virtual void | SetSvgCoordinatesFormat (unsigned aPrecision) |
Set the number of digits for mantissa in coordinates in mm for SVG plotter. | |
VECTOR2I | GetPlotOffsetUserUnits () |
Static Public Member Functions | |
static wxString | GetDefaultFileExtension () |
Static Public Attributes | |
static const int | DO_NOT_SET_LINE_WIDTH = -2 |
static const int | USE_DEFAULT_LINE_WIDTH = -1 |
static const unsigned | MARKER_COUNT = 58 |
Draw a marker (used for the drill map). | |
Protected Member Functions | |
virtual void | ThickArc (const VECTOR2D &aCentre, const EDA_ANGLE &aStartAngle, const EDA_ANGLE &aAngle, double aRadius, int aWidth, void *aData) override |
void | plotRoundRectAsRegion (const VECTOR2I &aRectCenter, const VECTOR2I &aSize, int aCornerRadius, const EDA_ANGLE &aOrient) |
Plot a round rect (a round rect shape in fact) as a Gerber region using lines and arcs for corners. | |
void | plotArc (const VECTOR2I &aCenter, const EDA_ANGLE &aStartAngle, const EDA_ANGLE &aEndAngle, double aRadius, bool aPlotInRegion) |
Plot a Gerber arc. | |
void | plotArc (const SHAPE_ARC &aArc, bool aPlotInRegion) |
void | selectAperture (const VECTOR2I &aSize, int aRadius, const EDA_ANGLE &aRotation, APERTURE::APERTURE_TYPE aType, int aApertureAttribute, const std::string &aCustomAttribute) |
Pick an existing aperture or create a new one, matching the size, type and attributes. | |
void | selectAperture (const std::vector< VECTOR2I > &aCorners, const EDA_ANGLE &aPolygonRotation, APERTURE::APERTURE_TYPE aType, int aApertureAttribute, const std::string &aCustomAttribute) |
Pick an existing aperture or create a new one, matching the aDiameter, aPolygonRotation, type and attributes. | |
void | selectApertureWithAttributes (const VECTOR2I &aPos, GBR_METADATA *aGbrMetadata, VECTOR2I aSize, int aRadius, const EDA_ANGLE &aAngle, APERTURE::APERTURE_TYPE aType) |
Pick an aperture or create a new one and emits the DCode. | |
void | emitDcode (const VECTOR2D &pt, int dcode) |
Emit a D-Code record, using proper conversions to format a leading zero omitted gerber coordinate. | |
void | formatNetAttribute (GBR_NETLIST_METADATA *aData) |
Print a Gerber net attribute object record. | |
void | clearNetAttribute () |
Clear a Gerber net attribute record (clear object attribute dictionary) and output the clear object attribute dictionary command to gerber file has effect only if a net attribute is stored in m_objectAttributesDictionary. | |
void | writeApertureList () |
Generate the table of D codes. | |
virtual void | polyArc (const VECTOR2D &aCentre, const EDA_ANGLE &aStartAngle, const EDA_ANGLE &aAngle, double aRadius, FILL_T aFill, int aWidth) |
Generic fallback: arc rendered as a polyline. | |
void | markerCircle (const VECTOR2I &pos, int radius) |
Plot a circle centered on the position. | |
void | markerHBar (const VECTOR2I &pos, int radius) |
Plot a - bar centered on the position. | |
void | markerSlash (const VECTOR2I &pos, int radius) |
Plot a / bar centered on the position. | |
void | markerBackSlash (const VECTOR2I &pos, int radius) |
Plot a \ bar centered on the position. | |
void | markerVBar (const VECTOR2I &pos, int radius) |
Plot a | bar centered on the position. | |
void | markerSquare (const VECTOR2I &position, int radius) |
Plot a square centered on the position. | |
void | markerLozenge (const VECTOR2I &position, int radius) |
Plot a lozenge centered on the position. | |
virtual VECTOR2D | userToDeviceCoordinates (const VECTOR2I &aCoordinate) |
Modify coordinates according to the orientation, scale factor, and offsets trace. | |
virtual VECTOR2D | userToDeviceSize (const VECTOR2I &size) |
Modify size according to the plotter scale factors (VECTOR2I version, returns a VECTOR2D). | |
virtual double | userToDeviceSize (double size) const |
Modify size according to the plotter scale factors (simple double version). | |
double | GetDotMarkLenIU (int aLineWidth) const |
double | GetDashMarkLenIU (int aLineWidth) const |
double | GetDashGapLenIU (int aLineWidth) const |
Definition at line 29 of file plotter_gerber.h.
GERBER_PLOTTER::GERBER_PLOTTER | ( | ) |
Definition at line 93 of file GERBER_plotter.cpp.
References finalFile, m_apertureAttribute, m_currentApertureIdx, m_gerberDisableApertMacros, m_gerberUnitFmt, m_gerberUnitInch, m_hasApertureChamferedRect, m_hasApertureOutline4P, m_hasApertureRotOval, m_hasApertureRotRect, m_hasApertureRoundRect, m_useNetAttributes, m_useX2format, and workFile.
|
inlineinherited |
Add a line to the list of free lines to print at the beginning of the file.
aExtraString | is the string to print |
Definition at line 183 of file plotter.h.
References PLOTTER::m_headerExtraLines.
Referenced by AddGerberX2Attribute(), AddGerberX2Header(), GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GERBER_WRITER::createProtectionFile(), and GENDRILL_WRITER_BASE::genDrillMapFile().
|
overridevirtual |
Reimplemented from PLOTTER.
Definition at line 878 of file GERBER_plotter.cpp.
References std::abs(), EDA_ANGLE::AsDegrees(), EDA_ANGLE::AsRadians(), PLOTTER::GetCurrentLineWidth(), plotArc(), PLOTTER::polyArc(), and SetCurrentLineWidth().
Referenced by Circle().
|
virtualinherited |
Definition at line 150 of file plotter.cpp.
References PLOTTER::Arc(), CalcArcCenter(), cw, EDA_ANGLE::Normalize(), EDA_ANGLE::NormalizeNegative(), and radius.
Referenced by PLOTTER::Arc(), SCH_SHAPE::Plot(), PLOTTER::ThickArc(), and PLOTTER::ThickOval().
|
virtualinherited |
Generic fallback: Cubic Bezier curve rendered as a polyline.
In KiCad the bezier curves have 4 control points: start ctrl1 ctrl2 end
Reimplemented in SVG_PLOTTER.
Definition at line 230 of file plotter.cpp.
References PLOTTER::FinishTo(), BEZIER_POLY::GetPoly(), PLOTTER::LineTo(), PLOTTER::MoveTo(), and PLOTTER::SetCurrentLineWidth().
Referenced by SVG_PLOTTER::BezierCurve(), and BRDITEMS_PLOTTER::PlotShape().
|
inlinevirtualinherited |
Create a bookmark to a symbol.
aBox | is the rectangular click target |
aSymbolReference | is the symbol schematic ref |
Reimplemented in PDF_PLOTTER.
Definition at line 482 of file plotter.h.
Referenced by SCH_LABEL_BASE::Plot(), SCH_SYMBOL::Plot(), and PlotInteractiveLayer().
|
overridevirtual |
Implements PLOTTER.
Definition at line 870 of file GERBER_plotter.cpp.
References ANGLE_0, ANGLE_180, and Arc().
Referenced by FilledCircle().
void GERBER_PLOTTER::ClearAllAttributes | ( | ) |
Remove (clear) all attributes from object attributes dictionary (TO.
and TA commands) similar to clearNetAttribute(), this is an unconditional reset of TO. and TA. attributes.
Definition at line 163 of file GERBER_plotter.cpp.
References m_objectAttributesDictionary, PLOTTER::m_outputFile, and m_useX2format.
Referenced by PLACEFILE_GERBER_WRITER::CreatePlaceFile().
|
inlineinherited |
Remove all lines from the list of free lines to print at the beginning of the file.
Definition at line 191 of file plotter.h.
References PLOTTER::m_headerExtraLines.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), and StartPlotBoard().
|
protected |
Clear a Gerber net attribute record (clear object attribute dictionary) and output the clear object attribute dictionary command to gerber file has effect only if a net attribute is stored in m_objectAttributesDictionary.
Definition at line 175 of file GERBER_plotter.cpp.
References m_objectAttributesDictionary, PLOTTER::m_outputFile, and m_useX2format.
Referenced by EndBlock(), and formatNetAttribute().
|
inline |
Disable Aperture Macro (AM) command, only for broken Gerber Readers.
Regions will be used instead of AM shapes to draw complex shapes.
aDisable | use true to disable Aperture Macro (AM) command. |
Definition at line 206 of file plotter_gerber.h.
References m_gerberDisableApertMacros.
Referenced by GERBER_WRITER::createDrillFile(), GERBER_WRITER::createProtectionFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), and StartPlotBoard().
|
protected |
Emit a D-Code record, using proper conversions to format a leading zero omitted gerber coordinate.
For n decimal positions, see header generation in start_plot.
Definition at line 157 of file GERBER_plotter.cpp.
References KiROUND(), PLOTTER::m_outputFile, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by FlashPadChamferRoundRect(), FlashPadCustom(), FlashPadTrapez(), PenTo(), and selectApertureWithAttributes().
|
overridevirtual |
Define the end of a group of drawing items the group is started by StartBlock().
Used in X2 format with netlist attributes.
aData | can define any parameter |
Reimplemented from PLOTTER.
Definition at line 198 of file GERBER_plotter.cpp.
References clearNetAttribute().
Referenced by GERBER_WRITER::createDrillFile(), and StartBlock().
|
overridevirtual |
Implements PLOTTER.
Definition at line 319 of file GERBER_plotter.cpp.
References APER_MACRO_FREEPOLY_LIST::AmCount(), APER_MACRO_OUTLINE4P_HEADER, APER_MACRO_OUTLINE5P_HEADER, APER_MACRO_OUTLINE6P_HEADER, APER_MACRO_OUTLINE7P_HEADER, APER_MACRO_OUTLINE8P_HEADER, APER_MACRO_ROT_RECT_HEADER, APER_MACRO_ROUNDRECT_HEADER, APER_MACRO_SHAPE_OVAL_HEADER, finalFile, APER_MACRO_FREEPOLY_LIST::Format(), m_am_freepoly_list, m_gerberUnitInch, m_hasApertureChamferedRect, m_hasApertureOutline4P, m_hasApertureRotOval, m_hasApertureRotRect, m_hasApertureRoundRect, PLOTTER::m_IUsPerDecimil, PLOTTER::m_outputFile, PLOTTER::m_plotScale, m_workFilename, workFile, and writeApertureList().
Referenced by GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GERBER_WRITER::createProtectionFile(), and PCBNEW_JOBS_HANDLER::JobExportGerbers().
|
overridevirtual |
Reimplemented from PLOTTER.
Definition at line 1226 of file GERBER_plotter.cpp.
References Circle(), PLOTTER::DO_NOT_SET_LINE_WIDTH, formatNetAttribute(), and SetCurrentLineWidth().
|
inlineinherited |
Definition at line 271 of file plotter.h.
References PLOTTER::PenTo().
Referenced by PLOTTER::BezierCurve(), DXF_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), PLOTTER::markerBackSlash(), PLOTTER::markerHBar(), PLOTTER::markerSlash(), PLOTTER::markerVBar(), SCH_BUS_ENTRY_BASE::Plot(), SCH_LINE::Plot(), SCH_NO_CONNECT::Plot(), SCH_TABLE::Plot(), PlotDrawingSheet(), SCH_PIN::PlotPinType(), PlotPoly(), PLOTTER::polyArc(), DXF_PLOTTER::Rect(), PDF_PLOTTER::Rect(), PLOTTER::ThickOval(), PLOTTER::ThickSegment(), and DXF_PLOTTER::ThickSegment().
void GERBER_PLOTTER::FlashPadChamferRoundRect | ( | const VECTOR2I & | aShapePos, |
const VECTOR2I & | aPadSize, | ||
int | aCornerRadius, | ||
double | aChamferRatio, | ||
int | aChamferPositions, | ||
const EDA_ANGLE & | aPadOrient, | ||
void * | aData | ||
) |
Flash a chamfered round rect pad.
aShapePos | is the position of the pad shape. |
aPadSize | is the size of the rectangle. |
aCornerRadius | is the radius of rounded corners. |
aChamferRatio | is the chamfer value (ratio < 0.5 between smallest size and chamfer). |
aChamferPositions | is the identifier of the corners to chamfer: 0 = no chamfer 1 = TOP_LEFT 2 = TOP_RIGHT 4 = BOTTOM_LEFT 8 = BOTTOM_RIGHT |
aPadOrient | is the rotation of the shape. |
aData | is the a reference to Gerber attributes descr. |
Definition at line 1595 of file GERBER_plotter.cpp.
References APERTURE::AM_FREE_POLYGON, ANGLE_0, APERTURE::APER_MACRO_OUTLINE4P, APERTURE::APER_MACRO_OUTLINE5P, APERTURE::APER_MACRO_OUTLINE6P, APERTURE::APER_MACRO_OUTLINE7P, APERTURE::APER_MACRO_OUTLINE8P, SHAPE_LINE_CHAIN::CPoint(), emitDcode(), ERROR_INSIDE, formatNetAttribute(), GBR_METADATA::GetApertureAttrib(), GBR_METADATA::GetCustomAttribute(), PLOTTER::GetPlotterArcHighDef(), m_gerberDisableApertMacros, m_hasApertureChamferedRect, m_hasApertureOutline4P, GBR_METADATA::m_NetlistMetadata, SHAPE_POLY_SET::Outline(), PlotGerberRegion(), SHAPE_LINE_CHAIN::PointCount(), RotatePoint(), selectAperture(), TransformRoundChamferedRectToPolygon(), PLOTTER::userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BRDITEMS_PLOTTER::PlotPad().
|
overridevirtual |
Filled circular flashes are stored as apertures.
Implements PLOTTER.
Definition at line 1250 of file GERBER_plotter.cpp.
References ANGLE_0, APERTURE::AT_CIRCLE, and selectApertureWithAttributes().
Referenced by GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), and GERBER_WRITER::createProtectionFile().
|
overridevirtual |
aPadPos | Position of the shape. |
aSize | is the size of round reference pad. |
aPadOrient | is the pad rotation, used only with aperture macros (Gerber plotter). |
aPolygons | the shape as polygon set. |
aData | an auxiliary info (mainly for gerber format attributes). |
Implements PLOTTER.
Definition at line 1539 of file GERBER_plotter.cpp.
References APERTURE::AM_FREE_POLYGON, SHAPE_POLY_SET::CloneDropTriangulation(), SHAPE_LINE_CHAIN::CPoint(), emitDcode(), formatNetAttribute(), GBR_MACRO_FOR_CUSTOM_PAD_MAX_CORNER_COUNT, GBR_METADATA::GetApertureAttrib(), GBR_METADATA::GetCustomAttribute(), m_gerberDisableApertMacros, GBR_METADATA::m_NetlistMetadata, SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), PlotGerberRegion(), SHAPE_LINE_CHAIN::PointCount(), RotatePoint(), selectAperture(), PLOTTER::userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtual |
aPadPos | Position of the shape (center of the rectangle. |
aSize | is the size of oblong shape. |
aPadOrient | The rotation of the shape. |
aData | an auxiliary info (mainly for gerber format attributes). |
Implements PLOTTER.
Definition at line 1259 of file GERBER_plotter.cpp.
References APERTURE::AM_ROTATED_OVAL, ANGLE_0, ANGLE_180, ANGLE_90, APERTURE::AT_OVAL, FlashPadRoundRect(), EDA_ANGLE::IsCardinal(), EDA_ANGLE::IsCardinal90(), m_gerberDisableApertMacros, m_hasApertureRotOval, PLOTTER::m_outputFile, EDA_ANGLE::Normalize(), selectApertureWithAttributes(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by GERBER_WRITER::createDrillFile().
|
overridevirtual |
aPadPos | Position of the shape (center of the rectangle). |
aSize | is the size of rounded rect. |
aPadOrient | The rotation of the shape. |
aData | an auxiliary info (mainly for gerber format attributes). |
Implements PLOTTER.
Definition at line 1310 of file GERBER_plotter.cpp.
References APERTURE::AM_ROT_RECT, ANGLE_0, APERTURE::AT_RECT, FlashPadTrapez(), EDA_ANGLE::IsCardinal(), EDA_ANGLE::IsCardinal90(), m_gerberDisableApertMacros, m_hasApertureRotRect, PLOTTER::m_outputFile, selectApertureWithAttributes(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtual |
aPadPos | Position of the shape (center of the rectangle. |
aSize | is the size of rounded rect. |
aCornerRadius | Radius of the rounded corners. |
aOrient | The rotation of the shape. |
aData | an auxiliary info (mainly for gerber format attributes). |
Implements PLOTTER.
Definition at line 1363 of file GERBER_plotter.cpp.
References APERTURE::AM_ROUND_RECT, GBR_APERTURE_METADATA::FormatAttribute(), formatNetAttribute(), GBR_METADATA::m_ApertureMetadata, m_gerberDisableApertMacros, m_hasApertureRoundRect, GBR_METADATA::m_NetlistMetadata, PLOTTER::m_outputFile, m_useX2format, plotRoundRectAsRegion(), and selectApertureWithAttributes().
Referenced by FlashPadOval().
|
overridevirtual |
Flash a trapezoidal pad.
aPadPos | is the the position of the shape. |
aCorners | is the list of 4 corners positions, relative to the shape position, pad orientation 0. |
aPadOrient | is the rotation of the shape. |
aData | an auxiliary info (mainly for gerber format attributes). |
Implements PLOTTER.
Definition at line 1714 of file GERBER_plotter.cpp.
References APERTURE::APER_MACRO_OUTLINE4P, emitDcode(), formatNetAttribute(), GBR_METADATA::GetApertureAttrib(), GBR_METADATA::GetCustomAttribute(), m_gerberDisableApertMacros, m_hasApertureOutline4P, GBR_METADATA::m_NetlistMetadata, PlotGerberRegion(), RotatePoint(), selectAperture(), and PLOTTER::userToDeviceCoordinates().
Referenced by FlashPadRect().
|
overridevirtual |
Flash a regular polygon.
Useful only in Gerber files to flash a regular polygon.
aShapePos | is the center of the circle containing the polygon. |
aRadius | is the radius of the circle containing the polygon. |
aCornerCount | is the number of vertices. |
aOrient | is the polygon rotation. |
aData | is a auxiliary parameter used (if needed) to handle extra info specific to the plotter. |
Implements PLOTTER.
Definition at line 1769 of file GERBER_plotter.cpp.
References APERTURE::AT_REGULAR_POLY12, APERTURE::AT_REGULAR_POLY3, and selectApertureWithAttributes().
Referenced by PLACEFILE_GERBER_WRITER::CreatePlaceFile().
|
protected |
Print a Gerber net attribute object record.
In a gerber file, a net attribute is owned by a graphic object formatNetAttribute must be called before creating the object. The generated string depends on the type of netlist info.
aData | contains the data to format. |
Definition at line 205 of file GERBER_plotter.cpp.
References clearNetAttribute(), FormatNetAttribute(), GBR_NETLIST_METADATA::m_ExtraData, m_objectAttributesDictionary, PLOTTER::m_outputFile, m_useNetAttributes, m_useX2format, and TO_UTF8.
Referenced by FilledCircle(), FlashPadChamferRoundRect(), FlashPadCustom(), FlashPadRoundRect(), FlashPadTrapez(), PlotPoly(), PlotText(), selectApertureWithAttributes(), Text(), ThickArc(), ThickCircle(), ThickPoly(), ThickRect(), and ThickSegment().
|
inlineinherited |
Definition at line 149 of file plotter.h.
References PLOTTER::m_colorMode.
Referenced by PLOT_CONTROLLER::GetColorMode(), LIB_SYMBOL::Plot(), SCH_FIELD::Plot(), SCH_LABEL_BASE::Plot(), SCH_RULE_AREA::Plot(), SCH_SHAPE::Plot(), SCH_SHEET::Plot(), SCH_TABLE::Plot(), SCH_TEXT::Plot(), SCH_TEXTBOX::Plot(), PlotDrawingSheet(), LIB_SYMBOL::PlotFields(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPDF(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), SCH_PIN::PlotPinTexts(), SCH_PIN::PlotPinType(), and DXF_PLOTTER::StartPlot().
|
inlinevirtualinherited |
Definition at line 167 of file plotter.h.
References PLOTTER::m_currentPenWidth.
Referenced by Arc(), PDF_PLOTTER::Arc(), SVG_PLOTTER::Arc(), SVG_PLOTTER::BezierCurve(), PS_PLOTTER::Circle(), PDF_PLOTTER::Circle(), SVG_PLOTTER::Circle(), PLOTTER::markerCircle(), PLOTTER::markerLozenge(), PLOTTER::markerSquare(), SVG_PLOTTER::PenTo(), PS_PLOTTER::PlotPoly(), PDF_PLOTTER::PlotPoly(), PS_PLOTTER::Rect(), PDF_PLOTTER::Rect(), SVG_PLOTTER::Rect(), PS_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::Text(), PDF_PLOTTER::Text(), and SVG_PLOTTER::Text().
|
protectedinherited |
Definition at line 144 of file plotter.cpp.
References KIGFX::RENDER_SETTINGS::GetGapLength(), PLOTTER::m_renderSettings, and PLOTTER::userToDeviceSize().
Referenced by PS_PLOTTER::SetDash(), PDF_PLOTTER::SetDash(), and SVG_PLOTTER::setSVGPlotStyle().
|
protectedinherited |
Definition at line 138 of file plotter.cpp.
References KIGFX::RENDER_SETTINGS::GetDashLength(), PLOTTER::m_renderSettings, and PLOTTER::userToDeviceSize().
Referenced by PS_PLOTTER::SetDash(), PDF_PLOTTER::SetDash(), and SVG_PLOTTER::setSVGPlotStyle().
|
inlinestatic |
Definition at line 39 of file plotter_gerber.h.
Referenced by GetDefaultPlotExtension().
|
protectedinherited |
Definition at line 132 of file plotter.cpp.
References KIGFX::RENDER_SETTINGS::GetDotLength(), PLOTTER::m_renderSettings, and PLOTTER::userToDeviceSize().
Referenced by PS_PLOTTER::SetDash(), PDF_PLOTTER::SetDash(), and SVG_PLOTTER::setSVGPlotStyle().
|
inlineinherited |
The IUs per decimil are an essential scaling factor when plotting; they are set and saved when establishing the viewport.
Here they can be get back again
Definition at line 225 of file plotter.h.
References PLOTTER::m_IUsPerDecimil.
Referenced by PlotDrawingSheet().
int GERBER_PLOTTER::GetOrCreateAperture | ( | const std::vector< VECTOR2I > & | aCorners, |
const EDA_ANGLE & | aRotation, | ||
APERTURE::APERTURE_TYPE | aType, | ||
int | aApertureAttribute, | ||
const std::string & | aCustomAttribute | ||
) |
aCorners | is the corner list. |
aRotation | is the rotation of tool. |
aType | is the type ( shape ) of tool that can manage a list of corners (polygon). |
aApertureAttribute | is an aperture attribute of the tool (a tool can have only one attribute) 0 = no specific attribute. |
aCustomAttribute | a String describing custom tools |
Definition at line 461 of file GERBER_plotter.cpp.
References APERTURE::AM_FREE_POLYGON, APER_MACRO_FREEPOLY_LIST::Append(), APER_MACRO_FREEPOLY_LIST::FindAm(), m_am_freepoly_list, APERTURE::m_ApertureAttribute, m_apertures, APERTURE::m_Corners, APERTURE::m_CustomAttribute, APERTURE::m_DCode, APERTURE::m_Radius, APERTURE::m_Rotation, APERTURE::m_Size, APERTURE::m_Type, and polyCompare().
int GERBER_PLOTTER::GetOrCreateAperture | ( | const VECTOR2I & | aSize, |
int | aRadius, | ||
const EDA_ANGLE & | aRotation, | ||
APERTURE::APERTURE_TYPE | aType, | ||
int | aApertureAttribute, | ||
const std::string & | aCustomAttribute | ||
) |
aSize | is the size of tool. |
aRadius | is the radius used for some shapes tool (oval, roundrect macros). |
aRotation | is the rotation of tool (primitives round, oval rect accept only 0.0). |
aType | is the type ( shape ) of tool. |
aApertureAttribute | is an aperture attribute of the tool (a tool can have only one attribute) 0 = no specific attribute. |
aCustomAttribute | a String describing custom tools |
Definition at line 423 of file GERBER_plotter.cpp.
References APERTURE::m_ApertureAttribute, m_apertures, APERTURE::m_CustomAttribute, APERTURE::m_DCode, APERTURE::m_Radius, APERTURE::m_Rotation, APERTURE::m_Size, and APERTURE::m_Type.
Referenced by selectAperture().
|
inlineinherited |
Definition at line 158 of file plotter.h.
References PLOTTER::m_plotMirror.
Referenced by BRDITEMS_PLOTTER::PlotPadNumber().
|
inlineinherited |
Definition at line 558 of file plotter.h.
References PLOTTER::m_plotOffset.
Referenced by PlotInteractiveLayer().
|
inlineinherited |
Definition at line 228 of file plotter.h.
References PLOTTER::m_IUsPerDecimil.
Referenced by FlashPadChamferRoundRect(), DXF_PLOTTER::FlashPadRoundRect(), PSLIKE_PLOTTER::FlashPadRoundRect(), BRDITEMS_PLOTTER::PlotPad(), DXF_PLOTTER::PlotPoly(), DXF_PLOTTER::ThickPoly(), and DXF_PLOTTER::ThickSegment().
|
inlineinherited |
Definition at line 227 of file plotter.h.
References PLOTTER::m_IUsPerDecimil.
|
inlineoverridevirtual |
Return the effective plot engine in use.
It's not very OO but for now is required since some things are only done with some output devices (like drill marks, emitted only for postscript
Implements PLOTTER.
Definition at line 34 of file plotter_gerber.h.
|
inlinevirtualinherited |
Create a clickable hyperlink with a rectangular click area.
aBox | is the rectangular click target |
aDestinationURL | is the target URL |
Reimplemented in PDF_PLOTTER.
Definition at line 460 of file plotter.h.
Referenced by SCH_LABEL_BASE::Plot(), SCH_SHEET::Plot(), SCH_TEXT::Plot(), and SCH_TEXTBOX::Plot().
|
inlinevirtualinherited |
Create a clickable hyperlink menu with a rectangular click area.
aBox | is the rectangular click target |
aDestURLs | is the target URL |
Reimplemented in PDF_PLOTTER.
Definition at line 471 of file plotter.h.
Referenced by SCH_FIELD::Plot(), SCH_LABEL_BASE::Plot(), SCH_LINE::Plot(), SCH_SHEET::Plot(), SCH_SYMBOL::Plot(), and PlotInteractiveLayer().
|
inlineinherited |
Definition at line 266 of file plotter.h.
References PLOTTER::PenTo().
Referenced by PLOTTER::BezierCurve(), DXF_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), SCH_LABEL_BASE::Plot(), plotArc(), PlotDrawingSheet(), SCH_PIN::PlotPinType(), PlotPoly(), DXF_PLOTTER::PlotPoly(), plotRoundRectAsRegion(), PLOTTER::PlotText(), PLOTTER::polyArc(), DXF_PLOTTER::Rect(), and PLOTTER::Text().
|
inherited |
Draw a pattern shape number aShapeId, to coord position.
aPosition | is the position of the marker. |
aDiameter | is the diameter of the marker. |
aShapeId | is the index (used to generate forms characters). |
Definition at line 363 of file plotter.cpp.
References PLOTTER::MARKER_COUNT, PLOTTER::markerBackSlash(), PLOTTER::markerCircle(), PLOTTER::markerHBar(), PLOTTER::markerLozenge(), PLOTTER::markerSlash(), PLOTTER::markerSquare(), PLOTTER::markerVBar(), and radius.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), and GENDRILL_WRITER_BASE::plotDrillMarks().
|
protectedinherited |
Plot a \ bar centered on the position.
Building block for markers
Definition at line 349 of file plotter.cpp.
References PLOTTER::FinishTo(), PLOTTER::MoveTo(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a circle centered on the position.
Building block for markers
Definition at line 302 of file plotter.cpp.
References PLOTTER::Circle(), PLOTTER::GetCurrentLineWidth(), and radius.
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a - bar centered on the position.
Building block for markers
Definition at line 335 of file plotter.cpp.
References PLOTTER::FinishTo(), PLOTTER::MoveTo(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a lozenge centered on the position.
Building block for markers
Definition at line 308 of file plotter.cpp.
References PLOTTER::GetCurrentLineWidth(), PLOTTER::PlotPoly(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a / bar centered on the position.
Building block for markers
Definition at line 342 of file plotter.cpp.
References PLOTTER::FinishTo(), PLOTTER::MoveTo(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a square centered on the position.
Building block for markers
Definition at line 274 of file plotter.cpp.
References PLOTTER::GetCurrentLineWidth(), KiROUND(), PLOTTER::PlotPoly(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a | bar centered on the position.
Building block for markers
Definition at line 356 of file plotter.cpp.
References PLOTTER::FinishTo(), PLOTTER::MoveTo(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PLOTTER::Marker().
|
inlineinherited |
Definition at line 261 of file plotter.h.
References PLOTTER::PenTo().
Referenced by PLOTTER::BezierCurve(), DXF_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), PLOTTER::markerBackSlash(), PLOTTER::markerHBar(), PLOTTER::markerSlash(), PLOTTER::markerVBar(), SCH_BUS_ENTRY_BASE::Plot(), SCH_LABEL_BASE::Plot(), SCH_LINE::Plot(), SCH_NO_CONNECT::Plot(), SCH_TABLE::Plot(), plotArc(), PlotDrawingSheet(), SCH_PIN::PlotPinType(), PlotPoly(), DXF_PLOTTER::PlotPoly(), plotRoundRectAsRegion(), PLOTTER::PlotText(), PLOTTER::polyArc(), DXF_PLOTTER::Rect(), PDF_PLOTTER::Rect(), PLOTTER::Text(), PLOTTER::ThickOval(), PLOTTER::ThickSegment(), and DXF_PLOTTER::ThickSegment().
|
virtualinherited |
Open or create the plot file aFullFilename.
aFullFilename | is the full file name of the file to create. |
Virtual because some plotters use ascii files, some others binary files (PDF) The base class open the file in text mode
Reimplemented in PDF_PLOTTER.
Definition at line 75 of file plotter.cpp.
References PLOTTER::m_filename, and PLOTTER::m_outputFile.
Referenced by GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GERBER_WRITER::createProtectionFile(), EESCHEMA_JOBS_HANDLER::doSymExportSvg(), GENDRILL_WRITER_BASE::genDrillMapFile(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), StartPlotBoard(), and SYMBOL_EDIT_FRAME::SVGPlotSymbol().
|
inlineinherited |
Definition at line 155 of file plotter.h.
References PLOTTER::m_pageInfo.
|
inlineinherited |
Definition at line 277 of file plotter.h.
References PLOTTER::PenTo().
Referenced by SCH_LABEL_BASE::Plot(), PlotPoly(), DXF_PLOTTER::PlotPoly(), PLOTTER::PlotText(), and PLOTTER::Text().
|
overridevirtual |
Moveto/lineto primitive, moves the 'pen' to the specified direction.
pos | is the target position. |
plume | specifies the kind of motion: 'U' only moves the pen, 'D' draw a line from the current position and 'Z' finish the drawing and returns the 'pen' to rest (flushes the trace). |
Implements PLOTTER.
Definition at line 827 of file GERBER_plotter.cpp.
References emitDcode(), PLOTTER::m_outputFile, PLOTTER::m_penState, and PLOTTER::userToDeviceCoordinates().
|
protected |
Definition at line 901 of file GERBER_plotter.cpp.
References center, end, SHAPE_ARC::GetArcMid(), SHAPE_ARC::GetCenter(), SHAPE_ARC::GetP0(), SHAPE_ARC::GetP1(), SHAPE_ARC::IsClockwise(), KiROUND(), PLOTTER::LineTo(), PLOTTER::m_outputFile, PLOTTER::MoveTo(), PLOTTER::userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
protected |
Plot a Gerber arc.
If aPlotInRegion = true, the current pen position will not be initialized to the arc start position, and therefore the arc can be used to define a region outline item a line will be created from current position to arc start point. If aPlotInRegion = false, the current pen position will be initialized to the arc start position, to plot an usual arc item. The line thickness is not initialized in plotArc, and must be initialized before calling it if needed.
Definition at line 939 of file GERBER_plotter.cpp.
References EDA_ANGLE::Cos(), end, KiROUND(), PLOTTER::LineTo(), PLOTTER::m_outputFile, PLOTTER::MoveTo(), EDA_ANGLE::Sin(), PLOTTER::userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by Arc(), PlotPoly(), and plotRoundRectAsRegion().
void GERBER_PLOTTER::PlotGerberRegion | ( | const SHAPE_LINE_CHAIN & | aPoly, |
GBR_METADATA * | aGbrMetadata | ||
) |
Definition at line 973 of file GERBER_plotter.cpp.
References GBR_APERTURE_METADATA::FormatAttribute(), GBR_METADATA::m_ApertureMetadata, PLOTTER::m_outputFile, m_useX2format, PlotPoly(), and SHAPE_LINE_CHAIN::PointCount().
void GERBER_PLOTTER::PlotGerberRegion | ( | const std::vector< VECTOR2I > & | aCornerList, |
GBR_METADATA * | aGbrMetadata | ||
) |
Plot a Gerber region: similar to PlotPoly but plot only filled polygon, and add the TA.AperFunction if aGbrMetadata contains this attribute, and clear it after plotting.
Definition at line 1004 of file GERBER_plotter.cpp.
References GBR_APERTURE_METADATA::FormatAttribute(), GBR_METADATA::m_ApertureMetadata, PLOTTER::m_outputFile, m_useX2format, and PlotPoly().
Referenced by FlashPadChamferRoundRect(), FlashPadCustom(), FlashPadTrapez(), and PlotPolyAsRegion().
|
virtualinherited |
Only PostScript plotters can plot bitmaps.
A rectangle is plotted for plotters that cannot plot a bitmap.
aImage | is the bitmap. |
aPos | is position of the center of the bitmap. |
aScaleFactor | is the scale factor to apply to the bitmap size (this is not the plot scale factor). |
Reimplemented in PS_PLOTTER, PDF_PLOTTER, and SVG_PLOTTER.
Definition at line 258 of file plotter.cpp.
References end, PLOTTER::Rect(), PLOTTER::USE_DEFAULT_LINE_WIDTH, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by SVG_PLOTTER::PlotImage(), and BITMAP_BASE::PlotImage().
|
overridevirtual |
Draw a polygon ( filled or not ).
aCornerList | is the corners list (a SHAPE_LINE_CHAIN). must be closed (IsClosed() == true) for a polygon. Otherwise this is a polyline. |
aFill | is the type of fill. |
aWidth | is the line width. |
aData | is an auxiliary info (mainly for gerber format). |
Plain point
Plain point
Reimplemented from PLOTTER.
Definition at line 1049 of file GERBER_plotter.cpp.
References SHAPE_LINE_CHAIN::Arc(), SHAPE_LINE_CHAIN::ArcIndex(), SHAPE_LINE_CHAIN::CPoint(), SHAPE_LINE_CHAIN::CPoints(), PLOTTER::FinishTo(), formatNetAttribute(), SHAPE_LINE_CHAIN::IsClosed(), PLOTTER::LineTo(), GBR_METADATA::m_NetlistMetadata, PLOTTER::m_outputFile, PLOTTER::MoveTo(), PLOTTER::PenFinish(), plotArc(), SHAPE_LINE_CHAIN::PointCount(), and SetCurrentLineWidth().
|
overridevirtual |
Gerber polygon: they can (and should) be filled with the appropriate G36/G37 sequence.
Implements PLOTTER.
Definition at line 1135 of file GERBER_plotter.cpp.
References PLOTTER::FinishTo(), formatNetAttribute(), PLOTTER::LineTo(), GBR_METADATA::m_NetlistMetadata, PLOTTER::m_outputFile, PLOTTER::MoveTo(), PLOTTER::PenFinish(), and SetCurrentLineWidth().
Referenced by PlotGerberRegion(), PlotPolyAsRegion(), and Rect().
void GERBER_PLOTTER::PlotPolyAsRegion | ( | const SHAPE_LINE_CHAIN & | aPoly, |
FILL_T | aFill, | ||
int | aWidth, | ||
GBR_METADATA * | aGbrMetadata | ||
) |
Similar to PlotPoly(), plot a filled polygon using Gerber region, therefore adding X2 attributes to the region object, like TA.xxx.
Definition at line 1036 of file GERBER_plotter.cpp.
References PlotGerberRegion(), and PlotPoly().
Referenced by BRDITEMS_PLOTTER::PlotShape().
|
protected |
Plot a round rect (a round rect shape in fact) as a Gerber region using lines and arcs for corners.
aRectCenter | is the center of the rectangle. |
aSize | is the size of the rectangle. |
aCornerRadius | is the radius of the corners. |
aOrient | is the rotation of the rectangle. |
Definition at line 1410 of file GERBER_plotter.cpp.
References ANGLE_0, ANGLE_180, ANGLE_90, EDA_ANGLE::Cos(), KiROUND(), PLOTTER::LineTo(), PLOTTER::m_outputFile, PLOTTER::MoveTo(), plotArc(), RotatePoint(), EDA_ANGLE::Sin(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by FlashPadRoundRect().
|
overridevirtual |
Reimplemented from PLOTTER.
Definition at line 1816 of file GERBER_plotter.cpp.
References formatNetAttribute(), GBR_METADATA::m_NetlistMetadata, and PLOTTER::PlotText().
|
protectedvirtualinherited |
Generic fallback: arc rendered as a polyline.
Note also aCentre and aRadius are double to avoid creating rounding issues due to the fact a arc is defined in Kicad by a start point, a end point and third point not angles and radius. In some plotters (i.e. dxf) whe need a good precision when calculating an arc without error introduced by rounding, to avoid moving the end points, usually important in outlines when plotting an arc given by center, radius and angles. Winding direction: counter-clockwise in right-down coordinate system.
Definition at line 181 of file plotter.cpp.
References ANGLE_0, EDA_ANGLE::Cos(), DEGREES_T, delta, end, PLOTTER::FinishTo(), KiROUND(), PLOTTER::LineTo(), PLOTTER::MoveTo(), PLOTTER::SetCurrentLineWidth(), sign(), EDA_ANGLE::Sin(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PLOTTER::Arc(), and Arc().
|
overridevirtual |
Implements PLOTTER.
Definition at line 849 of file GERBER_plotter.cpp.
References PlotPoly(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
inlineinherited |
Definition at line 152 of file plotter.h.
References PLOTTER::m_renderSettings.
Referenced by PLOT_CONTROLLER::ClosePlot(), SCH_ITEM::getRenderSettings(), PCB_PLOTTER::Plot(), SCH_BITMAP::Plot(), SCH_JUNCTION::Plot(), SCH_LABEL_BASE::Plot(), SCH_NO_CONNECT::Plot(), SCH_SHEET::Plot(), SCH_TABLE::Plot(), SCH_TEXT::Plot(), SCH_SCREEN::Plot(), PlotDrawingSheet(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPDF(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), SCH_PIN::PlotPinTexts(), SCH_PIN::PlotPinType(), BRDITEMS_PLOTTER::PlotShape(), BRDITEMS_PLOTTER::PlotTableBorders(), BRDITEMS_PLOTTER::PlotText(), setupPlotterNewPDFPage(), and StartPlotBoard().
|
protected |
Pick an existing aperture or create a new one, matching the aDiameter, aPolygonRotation, type and attributes.
It apply only to apertures with type = AT_REGULAR_POLY3 to AT_REGULAR_POLY12 write the DCode selection on gerber file
Definition at line 543 of file GERBER_plotter.cpp.
References GetOrCreateAperture(), m_apertures, m_currentApertureIdx, and PLOTTER::m_outputFile.
|
protected |
Pick an existing aperture or create a new one, matching the size, type and attributes.
Write the DCode selection on gerber file.
Definition at line 517 of file GERBER_plotter.cpp.
References GetOrCreateAperture(), m_apertures, m_currentApertureIdx, and PLOTTER::m_outputFile.
Referenced by FlashPadChamferRoundRect(), FlashPadCustom(), FlashPadTrapez(), selectApertureWithAttributes(), and SetCurrentLineWidth().
|
protected |
Pick an aperture or create a new one and emits the DCode.
Definition at line 580 of file GERBER_plotter.cpp.
References emitDcode(), formatNetAttribute(), GBR_METADATA::GetApertureAttrib(), GBR_METADATA::GetCustomAttribute(), GBR_METADATA::m_NetlistMetadata, selectAperture(), and PLOTTER::userToDeviceCoordinates().
Referenced by FlashPadCircle(), FlashPadOval(), FlashPadRect(), FlashPadRoundRect(), and FlashRegularPolygon().
|
inlinevirtualinherited |
Definition at line 175 of file plotter.h.
References PLOTTER::m_author.
Referenced by SCH_PLOTTER::createPDFFile(), and PCB_PLOTTER::Plot().
|
inlineoverridevirtual |
Implements PLOTTER.
Definition at line 56 of file plotter_gerber.h.
|
inlinevirtualinherited |
Plot in B/W or color.
aColorMode | use true to plot in color, false to plot in black and white. |
Definition at line 148 of file plotter.h.
References PLOTTER::m_colorMode.
Referenced by SCH_PLOTTER::createPDFFile(), EESCHEMA_JOBS_HANDLER::doSymExportSvg(), GENDRILL_WRITER_BASE::genDrillMapFile(), initializePlotter(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), PLOT_CONTROLLER::SetColorMode(), and SYMBOL_EDIT_FRAME::SVGPlotSymbol().
|
inlinevirtualinherited |
Definition at line 173 of file plotter.h.
References PLOTTER::m_creator.
Referenced by GERBER_WRITER::createDrillFile(), SCH_PLOTTER::createPDFFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GERBER_WRITER::createProtectionFile(), EESCHEMA_JOBS_HANDLER::doSymExportSvg(), GENDRILL_WRITER_BASE::genDrillMapFile(), initializePlotter(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), and SYMBOL_EDIT_FRAME::SVGPlotSymbol().
|
overridevirtual |
Set the line width for the next drawing.
width | is specified in IUs. |
aData | is an auxiliary parameter, mainly used in gerber plotter. |
Implements PLOTTER.
Definition at line 399 of file GERBER_plotter.cpp.
References ANGLE_0, APERTURE::AT_PLOTTING, PLOTTER::DO_NOT_SET_LINE_WIDTH, GBR_METADATA::GetApertureAttrib(), GBR_METADATA::GetCustomAttribute(), KIGFX::RENDER_SETTINGS::GetDefaultPenWidth(), PLOTTER::m_currentPenWidth, PLOTTER::m_renderSettings, selectAperture(), and PLOTTER::USE_DEFAULT_LINE_WIDTH.
Referenced by Arc(), FilledCircle(), PlotPoly(), ThickArc(), ThickCircle(), ThickPoly(), ThickRect(), and ThickSegment().
|
inlineoverridevirtual |
Implements PLOTTER.
Definition at line 52 of file plotter_gerber.h.
|
overridevirtual |
Selection of Gerber units and resolution (number of digits in mantissa).
Should be called only after SetViewport() is called.
aResolution | is the number of digits in mantissa of coordinate use 5 or 6 for mm and 6 or 7 for inches do not use value > 6 (mm) or > 7 (in) to avoid overflow. |
aUseInches | use true to use inches, false to use mm (default). |
Reimplemented from PLOTTER.
Definition at line 145 of file GERBER_plotter.cpp.
References m_gerberUnitFmt, m_gerberUnitInch, PLOTTER::m_iuPerDeviceUnit, and PLOTTER::m_IUsPerDecimil.
Referenced by GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), and GERBER_WRITER::createProtectionFile().
|
overridevirtual |
Change the plot polarity and begin a new layer.
Used to 'scratch off' silk screen away from solder mask.
Reimplemented from PLOTTER.
Definition at line 1833 of file GERBER_plotter.cpp.
References PLOTTER::m_outputFile.
|
inlinevirtualinherited |
Definition at line 141 of file plotter.h.
References PLOTTER::m_negativeMode.
Referenced by FillNegativeKnockout().
|
inlinevirtualinherited |
Definition at line 154 of file plotter.h.
References PLOTTER::m_pageInfo.
Referenced by EESCHEMA_JOBS_HANDLER::doSymExportSvg(), GENDRILL_WRITER_BASE::genDrillMapFile(), initializePlotter(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), SCH_PLOTTER::setupPlotPagePDF(), and SYMBOL_EDIT_FRAME::SVGPlotSymbol().
|
inlineinherited |
Definition at line 157 of file plotter.h.
References PLOTTER::m_plotMirror.
|
inlineinherited |
Definition at line 151 of file plotter.h.
References PLOTTER::m_renderSettings.
Referenced by SCH_PLOTTER::createPDFFile(), EESCHEMA_JOBS_HANDLER::doSymExportSvg(), GENDRILL_WRITER_BASE::genDrillMapFile(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), StartPlotBoard(), and SYMBOL_EDIT_FRAME::SVGPlotSymbol().
|
inlinevirtualinherited |
Definition at line 176 of file plotter.h.
References PLOTTER::m_subject.
Referenced by SCH_PLOTTER::createPDFFile(), and PCB_PLOTTER::Plot().
|
inlinevirtualinherited |
Set the number of digits for mantissa in coordinates in mm for SVG plotter.
Reimplemented in SVG_PLOTTER.
Definition at line 532 of file plotter.h.
Referenced by initializePlotter().
|
inlinevirtualinherited |
Change the current text mode.
See the PlotTextMode explanation at the beginning of the file.
Reimplemented in DXF_PLOTTER, and PSLIKE_PLOTTER.
Definition at line 521 of file plotter.h.
Referenced by initializePlotter(), BRDITEMS_PLOTTER::PlotBoardGraphicItem(), BRDITEMS_PLOTTER::PlotFootprintGraphicItems(), and PlotOneBoardLayer().
|
inlinevirtualinherited |
Definition at line 174 of file plotter.h.
References PLOTTER::m_title.
Referenced by SCH_PLOTTER::createPDFFile(), and PCB_PLOTTER::Plot().
|
overridevirtual |
Set the plot offset and scaling for the current plot.
aOffset | is the plot offset. |
aIusPerDecimil | gives the scaling factor from IUs to device units |
aScale | is the user set plot scaling factor (either explicitly or using 'fit to A4'). |
aMirror | flips the plot in the Y direction (useful for toner transfers or some kind of film). |
Implements PLOTTER.
Definition at line 123 of file GERBER_plotter.cpp.
References m_gerberUnitFmt, PLOTTER::m_iuPerDeviceUnit, PLOTTER::m_IUsPerDecimil, PLOTTER::m_paperSize, PLOTTER::m_plotMirror, PLOTTER::m_plotOffset, PLOTTER::m_plotScale, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), and GERBER_WRITER::createProtectionFile().
|
overridevirtual |
Calling this function allows one to define the beginning of a group of drawing items (used in X2 format with netlist attributes).
aData | can define any parameter. |
Reimplemented from PLOTTER.
Definition at line 191 of file GERBER_plotter.cpp.
References EndBlock().
|
overridevirtual |
Write GERBER header to file initialize global variable g_Plot_PlotOutputFile.
Implements PLOTTER.
Definition at line 239 of file GERBER_plotter.cpp.
References APER_MACRO_FREEPOLY_LIST::ClearList(), finalFile, GetBuildVersion(), KIGFX::RENDER_SETTINGS::GetDefaultPenWidth(), m_am_freepoly_list, PLOTTER::m_creator, m_gerberUnitFmt, m_gerberUnitInch, m_hasApertureChamferedRect, m_hasApertureOutline4P, m_hasApertureRotOval, m_hasApertureRotRect, m_hasApertureRoundRect, PLOTTER::m_headerExtraLines, PLOTTER::m_IUsPerDecimil, PLOTTER::m_outputFile, PLOTTER::m_renderSettings, m_workFilename, KIGFX::RENDER_SETTINGS::SetDefaultPenWidth(), TO_UTF8, and workFile.
Referenced by GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), and GERBER_WRITER::createProtectionFile().
|
overridevirtual |
Draw text with the plotter.
For convenience it accept the color to use for specific plotters aData is used to pass extra parameters (GERBER).
aPos | is the text position (according to aH_justify, aV_justify). |
aColor | is the text color. |
aText | is the text to draw. |
aOrient | is the angle. |
aSize | is the text size (size.x or size.y can be < 0 for mirrored texts). |
aH_justify | is the horizontal justification (Left, center, right). |
aV_justify | is the vertical justification (bottom, center, top). |
aPenWidth | is the line width (if = 0, use plot default line width). |
aItalic | is the true to simulate an italic font. |
aBold | use true to use a bold font Useful only with default width value (aPenWidth = 0). |
aMultilineAllowed | use true to plot text as multiline, otherwise single line. |
aData | is a parameter used by some plotters in SetCurrentLineWidth(), not directly used here. |
Reimplemented from PLOTTER.
Definition at line 1791 of file GERBER_plotter.cpp.
References formatNetAttribute(), GBR_METADATA::m_NetlistMetadata, and PLOTTER::Text().
|
virtualinherited |
Definition at line 560 of file plotter.cpp.
References center, end, EDA_SHAPE::GetArcMid(), EDA_SHAPE::getCenter(), EDA_SHAPE::GetEnd(), EDA_SHAPE::GetStart(), EDA_ANGLE::Normalize(), EDA_ANGLE::NormalizeNegative(), radius, and PLOTTER::ThickArc().
Referenced by BRDITEMS_PLOTTER::PlotShape(), PlotStandardLayer(), PLOTTER::ThickArc(), and ThickArc().
|
overrideprotectedvirtual |
Reimplemented from PLOTTER.
Definition at line 1195 of file GERBER_plotter.cpp.
References PLOTTER::DO_NOT_SET_LINE_WIDTH, formatNetAttribute(), SetCurrentLineWidth(), and PLOTTER::ThickArc().
|
overridevirtual |
Reimplemented from PLOTTER.
Definition at line 1216 of file GERBER_plotter.cpp.
References PLOTTER::DO_NOT_SET_LINE_WIDTH, formatNetAttribute(), SetCurrentLineWidth(), and PLOTTER::ThickCircle().
|
virtualinherited |
Definition at line 485 of file plotter.cpp.
References ANGLE_180, ANGLE_90, PLOTTER::Arc(), PLOTTER::FinishTo(), PLOTTER::MoveTo(), radius, RotatePoint(), PLOTTER::SetCurrentLineWidth(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DXF_PLOTTER::FlashPadOval(), GENDRILL_WRITER_BASE::plotDrillMarks(), PlotLayerOutlines(), and BRDITEMS_PLOTTER::PlotPad().
|
overridevirtual |
Reimplemented from PLOTTER.
Definition at line 1240 of file GERBER_plotter.cpp.
References PLOTTER::DO_NOT_SET_LINE_WIDTH, formatNetAttribute(), SetCurrentLineWidth(), and PLOTTER::ThickPoly().
|
overridevirtual |
Reimplemented from PLOTTER.
Definition at line 1206 of file GERBER_plotter.cpp.
References PLOTTER::DO_NOT_SET_LINE_WIDTH, formatNetAttribute(), SetCurrentLineWidth(), and PLOTTER::ThickRect().
|
overridevirtual |
Reimplemented from PLOTTER.
Definition at line 1185 of file GERBER_plotter.cpp.
References PLOTTER::DO_NOT_SET_LINE_WIDTH, end, formatNetAttribute(), SetCurrentLineWidth(), and PLOTTER::ThickSegment().
Referenced by GERBER_WRITER::createDrillFile().
Modify coordinates according to the orientation, scale factor, and offsets trace.
Also convert from a VECTOR2I to VECTOR2D, since some output engines needs floating point coordinates.
Definition at line 91 of file plotter.cpp.
References PLOTTER::m_iuPerDeviceUnit, PLOTTER::m_mirrorIsHorizontal, PLOTTER::m_paperSize, PLOTTER::m_plotMirror, PLOTTER::m_plotOffset, PLOTTER::m_plotScale, PLOTTER::m_yaxisReversed, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DXF_PLOTTER::Arc(), PS_PLOTTER::Arc(), PDF_PLOTTER::Arc(), SVG_PLOTTER::Arc(), SVG_PLOTTER::BezierCurve(), DXF_PLOTTER::Circle(), PS_PLOTTER::Circle(), PDF_PLOTTER::Circle(), SVG_PLOTTER::Circle(), PSLIKE_PLOTTER::computeTextParameters(), FlashPadChamferRoundRect(), FlashPadCustom(), FlashPadTrapez(), DXF_PLOTTER::PenTo(), PenTo(), PS_PLOTTER::PenTo(), PDF_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), plotArc(), PS_PLOTTER::PlotImage(), PDF_PLOTTER::PlotImage(), DXF_PLOTTER::plotOneLineOfText(), SVG_PLOTTER::PlotPoly(), PS_PLOTTER::PlotPoly(), PDF_PLOTTER::PlotPoly(), PS_PLOTTER::PlotText(), DXF_PLOTTER::Rect(), PS_PLOTTER::Rect(), PDF_PLOTTER::Rect(), SVG_PLOTTER::Rect(), selectApertureWithAttributes(), PS_PLOTTER::Text(), and SVG_PLOTTER::Text().
Modify size according to the plotter scale factors (VECTOR2I version, returns a VECTOR2D).
Definition at line 116 of file plotter.cpp.
References PLOTTER::m_iuPerDeviceUnit, PLOTTER::m_plotScale, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DXF_PLOTTER::Arc(), PS_PLOTTER::Arc(), SVG_PLOTTER::Arc(), DXF_PLOTTER::Circle(), PS_PLOTTER::Circle(), PDF_PLOTTER::Circle(), SVG_PLOTTER::Circle(), PSLIKE_PLOTTER::computeTextParameters(), PLOTTER::GetDashGapLenIU(), PLOTTER::GetDashMarkLenIU(), PLOTTER::GetDotMarkLenIU(), PDF_PLOTTER::PlotImage(), SVG_PLOTTER::PlotImage(), DXF_PLOTTER::plotOneLineOfText(), PS_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::setSVGPlotStyle(), PDF_PLOTTER::StartPage(), PS_PLOTTER::StartPlot(), and SVG_PLOTTER::Text().
|
protectedvirtualinherited |
Modify size according to the plotter scale factors (simple double version).
Definition at line 123 of file plotter.cpp.
References PLOTTER::m_iuPerDeviceUnit, and PLOTTER::m_plotScale.
|
inline |
Definition at line 196 of file plotter_gerber.h.
References m_useX2format.
Referenced by GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GERBER_WRITER::createProtectionFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), and StartPlotBoard().
|
inline |
Definition at line 197 of file plotter_gerber.h.
References m_useNetAttributes.
Referenced by GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GERBER_WRITER::createProtectionFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), and StartPlotBoard().
|
protected |
Generate the table of D codes.
Definition at line 605 of file GERBER_plotter.cpp.
References APERTURE::AM_FREE_POLYGON, AM_FREEPOLY_BASENAME, APERTURE::AM_ROT_RECT, APERTURE::AM_ROTATED_OVAL, APERTURE::AM_ROUND_RECT, APERTURE::APER_MACRO_OUTLINE4P, APER_MACRO_OUTLINE4P_NAME, APERTURE::APER_MACRO_OUTLINE5P, APER_MACRO_OUTLINE5P_NAME, APERTURE::APER_MACRO_OUTLINE6P, APER_MACRO_OUTLINE6P_NAME, APERTURE::APER_MACRO_OUTLINE7P, APER_MACRO_OUTLINE7P_NAME, APERTURE::APER_MACRO_OUTLINE8P, APER_MACRO_OUTLINE8P_NAME, APER_MACRO_ROT_RECT_NAME, APER_MACRO_ROUNDRECT_NAME, APER_MACRO_SHAPE_OVAL_NAME, APERTURE::AT_CIRCLE, APERTURE::AT_OVAL, APERTURE::AT_PLOTTING, APERTURE::AT_RECT, APERTURE::AT_REGULAR_POLY, APERTURE::AT_REGULAR_POLY10, APERTURE::AT_REGULAR_POLY11, APERTURE::AT_REGULAR_POLY12, APERTURE::AT_REGULAR_POLY3, APERTURE::AT_REGULAR_POLY4, APERTURE::AT_REGULAR_POLY5, APERTURE::AT_REGULAR_POLY6, APERTURE::AT_REGULAR_POLY7, APERTURE::AT_REGULAR_POLY8, APERTURE::AT_REGULAR_POLY9, end, APER_MACRO_FREEPOLY_LIST::FindAm(), GBR_APERTURE_METADATA::FormatAttribute(), m_am_freepoly_list, m_apertureAttribute, m_apertures, m_gerberUnitInch, PLOTTER::m_IUsPerDecimil, PLOTTER::m_outputFile, PLOTTER::m_plotScale, m_useX2format, RotatePoint(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by EndPlot().
|
staticinherited |
Definition at line 124 of file plotter.h.
Referenced by FilledCircle(), SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), ThickArc(), ThickCircle(), ThickPoly(), ThickRect(), and ThickSegment().
|
protected |
Definition at line 358 of file plotter_gerber.h.
Referenced by EndPlot(), GERBER_PLOTTER(), and StartPlot().
|
protected |
Definition at line 392 of file plotter_gerber.h.
Referenced by EndPlot(), GetOrCreateAperture(), StartPlot(), and writeApertureList().
|
protected |
Definition at line 355 of file plotter_gerber.h.
Referenced by GERBER_PLOTTER(), and writeApertureList().
|
protected |
Definition at line 366 of file plotter_gerber.h.
Referenced by GetOrCreateAperture(), selectAperture(), and writeApertureList().
|
protectedinherited |
Definition at line 672 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), and PLOTTER::SetAuthor().
|
protectedinherited |
Definition at line 663 of file plotter.h.
Referenced by PDF_PLOTTER::endPlotEmitResources(), PLOTTER::GetColorMode(), PS_PLOTTER::PlotImage(), SVG_PLOTTER::PlotImage(), PLOTTER::PLOTTER(), DXF_PLOTTER::SetColor(), PSLIKE_PLOTTER::SetColor(), and PLOTTER::SetColorMode().
|
protectedinherited |
Definition at line 669 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), PLOTTER::SetCreator(), PS_PLOTTER::StartPlot(), SVG_PLOTTER::StartPlot(), and StartPlot().
|
protected |
Definition at line 367 of file plotter_gerber.h.
Referenced by GERBER_PLOTTER(), and selectAperture().
|
protectedinherited |
Definition at line 665 of file plotter.h.
Referenced by PLOTTER::GetCurrentLineWidth(), PLOTTER::PLOTTER(), SetCurrentLineWidth(), DXF_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), and PDF_PLOTTER::StartPage().
|
protectedinherited |
Definition at line 670 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), PLOTTER::OpenFile(), PDF_PLOTTER::OpenFile(), and SVG_PLOTTER::StartPlot().
|
protected |
Definition at line 379 of file plotter_gerber.h.
Referenced by DisableApertMacros(), FlashPadChamferRoundRect(), FlashPadCustom(), FlashPadOval(), FlashPadRect(), FlashPadRoundRect(), FlashPadTrapez(), and GERBER_PLOTTER().
|
protected |
Definition at line 377 of file plotter_gerber.h.
Referenced by GERBER_PLOTTER(), SetGerberCoordinatesFormat(), SetViewport(), and StartPlot().
|
protected |
Definition at line 376 of file plotter_gerber.h.
Referenced by EndPlot(), GERBER_PLOTTER(), SetGerberCoordinatesFormat(), StartPlot(), and writeApertureList().
|
protected |
Definition at line 373 of file plotter_gerber.h.
Referenced by EndPlot(), FlashPadChamferRoundRect(), GERBER_PLOTTER(), and StartPlot().
|
protected |
Definition at line 371 of file plotter_gerber.h.
Referenced by EndPlot(), FlashPadChamferRoundRect(), FlashPadTrapez(), GERBER_PLOTTER(), and StartPlot().
|
protected |
Definition at line 369 of file plotter_gerber.h.
Referenced by EndPlot(), FlashPadOval(), GERBER_PLOTTER(), and StartPlot().
|
protected |
Definition at line 370 of file plotter_gerber.h.
Referenced by EndPlot(), FlashPadRect(), GERBER_PLOTTER(), and StartPlot().
|
protected |
Definition at line 368 of file plotter_gerber.h.
Referenced by EndPlot(), FlashPadRoundRect(), GERBER_PLOTTER(), and StartPlot().
|
protectedinherited |
Definition at line 677 of file plotter.h.
Referenced by PLOTTER::AddLineToHeader(), PLOTTER::ClearHeaderLinesList(), and StartPlot().
|
protectedinherited |
Definition at line 651 of file plotter.h.
Referenced by PLOTTER::PLOTTER(), SetGerberCoordinatesFormat(), DXF_PLOTTER::SetViewport(), SetViewport(), PS_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), SVG_PLOTTER::StartPlot(), PLOTTER::userToDeviceCoordinates(), and PLOTTER::userToDeviceSize().
|
protectedinherited |
Definition at line 649 of file plotter.h.
Referenced by PDF_PLOTTER::ClosePage(), EndPlot(), PLOTTER::GetIUsPerDecimil(), PLOTTER::GetPlotterArcHighDef(), PLOTTER::GetPlotterArcLowDef(), PLOTTER::PLOTTER(), SetGerberCoordinatesFormat(), DXF_PLOTTER::SetViewport(), SetViewport(), PS_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), SVG_PLOTTER::StartPlot(), StartPlot(), and writeApertureList().
|
protectedinherited |
Definition at line 656 of file plotter.h.
Referenced by SVG_PLOTTER::Arc(), PDF_PLOTTER::ClosePage(), PLOTTER::PLOTTER(), and PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
Definition at line 664 of file plotter.h.
Referenced by PLOTTER::PLOTTER(), PSLIKE_PLOTTER::SetColor(), and PLOTTER::SetNegative().
|
protected |
Definition at line 352 of file plotter_gerber.h.
Referenced by ClearAllAttributes(), clearNetAttribute(), and formatNetAttribute().
|
protectedinherited |
Output file.
Definition at line 660 of file plotter.h.
Referenced by DXF_PLOTTER::Arc(), PS_PLOTTER::Arc(), SVG_PLOTTER::Arc(), SVG_PLOTTER::BezierCurve(), DXF_PLOTTER::Circle(), PS_PLOTTER::Circle(), SVG_PLOTTER::Circle(), ClearAllAttributes(), clearNetAttribute(), PDF_PLOTTER::ClosePage(), PDF_PLOTTER::closePdfObject(), PDF_PLOTTER::closePdfStream(), emitDcode(), PDF_PLOTTER::emitGoToAction(), PDF_PLOTTER::emitOutline(), PDF_PLOTTER::emitOutlineNode(), PS_PLOTTER::emitSetRGBColor(), DXF_PLOTTER::EndPlot(), EndPlot(), PS_PLOTTER::EndPlot(), PDF_PLOTTER::EndPlot(), SVG_PLOTTER::EndPlot(), PDF_PLOTTER::endPlotEmitResources(), DXF_PLOTTER::FlashPadCircle(), FlashPadOval(), PSLIKE_PLOTTER::FlashPadOval(), DXF_PLOTTER::FlashPadOval(), FlashPadRect(), DXF_PLOTTER::FlashPadRect(), FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), formatNetAttribute(), PLOTTER::OpenFile(), PDF_PLOTTER::OpenFile(), DXF_PLOTTER::PenTo(), PenTo(), PS_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), PDF_PLOTTER::Plot3DModel(), plotArc(), PlotGerberRegion(), PS_PLOTTER::PlotImage(), SVG_PLOTTER::PlotImage(), DXF_PLOTTER::plotOneLineOfText(), PlotPoly(), SVG_PLOTTER::PlotPoly(), PS_PLOTTER::PlotPoly(), plotRoundRectAsRegion(), PLOTTER::PLOTTER(), PS_PLOTTER::PlotText(), DXF_PLOTTER::Rect(), PS_PLOTTER::Rect(), SVG_PLOTTER::Rect(), selectAperture(), PS_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetDash(), SetLayerPolarity(), SVG_PLOTTER::setSVGPlotStyle(), PS_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), PDF_PLOTTER::startPdfObject(), PDF_PLOTTER::startPdfStream(), DXF_PLOTTER::StartPlot(), PS_PLOTTER::StartPlot(), SVG_PLOTTER::StartPlot(), PDF_PLOTTER::StartPlot(), StartPlot(), PS_PLOTTER::Text(), SVG_PLOTTER::Text(), writeApertureList(), and PLOTTER::~PLOTTER().
|
protectedinherited |
Definition at line 674 of file plotter.h.
Referenced by PDF_PLOTTER::ClosePage(), PLOTTER::PageSettings(), PLOTTER::SetPageSettings(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), and PS_PLOTTER::StartPlot().
|
protectedinherited |
Definition at line 675 of file plotter.h.
Referenced by DXF_PLOTTER::SetViewport(), SetViewport(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), SVG_PLOTTER::StartPlot(), and PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
Definition at line 667 of file plotter.h.
Referenced by DXF_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), PDF_PLOTTER::PenTo(), and SVG_PLOTTER::PenTo().
|
protectedinherited |
Definition at line 666 of file plotter.h.
Referenced by PenTo(), PS_PLOTTER::PenTo(), PDF_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), and PLOTTER::PLOTTER().
|
protectedinherited |
Definition at line 654 of file plotter.h.
Referenced by PS_PLOTTER::Arc(), SVG_PLOTTER::Arc(), PDF_PLOTTER::ClosePage(), PSLIKE_PLOTTER::computeTextParameters(), PLOTTER::GetPlotMirrored(), PLOTTER::PLOTTER(), PLOTTER::SetPlotMirrored(), DXF_PLOTTER::SetViewport(), SetViewport(), PS_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), SVG_PLOTTER::Text(), and PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
Definition at line 653 of file plotter.h.
Referenced by PLOTTER::GetPlotOffsetUserUnits(), DXF_PLOTTER::SetViewport(), SetViewport(), PS_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), and PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
Plot scale - chosen by the user (even implicitly with 'fit in a4')
Definition at line 643 of file plotter.h.
Referenced by EndPlot(), PLOTTER::PLOTTER(), DXF_PLOTTER::SetViewport(), SetViewport(), PS_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), PLOTTER::userToDeviceCoordinates(), PLOTTER::userToDeviceSize(), and writeApertureList().
|
protectedinherited |
Definition at line 681 of file plotter.h.
Referenced by PDF_PLOTTER::endPlotEmitResources().
|
protectedinherited |
Definition at line 679 of file plotter.h.
Referenced by PDF_PLOTTER::endPlotEmitResources(), PLOTTER::GetDashGapLenIU(), PLOTTER::GetDashMarkLenIU(), PLOTTER::GetDotMarkLenIU(), PLOTTER::PLOTTER(), PLOTTER::RenderSettings(), SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), PLOTTER::SetRenderSettings(), PDF_PLOTTER::StartPage(), PS_PLOTTER::StartPlot(), and StartPlot().
|
protectedinherited |
Definition at line 673 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), and PLOTTER::SetSubject().
|
protectedinherited |
Definition at line 671 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), PLOTTER::SetTitle(), and PS_PLOTTER::StartPlot().
|
protected |
Definition at line 384 of file plotter_gerber.h.
Referenced by formatNetAttribute(), GERBER_PLOTTER(), and UseX2NetAttributes().
|
protected |
Definition at line 382 of file plotter_gerber.h.
Referenced by ClearAllAttributes(), clearNetAttribute(), FlashPadRoundRect(), formatNetAttribute(), GERBER_PLOTTER(), PlotGerberRegion(), UseX2format(), and writeApertureList().
|
protected |
Definition at line 359 of file plotter_gerber.h.
Referenced by EndPlot(), and StartPlot().
|
protectedinherited |
Definition at line 657 of file plotter.h.
Referenced by PLOTTER::PLOTTER(), SVG_PLOTTER::SetViewport(), and PLOTTER::userToDeviceCoordinates().
|
staticinherited |
Draw a marker (used for the drill map).
Definition at line 491 of file plotter.h.
Referenced by PLOTTER::Marker().
|
staticinherited |
Definition at line 125 of file plotter.h.
Referenced by GENDRILL_WRITER_BASE::plotDrillMarks(), PLOTTER::PlotImage(), PlotLayerOutlines(), SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), and SVG_PLOTTER::SetCurrentLineWidth().
|
protected |
Definition at line 357 of file plotter_gerber.h.
Referenced by EndPlot(), GERBER_PLOTTER(), and StartPlot().