![]() |
KiCad PCB EDA Suite
|
#include <plotter_gerber.h>
Public Member Functions | |
GERBER_PLOTTER () | |
virtual PLOT_FORMAT | GetPlotterType () const override |
Returns the effective plot engine in use. More... | |
virtual bool | StartPlot () override |
Write GERBER header to file initialize global variable g_Plot_PlotOutputFile. More... | |
virtual bool | EndPlot () override |
virtual void | SetCurrentLineWidth (int width, void *aData=nullptr) override |
Set the line width for the next drawing. More... | |
virtual void | SetDash (PLOT_DASH_TYPE dashed) override |
virtual void | SetColor (const COLOR4D &color) override |
virtual void | SetViewport (const wxPoint &aOffset, double aIusPerDecimil, double aScale, bool aMirror) override |
Set the plot offset and scaling for the current plot. More... | |
virtual void | Rect (const wxPoint &p1, const wxPoint &p2, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH) override |
virtual void | Circle (const wxPoint &pos, int diametre, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH) override |
virtual void | Arc (const wxPoint &aCenter, double aStAngle, double aEndAngle, int aRadius, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH) override |
Generic fallback: arc rendered as a polyline. More... | |
virtual void | Arc (const SHAPE_ARC &aArc) override |
virtual void | ThickSegment (const wxPoint &start, const wxPoint &end, int width, OUTLINE_MODE tracemode, void *aData) override |
virtual void | ThickArc (const wxPoint ¢re, double StAngle, double EndAngle, int rayon, int width, OUTLINE_MODE tracemode, void *aData) override |
virtual void | ThickRect (const wxPoint &p1, const wxPoint &p2, int width, OUTLINE_MODE tracemode, void *aData) override |
virtual void | ThickCircle (const wxPoint &pos, int diametre, int width, OUTLINE_MODE tracemode, void *aData) override |
virtual void | FilledCircle (const wxPoint &pos, int diametre, OUTLINE_MODE tracemode, void *aData) override |
virtual void | PlotPoly (const std::vector< wxPoint > &aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void *aData=nullptr) override |
Gerber polygon: they can (and should) be filled with the appropriate G36/G37 sequence. More... | |
virtual void | PlotPoly (const SHAPE_LINE_CHAIN &aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void *aData=nullptr) override |
Draw a polygon ( filled or not ). More... | |
virtual void | PenTo (const wxPoint &pos, char plume) override |
Moveto/lineto primitive, moves the 'pen' to the specified direction. More... | |
virtual void | Text (const wxPoint &aPos, const COLOR4D &aColor, const wxString &aText, double aOrient, const wxSize &aSize, enum EDA_TEXT_HJUSTIFY_T aH_justify, enum EDA_TEXT_VJUSTIFY_T aV_justify, int aWidth, bool aItalic, bool aBold, bool aMultilineAllowed=false, void *aData=nullptr) override |
Draw text with the plotter. More... | |
virtual void | FlashPadCircle (const wxPoint &pos, int diametre, OUTLINE_MODE trace_mode, void *aData) override |
Filled circular flashes are stored as apertures. More... | |
virtual void | FlashPadOval (const wxPoint &aPadPos, const wxSize &size, double orient, OUTLINE_MODE trace_mode, void *aData) override |
virtual void | FlashPadRect (const wxPoint &aPadPos, const wxSize &size, double orient, OUTLINE_MODE trace_mode, void *aData) override |
virtual void | FlashPadRoundRect (const wxPoint &aPadPos, const wxSize &aSize, int aCornerRadius, double aOrient, OUTLINE_MODE aTraceMode, void *aData) override |
virtual void | FlashPadCustom (const wxPoint &aPadPos, const wxSize &aSize, double aPadOrient, SHAPE_POLY_SET *aPolygons, OUTLINE_MODE aTraceMode, void *aData) override |
virtual void | FlashPadTrapez (const wxPoint &aPadPos, const wxPoint *aCorners, double aPadOrient, OUTLINE_MODE aTraceMode, void *aData) override |
Flash a trapezoidal pad. More... | |
virtual void | FlashRegularPolygon (const wxPoint &aShapePos, int aDiameter, int aCornerCount, double aOrient, OUTLINE_MODE aTraceMode, void *aData) override |
Flash a regular polygon. More... | |
void | FlashPadChamferRoundRect (const wxPoint &aShapePos, const wxSize &aPadSize, int aCornerRadius, double aChamferRatio, int aChamferPositions, double aPadOrient, OUTLINE_MODE aPlotMode, void *aData) |
Flash a chamfered round rect pad. More... | |
void | PlotGerberRegion (const std::vector< wxPoint > &aCornerList, void *aData=nullptr) |
Plot a Gerber region: similar to PlotPoly but plot only filled polygon, and add the TA.AperFunction if aData contains this attribute, and clear it after plotting. More... | |
void | PlotGerberRegion (const SHAPE_LINE_CHAIN &aPoly, void *aData=nullptr) |
virtual void | SetLayerPolarity (bool aPositive) override |
Change the plot polarity and begin a new layer. More... | |
virtual void | SetGerberCoordinatesFormat (int aResolution, bool aUseInches=false) override |
Selection of Gerber units and resolution (number of digits in mantissa). More... | |
void | UseX2format (bool aEnable) |
void | UseX2NetAttributes (bool aEnable) |
void | DisableApertMacros (bool aDisable) |
Disable Aperture Macro (AM) command, only for broken Gerber Readers. More... | |
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). More... | |
virtual void | EndBlock (void *aData) override |
Define the end of a group of drawing items the group is started by StartBlock(). More... | |
void | ClearAllAttributes () |
Remove (clear) all attributes from object attributes dictionary (TO. More... | |
int | GetOrCreateAperture (const wxSize &aSize, int aRadius, double aRotDegree, APERTURE::APERTURE_TYPE aType, int aApertureAttribute) |
int | GetOrCreateAperture (const std::vector< wxPoint > &aCorners, double aRotDegree, APERTURE::APERTURE_TYPE aType, int aApertureAttribute) |
virtual void | SetNegative (bool aNegative) |
virtual void | SetColorMode (bool aColorMode) |
Plot in B/W or color. More... | |
bool | GetColorMode () const |
void | SetRenderSettings (RENDER_SETTINGS *aSettings) |
RENDER_SETTINGS * | RenderSettings () |
virtual void | SetPageSettings (const PAGE_INFO &aPageSettings) |
PAGE_INFO & | PageSettings () |
virtual int | GetCurrentLineWidth () const |
virtual void | SetCreator (const wxString &aCreator) |
virtual void | SetTitle (const wxString &aTitle) |
void | AddLineToHeader (const wxString &aExtraString) |
Add a line to the list of free lines to print at the beginning of the file. More... | |
void | ClearHeaderLinesList () |
Remove all lines from the list of free lines to print at the beginning of the file. More... | |
virtual bool | OpenFile (const wxString &aFullFilename) |
Open or create the plot file aFullFilename. More... | |
double | GetIUsPerDecimil () const |
The IUs per decimil are an essential scaling factor when plotting; they are set and saved when establishing the viewport. More... | |
int | GetPlotterArcLowDef () const |
int | GetPlotterArcHighDef () const |
virtual void | BezierCurve (const wxPoint &aStart, const wxPoint &aControl1, const wxPoint &aControl2, const wxPoint &aEnd, int aTolerance, int aLineThickness=USE_DEFAULT_LINE_WIDTH) |
Generic fallback: Cubic Bezier curve rendered as a polyline In KiCad the bezier curves have 4 control points: start ctrl1 ctrl2 end. More... | |
void | MoveTo (const wxPoint &pos) |
void | LineTo (const wxPoint &pos) |
void | FinishTo (const wxPoint &pos) |
void | PenFinish () |
virtual void | PlotImage (const wxImage &aImage, const wxPoint &aPos, double aScaleFactor) |
Only PostScript plotters can plot bitmaps. More... | |
void | Marker (const wxPoint &position, int diametre, unsigned aShapeId) |
Draw a pattern shape number aShapeId, to coord position. More... | |
virtual void | SetTextMode (PLOT_TEXT_MODE mode) |
Change the current text mode. More... | |
virtual void | SetSvgCoordinatesFormat (unsigned aResolution, bool aUseInches=false) |
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). More... | |
Protected Member Functions | |
void | plotRoundRectAsRegion (const wxPoint &aRectCenter, const wxSize &aSize, int aCornerRadius, double aOrient) |
Plot a round rect (a round rect shape in fact) as a Gerber region using lines and arcs for corners. More... | |
void | plotArc (const wxPoint &aCenter, double aStAngle, double aEndAngle, int aRadius, bool aPlotInRegion) |
Plot a Gerber arc. More... | |
void | plotArc (const SHAPE_ARC &aArc, bool aPlotInRegion) |
void | selectAperture (const wxSize &aSize, int aRadius, double aRotDegree, APERTURE::APERTURE_TYPE aType, int aApertureAttribute) |
Pick an existing aperture or create a new one, matching the size, type and attributes. More... | |
void | selectAperture (const std::vector< wxPoint > &aCorners, double aPolygonRotation, APERTURE::APERTURE_TYPE aType, int aApertureAttribute) |
Pick an existing aperture or create a new one, matching the aDiameter, aPolygonRotation, type and attributes. More... | |
void | selectAperture (int aDiameter, double aRotDegree, APERTURE::APERTURE_TYPE aType, int aApertureAttribute) |
Pick an existing aperture or create a new one, matching the corner list, aRotDegree, type and attributes. More... | |
void | emitDcode (const DPOINT &pt, int dcode) |
Emit a D-Code record, using proper conversions to format a leading zero omitted gerber coordinate. More... | |
void | formatNetAttribute (GBR_NETLIST_METADATA *aData) |
Print a Gerber net attribute object record. More... | |
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. More... | |
void | writeApertureList () |
Generate the table of D codes. More... | |
void | markerCircle (const wxPoint &pos, int radius) |
Plot a circle centered on the position. More... | |
void | markerHBar (const wxPoint &pos, int radius) |
Plot a - bar centered on the position. More... | |
void | markerSlash (const wxPoint &pos, int radius) |
Plot a / bar centered on the position. More... | |
void | markerBackSlash (const wxPoint &pos, int radius) |
Plot a \ bar centered on the position. More... | |
void | markerVBar (const wxPoint &pos, int radius) |
Plot a | bar centered on the position. More... | |
void | markerSquare (const wxPoint &position, int radius) |
Plot a square centered on the position. More... | |
void | markerLozenge (const wxPoint &position, int radius) |
Plot a lozenge centered on the position. More... | |
void | segmentAsOval (const wxPoint &start, const wxPoint &end, int width, OUTLINE_MODE tracemode) |
Convert a thick segment and plot it as an oval. More... | |
void | sketchOval (const wxPoint &pos, const wxSize &size, double orient, int width) |
virtual DPOINT | userToDeviceCoordinates (const wxPoint &aCoordinate) |
Modify coordinates according to the orientation, scale factor, and offsets trace. More... | |
virtual DPOINT | userToDeviceSize (const wxSize &size) |
Modify size according to the plotter scale factors (wxSize version, returns a DPOINT). More... | |
virtual double | userToDeviceSize (double size) const |
Modify size according to the plotter scale factors (simple double version). More... | |
double | GetDotMarkLenIU () const |
double | GetDashMarkLenIU () const |
double | GetDashGapLenIU () const |
Definition at line 34 of file plotter_gerber.h.
GERBER_PLOTTER::GERBER_PLOTTER | ( | ) |
Definition at line 91 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(), and GENDRILL_WRITER_BASE::genDrillMapFile().
|
overridevirtual |
Generic fallback: arc rendered as a polyline.
Reimplemented from PLOTTER.
Definition at line 821 of file GERBER_plotter.cpp.
References plotArc(), and SetCurrentLineWidth().
Referenced by Circle(), and ThickArc().
|
overridevirtual |
Reimplemented from PLOTTER.
Definition at line 831 of file GERBER_plotter.cpp.
References SHAPE_ARC::GetWidth(), plotArc(), and SetCurrentLineWidth().
|
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 205 of file plotter.cpp.
References PLOTTER::FinishTo(), BEZIER_POLY::GetPoly(), PLOTTER::LineTo(), PLOTTER::MoveTo(), and PLOTTER::SetCurrentLineWidth().
Referenced by SVG_PLOTTER::BezierCurve(), BRDITEMS_PLOTTER::PlotFootprintGraphicItem(), and BRDITEMS_PLOTTER::PlotPcbShape().
|
overridevirtual |
Implements PLOTTER.
Definition at line 814 of file GERBER_plotter.cpp.
References Arc().
Referenced by FilledCircle(), FlashPadCircle(), and ThickCircle().
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 161 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 173 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 200 of file plotter_gerber.h.
References m_gerberDisableApertMacros.
Referenced by GERBER_WRITER::createDrillFile(), 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 155 of file GERBER_plotter.cpp.
References KiROUND(), PLOTTER::m_outputFile, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by FlashPadChamferRoundRect(), FlashPadCircle(), FlashPadCustom(), FlashPadOval(), FlashPadRect(), FlashPadRoundRect(), FlashPadTrapez(), FlashRegularPolygon(), and PenTo().
|
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 196 of file GERBER_plotter.cpp.
References clearNetAttribute().
Referenced by GERBER_WRITER::createDrillFile(), and StartBlock().
|
overridevirtual |
Implements PLOTTER.
Definition at line 317 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(), and PLACEFILE_GERBER_WRITER::CreatePlaceFile().
|
overridevirtual |
Reimplemented from PLOTTER.
Definition at line 1217 of file GERBER_plotter.cpp.
References Circle(), PLOTTER::DO_NOT_SET_LINE_WIDTH, FILLED, formatNetAttribute(), GBR_METADATA::m_NetlistMetadata, NO_FILL, SetCurrentLineWidth(), and PLOTTER::USE_DEFAULT_LINE_WIDTH.
|
inlineinherited |
Definition at line 273 of file plotter.h.
References PLOTTER::PenTo().
Referenced by PLOTTER::Arc(), PLOTTER::BezierCurve(), DXF_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), PLOTTER::markerBackSlash(), PLOTTER::markerHBar(), PLOTTER::markerSlash(), PLOTTER::markerVBar(), SCH_NO_CONNECT::Plot(), SCH_BUS_ENTRY_BASE::Plot(), SCH_LINE::Plot(), PlotDrawingSheet(), PlotPoly(), LIB_PIN::PlotSymbol(), DXF_PLOTTER::Rect(), PLOTTER::sketchOval(), ThickSegment(), HPGL_PLOTTER::ThickSegment(), DXF_PLOTTER::ThickSegment(), and PLOTTER::ThickSegment().
void GERBER_PLOTTER::FlashPadChamferRoundRect | ( | const wxPoint & | aShapePos, |
const wxSize & | aPadSize, | ||
int | aCornerRadius, | ||
double | aChamferRatio, | ||
int | aChamferPositions, | ||
double | aPadOrient, | ||
OUTLINE_MODE | aPlotMode, | ||
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 in 0.1 degrees of the shape. |
aPlotMode | is the drawing mode, FILLED or SKETCH. |
aData | is the a reference to Gerber attributes descr. |
Definition at line 1708 of file GERBER_plotter.cpp.
References APERTURE::AM_FREE_POLYGON, 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, FILLED, formatNetAttribute(), GBR_METADATA::GetApertureAttrib(), PLOTTER::GetCurrentLineWidth(), PLOTTER::GetPlotterArcHighDef(), m_gerberDisableApertMacros, m_hasApertureChamferedRect, m_hasApertureOutline4P, GBR_METADATA::m_NetlistMetadata, NO_FILL, SHAPE_POLY_SET::Outline(), PlotGerberRegion(), PlotPoly(), SHAPE_LINE_CHAIN::PointCount(), RotatePoint(), selectAperture(), SKETCH, TransformRoundChamferedRectToPolygon(), PLOTTER::userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtual |
Filled circular flashes are stored as apertures.
Implements PLOTTER.
Definition at line 1242 of file GERBER_plotter.cpp.
References APERTURE::AT_CIRCLE, Circle(), PLOTTER::DO_NOT_SET_LINE_WIDTH, emitDcode(), formatNetAttribute(), GBR_METADATA::GetApertureAttrib(), GBR_METADATA::m_NetlistMetadata, NO_FILL, selectAperture(), SetCurrentLineWidth(), SKETCH, PLOTTER::USE_DEFAULT_LINE_WIDTH, and PLOTTER::userToDeviceCoordinates().
Referenced by GERBER_WRITER::createDrillFile(), and PLACEFILE_GERBER_WRITER::CreatePlaceFile().
|
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. |
aTraceMode | is the drawing mode, FILLED or SKETCH. |
aData | an auxiliary info (mainly for gerber format attributes). |
Implements PLOTTER.
Definition at line 1641 of file GERBER_plotter.cpp.
References APERTURE::AM_FREE_POLYGON, SHAPE_LINE_CHAIN::CPoint(), emitDcode(), FILLED, formatNetAttribute(), GBR_MACRO_FOR_CUSTOM_PAD_MAX_CORNER_COUNT, GBR_METADATA::GetApertureAttrib(), PLOTTER::GetCurrentLineWidth(), m_gerberDisableApertMacros, GBR_METADATA::m_NetlistMetadata, NO_FILL, SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), PlotGerberRegion(), PlotPoly(), SHAPE_LINE_CHAIN::PointCount(), RotatePoint(), selectAperture(), SetCurrentLineWidth(), SKETCH, PLOTTER::USE_DEFAULT_LINE_WIDTH, 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. |
aTraceMode | is the drawing mode, FILLED or SKETCH. |
aData | an auxiliary info (mainly for gerber format attributes). |
Implements PLOTTER.
Definition at line 1272 of file GERBER_plotter.cpp.
References APERTURE::AM_ROTATED_OVAL, APERTURE::AT_OVAL, emitDcode(), FILLED, FlashPadRoundRect(), formatNetAttribute(), GBR_METADATA::GetApertureAttrib(), m_gerberDisableApertMacros, m_hasApertureRotOval, GBR_METADATA::m_NetlistMetadata, PLOTTER::m_outputFile, selectAperture(), PLOTTER::sketchOval(), and PLOTTER::userToDeviceCoordinates().
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. |
aTraceMode | is the drawing mode, FILLED or SKETCH. |
aData | an auxiliary info (mainly for gerber format attributes). |
Implements PLOTTER.
Definition at line 1351 of file GERBER_plotter.cpp.
References APERTURE::AM_ROT_RECT, APERTURE::AT_RECT, emitDcode(), FlashPadTrapez(), formatNetAttribute(), GBR_METADATA::GetApertureAttrib(), PLOTTER::GetCurrentLineWidth(), KI_FALLTHROUGH, m_gerberDisableApertMacros, m_hasApertureRotRect, GBR_METADATA::m_NetlistMetadata, PLOTTER::m_outputFile, NO_FILL, Rect(), selectAperture(), SetCurrentLineWidth(), SKETCH, PLOTTER::USE_DEFAULT_LINE_WIDTH, and PLOTTER::userToDeviceCoordinates().
|
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. |
aTraceMode | is the drawing mode, FILLED or SKETCH. |
aData | an auxiliary info (mainly for gerber format attributes). |
Implements PLOTTER.
Definition at line 1432 of file GERBER_plotter.cpp.
References APERTURE::AM_ROUND_RECT, SHAPE_LINE_CHAIN::CPoint(), emitDcode(), ERROR_INSIDE, FILLED, GBR_APERTURE_METADATA::FormatAttribute(), formatNetAttribute(), GBR_METADATA::GetApertureAttrib(), PLOTTER::GetCurrentLineWidth(), PLOTTER::GetPlotterArcHighDef(), GBR_METADATA::m_ApertureMetadata, m_gerberDisableApertMacros, m_hasApertureRoundRect, GBR_METADATA::m_NetlistMetadata, PLOTTER::m_outputFile, m_useX2format, NO_FILL, SHAPE_POLY_SET::Outline(), PlotPoly(), plotRoundRectAsRegion(), SHAPE_LINE_CHAIN::PointCount(), selectAperture(), SetCurrentLineWidth(), TransformRoundChamferedRectToPolygon(), PLOTTER::USE_DEFAULT_LINE_WIDTH, PLOTTER::userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
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. |
aTraceMode | is the drawing mode, FILLED or SKETCH. |
aData | an auxiliary info (mainly for gerber format attributes). |
Implements PLOTTER.
Definition at line 1834 of file GERBER_plotter.cpp.
References APERTURE::APER_MACRO_OUTLINE4P, emitDcode(), formatNetAttribute(), GBR_METADATA::GetApertureAttrib(), PLOTTER::GetCurrentLineWidth(), m_gerberDisableApertMacros, m_hasApertureOutline4P, GBR_METADATA::m_NetlistMetadata, NO_FILL, PlotGerberRegion(), PlotPoly(), RotatePoint(), selectAperture(), SKETCH, 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 in degrees. |
aData | is a auxiliary parameter used (if needed) to handle extra info specific to the plotter. |
Implements PLOTTER.
Definition at line 1886 of file GERBER_plotter.cpp.
References APERTURE::AT_REGULAR_POLY3, emitDcode(), formatNetAttribute(), GBR_METADATA::GetApertureAttrib(), PLOTTER::GetCurrentLineWidth(), GBR_METADATA::m_NetlistMetadata, NO_FILL, PlotPoly(), RotatePoint(), selectAperture(), SKETCH, and PLOTTER::userToDeviceCoordinates().
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 203 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(), FlashPadCircle(), FlashPadCustom(), FlashPadOval(), FlashPadRect(), FlashPadRoundRect(), FlashPadTrapez(), FlashRegularPolygon(), PlotPoly(), Text(), ThickArc(), ThickCircle(), ThickRect(), and ThickSegment().
|
inlineinherited |
Definition at line 153 of file plotter.h.
References PLOTTER::m_colorMode.
Referenced by PLOT_CONTROLLER::GetColorMode(), LIB_TEXT::Plot(), LIB_FIELD::Plot(), LIB_SYMBOL::Plot(), SCH_SHEET::Plot(), PlotDrawingSheet(), LIB_SYMBOL::PlotLibFields(), DIALOG_PLOT_SCHEMATIC::plotOneSheetDXF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPDF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG(), and DXF_PLOTTER::StartPlot().
|
inlinevirtualinherited |
Definition at line 168 of file plotter.h.
References PLOTTER::m_currentPenWidth.
Referenced by FlashPadChamferRoundRect(), PSLIKE_PLOTTER::FlashPadCircle(), PSLIKE_PLOTTER::FlashPadCustom(), FlashPadCustom(), PSLIKE_PLOTTER::FlashPadRect(), FlashPadRect(), PSLIKE_PLOTTER::FlashPadRoundRect(), FlashPadRoundRect(), PSLIKE_PLOTTER::FlashPadTrapez(), FlashPadTrapez(), FlashRegularPolygon(), PLOTTER::GetDashGapLenIU(), PLOTTER::GetDashMarkLenIU(), PLOTTER::GetDotMarkLenIU(), PLOTTER::markerCircle(), PLOTTER::markerLozenge(), PLOTTER::markerSquare(), PS_PLOTTER::SetCurrentLineWidth(), and SVG_PLOTTER::setSVGPlotStyle().
|
protectedinherited |
Definition at line 145 of file plotter.cpp.
References dash_gap_len(), PLOTTER::GetCurrentLineWidth(), and PLOTTER::userToDeviceSize().
Referenced by PS_PLOTTER::SetDash(), PDF_PLOTTER::SetDash(), and SVG_PLOTTER::setSVGPlotStyle().
|
protectedinherited |
Definition at line 139 of file plotter.cpp.
References dash_mark_len(), PLOTTER::GetCurrentLineWidth(), and PLOTTER::userToDeviceSize().
Referenced by PS_PLOTTER::SetDash(), PDF_PLOTTER::SetDash(), and SVG_PLOTTER::setSVGPlotStyle().
|
inlinestatic |
Definition at line 44 of file plotter_gerber.h.
Referenced by GetDefaultPlotExtension().
|
protectedinherited |
Definition at line 133 of file plotter.cpp.
References dot_mark_len(), PLOTTER::GetCurrentLineWidth(), 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 wxSize & | aSize, |
int | aRadius, | ||
double | aRotDegree, | ||
APERTURE::APERTURE_TYPE | aType, | ||
int | aApertureAttribute | ||
) |
aSize | is the size of tool. |
aRadius | is the radius used for some shapes tool (oval, roundrect macros). |
aRotDegree | 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. |
Definition at line 415 of file GERBER_plotter.cpp.
References APERTURE::m_ApertureAttribute, m_apertures, APERTURE::m_DCode, APERTURE::m_Radius, APERTURE::m_Rotation, APERTURE::m_Size, and APERTURE::m_Type.
Referenced by selectAperture().
int GERBER_PLOTTER::GetOrCreateAperture | ( | const std::vector< wxPoint > & | aCorners, |
double | aRotDegree, | ||
APERTURE::APERTURE_TYPE | aType, | ||
int | aApertureAttribute | ||
) |
aCorners | is the corner list. |
aRotDegree | 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. |
Definition at line 447 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_DCode, APERTURE::m_Radius, APERTURE::m_Rotation, APERTURE::m_Size, APERTURE::m_Type, and polyCompare().
|
inlineinherited |
Definition at line 228 of file plotter.h.
References PLOTTER::m_IUsPerDecimil.
Referenced by FlashPadChamferRoundRect(), PSLIKE_PLOTTER::FlashPadRoundRect(), FlashPadRoundRect(), HPGL_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::PlotPoly(), and DXF_PLOTTER::ThickSegment().
|
inlineinherited |
|
inlineoverridevirtual |
Returns 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 39 of file plotter_gerber.h.
References GERBER.
|
inlineinherited |
Definition at line 268 of file plotter.h.
References PLOTTER::PenTo().
Referenced by PLOTTER::Arc(), PLOTTER::BezierCurve(), DXF_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), plotArc(), PlotPoly(), HPGL_PLOTTER::PlotPoly(), DXF_PLOTTER::PlotPoly(), plotRoundRectAsRegion(), LIB_PIN::PlotSymbol(), and DXF_PLOTTER::Rect().
|
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 332 of file plotter.cpp.
References PLOTTER::MARKER_COUNT, PLOTTER::markerBackSlash(), PLOTTER::markerCircle(), PLOTTER::markerHBar(), PLOTTER::markerLozenge(), PLOTTER::markerSlash(), PLOTTER::markerSquare(), and PLOTTER::markerVBar().
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 318 of file plotter.cpp.
References PLOTTER::FinishTo(), and PLOTTER::MoveTo().
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a circle centered on the position.
Building block for markers
Definition at line 274 of file plotter.cpp.
References PLOTTER::Circle(), PLOTTER::GetCurrentLineWidth(), and NO_FILL.
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a - bar centered on the position.
Building block for markers
Definition at line 304 of file plotter.cpp.
References PLOTTER::FinishTo(), and PLOTTER::MoveTo().
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a lozenge centered on the position.
Building block for markers
Definition at line 280 of file plotter.cpp.
References PLOTTER::GetCurrentLineWidth(), NO_FILL, and PLOTTER::PlotPoly().
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a / bar centered on the position.
Building block for markers
Definition at line 311 of file plotter.cpp.
References PLOTTER::FinishTo(), and PLOTTER::MoveTo().
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a square centered on the position.
Building block for markers
Definition at line 249 of file plotter.cpp.
References PLOTTER::GetCurrentLineWidth(), KiROUND(), NO_FILL, PLOTTER::PlotPoly(), and r.
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a | bar centered on the position.
Building block for markers
Definition at line 325 of file plotter.cpp.
References PLOTTER::FinishTo(), and PLOTTER::MoveTo().
Referenced by PLOTTER::Marker().
|
inlineinherited |
Definition at line 263 of file plotter.h.
References PLOTTER::PenTo().
Referenced by PLOTTER::Arc(), PLOTTER::BezierCurve(), HPGL_PLOTTER::Circle(), HPGL_PLOTTER::FlashPadCircle(), DXF_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), PLOTTER::markerBackSlash(), PLOTTER::markerHBar(), PLOTTER::markerSlash(), PLOTTER::markerVBar(), SCH_NO_CONNECT::Plot(), SCH_BUS_ENTRY_BASE::Plot(), SCH_LINE::Plot(), plotArc(), PlotDrawingSheet(), PlotPoly(), HPGL_PLOTTER::PlotPoly(), DXF_PLOTTER::PlotPoly(), plotRoundRectAsRegion(), LIB_PIN::PlotSymbol(), DXF_PLOTTER::Rect(), HPGL_PLOTTER::Rect(), PLOTTER::sketchOval(), ThickSegment(), HPGL_PLOTTER::ThickSegment(), DXF_PLOTTER::ThickSegment(), and 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 76 of file plotter.cpp.
References PLOTTER::m_filename, and PLOTTER::m_outputFile.
Referenced by GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), DIALOG_PLOT_SCHEMATIC::plotOneSheetDXF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetHpgl(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG(), StartPlotBoard(), and SYMBOL_EDIT_FRAME::SVGPlotSymbol().
|
inlineinherited |
Definition at line 159 of file plotter.h.
References PLOTTER::m_pageInfo.
Referenced by DIALOG_PLOT_SCHEMATIC::plotOneSheetPDF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), and DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG().
|
inlineinherited |
Definition at line 279 of file plotter.h.
References PLOTTER::PenTo().
Referenced by HPGL_PLOTTER::Circle(), HPGL_PLOTTER::FlashPadCircle(), PlotPoly(), HPGL_PLOTTER::PlotPoly(), DXF_PLOTTER::PlotPoly(), and HPGL_PLOTTER::Rect().
|
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 774 of file GERBER_plotter.cpp.
References emitDcode(), PLOTTER::m_outputFile, PLOTTER::m_penState, and PLOTTER::userToDeviceCoordinates().
|
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 875 of file GERBER_plotter.cpp.
References cosdecideg(), KiROUND(), PLOTTER::LineTo(), PLOTTER::m_outputFile, PLOTTER::MoveTo(), sindecideg(), PLOTTER::userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by Arc(), PlotPoly(), and plotRoundRectAsRegion().
|
protected |
Definition at line 840 of file GERBER_plotter.cpp.
References 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.
void GERBER_PLOTTER::PlotGerberRegion | ( | const std::vector< wxPoint > & | aCornerList, |
void * | aData = nullptr |
||
) |
Plot a Gerber region: similar to PlotPoly but plot only filled polygon, and add the TA.AperFunction if aData contains this attribute, and clear it after plotting.
Definition at line 944 of file GERBER_plotter.cpp.
References FILLED_SHAPE, GBR_APERTURE_METADATA::FormatAttribute(), GBR_METADATA::m_ApertureMetadata, PLOTTER::m_outputFile, m_useX2format, and PlotPoly().
Referenced by FlashPadChamferRoundRect(), FlashPadCustom(), and FlashPadTrapez().
void GERBER_PLOTTER::PlotGerberRegion | ( | const SHAPE_LINE_CHAIN & | aPoly, |
void * | aData = nullptr |
||
) |
Definition at line 907 of file GERBER_plotter.cpp.
References FILLED_SHAPE, GBR_APERTURE_METADATA::FormatAttribute(), GBR_METADATA::m_ApertureMetadata, PLOTTER::m_outputFile, m_useX2format, PlotPoly(), and SHAPE_LINE_CHAIN::PointCount().
|
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 SVG_PLOTTER, PDF_PLOTTER, and PS_PLOTTER.
Definition at line 233 of file plotter.cpp.
References NO_FILL, and PLOTTER::Rect().
Referenced by BITMAP_BASE::PlotImage(), and SVG_PLOTTER::PlotImage().
|
overridevirtual |
Gerber polygon: they can (and should) be filled with the appropriate G36/G37 sequence.
Implements PLOTTER.
Definition at line 1068 of file GERBER_plotter.cpp.
References PLOTTER::FinishTo(), formatNetAttribute(), PLOTTER::LineTo(), GBR_METADATA::m_NetlistMetadata, PLOTTER::m_outputFile, PLOTTER::MoveTo(), NO_FILL, PLOTTER::PenFinish(), and SetCurrentLineWidth().
Referenced by FlashPadChamferRoundRect(), FlashPadCustom(), FlashPadRoundRect(), FlashPadTrapez(), FlashRegularPolygon(), PlotGerberRegion(), and Rect().
|
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 981 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(), NO_FILL, PLOTTER::PenFinish(), plotArc(), SHAPE_LINE_CHAIN::PointCount(), and SetCurrentLineWidth().
|
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 1512 of file GERBER_plotter.cpp.
References cosdecideg(), KiROUND(), PLOTTER::LineTo(), PLOTTER::m_outputFile, PLOTTER::MoveTo(), plotArc(), RotatePoint(), and sindecideg().
Referenced by FlashPadRoundRect().
|
overridevirtual |
Implements PLOTTER.
Definition at line 796 of file GERBER_plotter.cpp.
References PlotPoly().
Referenced by FlashPadRect(), and ThickRect().
|
inlineinherited |
Definition at line 156 of file plotter.h.
References PLOTTER::m_renderSettings.
Referenced by PLOT_CONTROLLER::ClosePlot(), DIALOG_PLOT::Plot(), LIB_SHAPE::Plot(), LIB_TEXT::Plot(), SCH_NO_CONNECT::Plot(), SCH_BUS_ENTRY_BASE::Plot(), SCH_JUNCTION::Plot(), SCH_BITMAP::Plot(), LIB_FIELD::Plot(), SCH_FIELD::Plot(), SCH_LINE::Plot(), SCH_TEXT::Plot(), SCH_SCREEN::Plot(), LIB_SYMBOL::Plot(), SCH_SHEET::Plot(), PlotDrawingSheet(), LIB_SYMBOL::PlotLibFields(), DIALOG_PLOT_SCHEMATIC::plotOneSheetDXF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetHpgl(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPDF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG(), LIB_PIN::PlotPinTexts(), LIB_PIN::PlotSymbol(), and StartPlotBoard().
|
protectedinherited |
Convert a thick segment and plot it as an oval.
Definition at line 454 of file plotter.cpp.
References ArcTangente(), EuclideanNorm(), PLOTTER::FlashPadOval(), and KiROUND().
Referenced by ThickSegment(), HPGL_PLOTTER::ThickSegment(), and PLOTTER::ThickSegment().
|
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 500 of file GERBER_plotter.cpp.
References GetOrCreateAperture(), m_apertures, m_currentApertureIdx, and PLOTTER::m_outputFile.
Referenced by FlashPadChamferRoundRect(), FlashPadCircle(), FlashPadCustom(), FlashPadOval(), FlashPadRect(), FlashPadRoundRect(), FlashPadTrapez(), FlashRegularPolygon(), selectAperture(), and SetCurrentLineWidth().
|
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 522 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 corner list, aRotDegree, type and attributes.
It only applies to apertures managing a polygon that differs from AT_REGULAR_POLY3 to AT_REGULAR_POLY12 (for instance APER_MACRO_TRAPEZOID ) write the DCode selection on gerber file.
Definition at line 555 of file GERBER_plotter.cpp.
References selectAperture().
|
inlineoverridevirtual |
|
inlinevirtualinherited |
Plot in B/W or color.
aColorMode | use true to plot in color, false to plot in black and white. |
Definition at line 152 of file plotter.h.
References PLOTTER::m_colorMode.
Referenced by DIALOG_PLOT_SCHEMATIC::createPDFFile(), DIALOG_EXPORT_SVG::CreateSVGFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), initializePlotter(), DIALOG_PLOT_SCHEMATIC::plotOneSheetDXF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetHpgl(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG(), PLOT_CONTROLLER::SetColorMode(), and SYMBOL_EDIT_FRAME::SVGPlotSymbol().
|
inlinevirtualinherited |
Definition at line 174 of file plotter.h.
References PLOTTER::m_creator.
Referenced by GERBER_WRITER::createDrillFile(), DIALOG_PLOT_SCHEMATIC::createPDFFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), initializePlotter(), DIALOG_PLOT_SCHEMATIC::plotOneSheetDXF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetHpgl(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), DIALOG_PLOT_SCHEMATIC::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 398 of file GERBER_plotter.cpp.
References APERTURE::AT_PLOTTING, PLOTTER::DO_NOT_SET_LINE_WIDTH, GBR_METADATA::GetApertureAttrib(), KIGFX::RENDER_SETTINGS::GetDefaultPenWidth(), PLOTTER::m_currentPenWidth, PLOTTER::m_renderSettings, selectAperture(), and PLOTTER::USE_DEFAULT_LINE_WIDTH.
Referenced by Arc(), FilledCircle(), FlashPadCircle(), FlashPadCustom(), FlashPadRect(), FlashPadRoundRect(), PlotPoly(), ThickArc(), ThickCircle(), ThickRect(), and ThickSegment().
|
inlineoverridevirtual |
|
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 143 of file GERBER_plotter.cpp.
References m_gerberUnitFmt, m_gerberUnitInch, PLOTTER::m_iuPerDeviceUnit, and PLOTTER::m_IUsPerDecimil.
Referenced by GERBER_WRITER::createDrillFile(), and PLACEFILE_GERBER_WRITER::CreatePlaceFile().
|
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 1951 of file GERBER_plotter.cpp.
References PLOTTER::m_outputFile.
|
inlinevirtualinherited |
Definition at line 142 of file plotter.h.
References PLOTTER::m_negativeMode.
Referenced by FillNegativeKnockout().
|
inlinevirtualinherited |
Definition at line 158 of file plotter.h.
References PLOTTER::m_pageInfo.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), initializePlotter(), DIALOG_PLOT_SCHEMATIC::plotOneSheetDXF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetHpgl(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG(), DIALOG_PLOT_SCHEMATIC::setupPlotPagePDF(), and SYMBOL_EDIT_FRAME::SVGPlotSymbol().
|
inlineinherited |
Definition at line 155 of file plotter.h.
References PLOTTER::m_renderSettings.
Referenced by DIALOG_PLOT_SCHEMATIC::createPDFFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), DIALOG_PLOT_SCHEMATIC::plotOneSheetDXF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetHpgl(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG(), StartPlotBoard(), and SYMBOL_EDIT_FRAME::SVGPlotSymbol().
|
inlinevirtualinherited |
Reimplemented in SVG_PLOTTER.
Definition at line 475 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 465 of file plotter.h.
Referenced by initializePlotter(), and PlotOneBoardLayer().
|
inlinevirtualinherited |
Definition at line 176 of file plotter.h.
References PLOTTER::m_title.
Referenced by DIALOG_PLOT_SCHEMATIC::createPDFFile().
|
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 121 of file GERBER_plotter.cpp.
References m_gerberUnitFmt, PLOTTER::m_iuPerDeviceUnit, PLOTTER::m_IUsPerDecimil, PLOTTER::m_paperSize, PLOTTER::m_plotMirror, PLOTTER::m_plotOffset, and PLOTTER::m_plotScale.
Referenced by GERBER_WRITER::createDrillFile(), and PLACEFILE_GERBER_WRITER::CreatePlaceFile().
|
protectedinherited |
Definition at line 475 of file plotter.cpp.
References AddAngles(), PLOTTER::Arc(), PLOTTER::FinishTo(), PLOTTER::m_currentPenWidth, PLOTTER::MoveTo(), NO_FILL, RotatePoint(), and PLOTTER::SetCurrentLineWidth().
Referenced by PSLIKE_PLOTTER::FlashPadOval(), FlashPadOval(), HPGL_PLOTTER::FlashPadOval(), and DXF_PLOTTER::FlashPadOval().
|
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 189 of file GERBER_plotter.cpp.
References EndBlock().
|
overridevirtual |
Write GERBER header to file initialize global variable g_Plot_PlotOutputFile.
Implements PLOTTER.
Definition at line 237 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(), and PLACEFILE_GERBER_WRITER::CreatePlaceFile().
|
overridevirtual |
Draw text with the plotter.
Same as GRText, but plot graphic text instead of draw it.
For convenience it accept the color to use for specific plotters (GERBER) aData is used to pass extra parameters.
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 in 0.1 degree. |
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 (aWidth = 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 1935 of file GERBER_plotter.cpp.
References formatNetAttribute(), GBR_METADATA::m_NetlistMetadata, and PLOTTER::Text().
|
overridevirtual |
Reimplemented from PLOTTER.
Definition at line 1139 of file GERBER_plotter.cpp.
References Arc(), PLOTTER::DO_NOT_SET_LINE_WIDTH, FILLED, formatNetAttribute(), PLOTTER::m_currentPenWidth, GBR_METADATA::m_NetlistMetadata, NO_FILL, SetCurrentLineWidth(), and PLOTTER::USE_DEFAULT_LINE_WIDTH.
|
overridevirtual |
Reimplemented from PLOTTER.
Definition at line 1193 of file GERBER_plotter.cpp.
References Circle(), PLOTTER::DO_NOT_SET_LINE_WIDTH, FILLED, formatNetAttribute(), PLOTTER::m_currentPenWidth, GBR_METADATA::m_NetlistMetadata, NO_FILL, SetCurrentLineWidth(), and PLOTTER::USE_DEFAULT_LINE_WIDTH.
|
overridevirtual |
Reimplemented from PLOTTER.
Definition at line 1163 of file GERBER_plotter.cpp.
References PLOTTER::DO_NOT_SET_LINE_WIDTH, FILLED, formatNetAttribute(), PLOTTER::m_currentPenWidth, GBR_METADATA::m_NetlistMetadata, NO_FILL, Rect(), SetCurrentLineWidth(), and PLOTTER::USE_DEFAULT_LINE_WIDTH.
|
overridevirtual |
Reimplemented from PLOTTER.
Definition at line 1118 of file GERBER_plotter.cpp.
References FILLED, PLOTTER::FinishTo(), formatNetAttribute(), GBR_METADATA::m_NetlistMetadata, PLOTTER::MoveTo(), PLOTTER::segmentAsOval(), SetCurrentLineWidth(), and PLOTTER::USE_DEFAULT_LINE_WIDTH.
Referenced by GERBER_WRITER::createDrillFile().
|
protectedvirtualinherited |
Modify coordinates according to the orientation, scale factor, and offsets trace.
Also convert from a wxPoint to DPOINT, since some output engines needs floating point coordinates.
Definition at line 92 of file plotter.cpp.
References PLOTTER::m_iuPerDeviceUnit, PLOTTER::m_mirrorIsHorizontal, PLOTTER::m_paperSize, PLOTTER::m_plotMirror, PLOTTER::m_plotOffset, PLOTTER::m_plotScale, and PLOTTER::m_yaxisReversed.
Referenced by DXF_PLOTTER::Arc(), HPGL_PLOTTER::Arc(), PS_PLOTTER::Arc(), PDF_PLOTTER::Arc(), SVG_PLOTTER::Arc(), SVG_PLOTTER::BezierCurve(), DXF_PLOTTER::Circle(), HPGL_PLOTTER::Circle(), PS_PLOTTER::Circle(), PDF_PLOTTER::Circle(), SVG_PLOTTER::Circle(), PSLIKE_PLOTTER::computeTextParameters(), FlashPadChamferRoundRect(), FlashPadCircle(), HPGL_PLOTTER::FlashPadCircle(), FlashPadCustom(), FlashPadOval(), FlashPadRect(), FlashPadRoundRect(), FlashPadTrapez(), FlashRegularPolygon(), PenTo(), DXF_PLOTTER::PenTo(), HPGL_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), PDF_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), plotArc(), PS_PLOTTER::PlotImage(), PDF_PLOTTER::PlotImage(), HPGL_PLOTTER::PlotPoly(), PS_PLOTTER::PlotPoly(), PDF_PLOTTER::PlotPoly(), SVG_PLOTTER::PlotPoly(), HPGL_PLOTTER::Rect(), PS_PLOTTER::Rect(), PDF_PLOTTER::Rect(), SVG_PLOTTER::Rect(), DXF_PLOTTER::Text(), PS_PLOTTER::Text(), and SVG_PLOTTER::Text().
|
protectedvirtualinherited |
Modify size according to the plotter scale factors (wxSize version, returns a DPOINT).
Definition at line 117 of file plotter.cpp.
References PLOTTER::m_iuPerDeviceUnit, and PLOTTER::m_plotScale.
Referenced by DXF_PLOTTER::Arc(), HPGL_PLOTTER::Arc(), PS_PLOTTER::Arc(), SVG_PLOTTER::Arc(), DXF_PLOTTER::Circle(), HPGL_PLOTTER::Circle(), PS_PLOTTER::Circle(), PDF_PLOTTER::Circle(), SVG_PLOTTER::Circle(), PSLIKE_PLOTTER::computeTextParameters(), HPGL_PLOTTER::FlashPadCircle(), PLOTTER::GetDashGapLenIU(), PLOTTER::GetDashMarkLenIU(), PLOTTER::GetDotMarkLenIU(), PDF_PLOTTER::PlotImage(), SVG_PLOTTER::PlotImage(), HPGL_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::setSVGPlotStyle(), HPGL_PLOTTER::SetTargetChordLength(), PDF_PLOTTER::StartPage(), HPGL_PLOTTER::StartPlot(), PS_PLOTTER::StartPlot(), DXF_PLOTTER::Text(), and SVG_PLOTTER::Text().
|
protectedvirtualinherited |
Modify size according to the plotter scale factors (simple double version).
Definition at line 124 of file plotter.cpp.
References PLOTTER::m_iuPerDeviceUnit, and PLOTTER::m_plotScale.
|
inline |
Definition at line 190 of file plotter_gerber.h.
References m_useX2format.
Referenced by GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), and StartPlotBoard().
|
inline |
Definition at line 191 of file plotter_gerber.h.
References m_useNetAttributes.
Referenced by GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), and StartPlotBoard().
|
protected |
Generate the table of D codes.
Definition at line 569 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, 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 125 of file plotter.h.
Referenced by FilledCircle(), FlashPadCircle(), SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), ThickArc(), ThickCircle(), and ThickRect().
|
protected |
Definition at line 345 of file plotter_gerber.h.
Referenced by EndPlot(), GERBER_PLOTTER(), and StartPlot().
|
protected |
Definition at line 379 of file plotter_gerber.h.
Referenced by EndPlot(), GetOrCreateAperture(), StartPlot(), and writeApertureList().
|
protected |
Definition at line 342 of file plotter_gerber.h.
Referenced by GERBER_PLOTTER(), and writeApertureList().
|
protected |
Definition at line 353 of file plotter_gerber.h.
Referenced by GetOrCreateAperture(), selectAperture(), and writeApertureList().
|
protectedinherited |
Definition at line 593 of file plotter.h.
Referenced by PLOTTER::GetColorMode(), PS_PLOTTER::PlotImage(), PDF_PLOTTER::PlotImage(), PLOTTER::PLOTTER(), DXF_PLOTTER::SetColor(), PSLIKE_PLOTTER::SetColor(), and PLOTTER::SetColorMode().
|
protectedinherited |
Definition at line 599 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), PLOTTER::SetCreator(), StartPlot(), PS_PLOTTER::StartPlot(), and SVG_PLOTTER::StartPlot().
|
protected |
Definition at line 354 of file plotter_gerber.h.
Referenced by GERBER_PLOTTER(), and selectAperture().
|
protectedinherited |
Definition at line 595 of file plotter.h.
Referenced by PLOTTER::GetCurrentLineWidth(), PLOTTER::PLOTTER(), SetCurrentLineWidth(), DXF_PLOTTER::SetCurrentLineWidth(), HPGL_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), PLOTTER::sketchOval(), ThickArc(), PLOTTER::ThickArc(), ThickCircle(), PLOTTER::ThickCircle(), ThickRect(), and PLOTTER::ThickRect().
|
protectedinherited |
Definition at line 600 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), PLOTTER::OpenFile(), PDF_PLOTTER::OpenFile(), and SVG_PLOTTER::StartPlot().
|
protected |
Definition at line 366 of file plotter_gerber.h.
Referenced by DisableApertMacros(), FlashPadChamferRoundRect(), FlashPadCustom(), FlashPadOval(), FlashPadRect(), FlashPadRoundRect(), FlashPadTrapez(), and GERBER_PLOTTER().
|
protected |
Definition at line 364 of file plotter_gerber.h.
Referenced by GERBER_PLOTTER(), SetGerberCoordinatesFormat(), SetViewport(), and StartPlot().
|
protected |
Definition at line 363 of file plotter_gerber.h.
Referenced by EndPlot(), GERBER_PLOTTER(), SetGerberCoordinatesFormat(), StartPlot(), and writeApertureList().
|
protected |
Definition at line 360 of file plotter_gerber.h.
Referenced by EndPlot(), FlashPadChamferRoundRect(), GERBER_PLOTTER(), and StartPlot().
|
protected |
Definition at line 358 of file plotter_gerber.h.
Referenced by EndPlot(), FlashPadChamferRoundRect(), FlashPadTrapez(), GERBER_PLOTTER(), and StartPlot().
|
protected |
Definition at line 356 of file plotter_gerber.h.
Referenced by EndPlot(), FlashPadOval(), GERBER_PLOTTER(), and StartPlot().
|
protected |
Definition at line 357 of file plotter_gerber.h.
Referenced by EndPlot(), FlashPadRect(), GERBER_PLOTTER(), and StartPlot().
|
protected |
Definition at line 355 of file plotter_gerber.h.
Referenced by EndPlot(), FlashPadRoundRect(), GERBER_PLOTTER(), and StartPlot().
|
protectedinherited |
Definition at line 605 of file plotter.h.
Referenced by PLOTTER::AddLineToHeader(), PLOTTER::ClearHeaderLinesList(), and StartPlot().
|
protectedinherited |
Definition at line 581 of file plotter.h.
Referenced by HPGL_PLOTTER::EndPlot(), PLOTTER::PLOTTER(), SetGerberCoordinatesFormat(), SVG_PLOTTER::SetSvgCoordinatesFormat(), SetViewport(), DXF_PLOTTER::SetViewport(), HPGL_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), SVG_PLOTTER::StartPlot(), PLOTTER::userToDeviceCoordinates(), and PLOTTER::userToDeviceSize().
|
protectedinherited |
Definition at line 579 of file plotter.h.
Referenced by EndPlot(), PLOTTER::GetIUsPerDecimil(), PLOTTER::GetPlotterArcHighDef(), PLOTTER::GetPlotterArcLowDef(), PLOTTER::PLOTTER(), SetGerberCoordinatesFormat(), SVG_PLOTTER::SetSvgCoordinatesFormat(), SetViewport(), DXF_PLOTTER::SetViewport(), HPGL_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), StartPlot(), SVG_PLOTTER::StartPlot(), and writeApertureList().
|
protectedinherited |
Definition at line 586 of file plotter.h.
Referenced by PS_PLOTTER::Arc(), SVG_PLOTTER::Arc(), PLOTTER::PLOTTER(), and PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
Definition at line 594 of file plotter.h.
Referenced by PLOTTER::PLOTTER(), PSLIKE_PLOTTER::SetColor(), and PLOTTER::SetNegative().
|
protected |
Definition at line 339 of file plotter_gerber.h.
Referenced by ClearAllAttributes(), clearNetAttribute(), and formatNetAttribute().
|
protectedinherited |
Output file.
Definition at line 590 of file plotter.h.
Referenced by DXF_PLOTTER::Arc(), HPGL_PLOTTER::Arc(), PS_PLOTTER::Arc(), SVG_PLOTTER::Arc(), SVG_PLOTTER::BezierCurve(), HPGL_PLOTTER::Circle(), DXF_PLOTTER::Circle(), PS_PLOTTER::Circle(), SVG_PLOTTER::Circle(), ClearAllAttributes(), clearNetAttribute(), PDF_PLOTTER::ClosePage(), PDF_PLOTTER::closePdfObject(), PDF_PLOTTER::closePdfStream(), emitDcode(), PS_PLOTTER::emitSetRGBColor(), SVG_PLOTTER::EndBlock(), EndPlot(), DXF_PLOTTER::EndPlot(), HPGL_PLOTTER::EndPlot(), PS_PLOTTER::EndPlot(), PDF_PLOTTER::EndPlot(), SVG_PLOTTER::EndPlot(), DXF_PLOTTER::FlashPadCircle(), HPGL_PLOTTER::FlashPadCircle(), PSLIKE_PLOTTER::FlashPadOval(), FlashPadOval(), HPGL_PLOTTER::FlashPadOval(), DXF_PLOTTER::FlashPadOval(), FlashPadRect(), DXF_PLOTTER::FlashPadRect(), FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), formatNetAttribute(), PLOTTER::OpenFile(), PDF_PLOTTER::OpenFile(), PenTo(), DXF_PLOTTER::PenTo(), HPGL_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), plotArc(), PlotGerberRegion(), PS_PLOTTER::PlotImage(), SVG_PLOTTER::PlotImage(), PlotPoly(), PS_PLOTTER::PlotPoly(), SVG_PLOTTER::PlotPoly(), plotRoundRectAsRegion(), PLOTTER::PLOTTER(), DXF_PLOTTER::Rect(), HPGL_PLOTTER::Rect(), PS_PLOTTER::Rect(), SVG_PLOTTER::Rect(), selectAperture(), PS_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetDash(), SetLayerPolarity(), SVG_PLOTTER::setSVGPlotStyle(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::StartBlock(), PDF_PLOTTER::StartPage(), PDF_PLOTTER::startPdfObject(), PDF_PLOTTER::startPdfStream(), StartPlot(), DXF_PLOTTER::StartPlot(), HPGL_PLOTTER::StartPlot(), PS_PLOTTER::StartPlot(), PDF_PLOTTER::StartPlot(), SVG_PLOTTER::StartPlot(), DXF_PLOTTER::Text(), PS_PLOTTER::Text(), SVG_PLOTTER::Text(), HPGL_PLOTTER::ThickSegment(), writeApertureList(), and PLOTTER::~PLOTTER().
|
protectedinherited |
Definition at line 602 of file plotter.h.
Referenced by PDF_PLOTTER::ClosePage(), PLOTTER::PageSettings(), PLOTTER::SetPageSettings(), HPGL_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), and PS_PLOTTER::StartPlot().
|
protectedinherited |
Definition at line 603 of file plotter.h.
Referenced by HPGL_PLOTTER::EndPlot(), SetViewport(), DXF_PLOTTER::SetViewport(), HPGL_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), SVG_PLOTTER::StartPlot(), and PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
Definition at line 597 of file plotter.h.
Referenced by DXF_PLOTTER::PenTo(), HPGL_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), PDF_PLOTTER::PenTo(), and SVG_PLOTTER::PenTo().
|
protectedinherited |
Definition at line 596 of file plotter.h.
Referenced by PenTo(), HPGL_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), PDF_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), and PLOTTER::PLOTTER().
|
protectedinherited |
Definition at line 584 of file plotter.h.
Referenced by HPGL_PLOTTER::Arc(), PS_PLOTTER::Arc(), SVG_PLOTTER::Arc(), PSLIKE_PLOTTER::computeTextParameters(), PLOTTER::PLOTTER(), SetViewport(), DXF_PLOTTER::SetViewport(), HPGL_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), PDF_PLOTTER::Text(), and PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
Definition at line 583 of file plotter.h.
Referenced by SetViewport(), DXF_PLOTTER::SetViewport(), HPGL_PLOTTER::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 573 of file plotter.h.
Referenced by EndPlot(), PLOTTER::PLOTTER(), SetViewport(), DXF_PLOTTER::SetViewport(), HPGL_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), PLOTTER::userToDeviceCoordinates(), PLOTTER::userToDeviceSize(), and writeApertureList().
|
protectedinherited |
Definition at line 607 of file plotter.h.
Referenced by PLOTTER::PLOTTER(), PLOTTER::RenderSettings(), SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), PLOTTER::SetRenderSettings(), PDF_PLOTTER::StartPage(), StartPlot(), and PS_PLOTTER::StartPlot().
|
protectedinherited |
Definition at line 601 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), PLOTTER::SetTitle(), and PS_PLOTTER::StartPlot().
|
protected |
Definition at line 371 of file plotter_gerber.h.
Referenced by formatNetAttribute(), GERBER_PLOTTER(), and UseX2NetAttributes().
|
protected |
Definition at line 369 of file plotter_gerber.h.
Referenced by ClearAllAttributes(), clearNetAttribute(), FlashPadRoundRect(), formatNetAttribute(), GERBER_PLOTTER(), PlotGerberRegion(), UseX2format(), and writeApertureList().
|
protected |
Definition at line 346 of file plotter_gerber.h.
Referenced by EndPlot(), and StartPlot().
|
protectedinherited |
Definition at line 587 of file plotter.h.
Referenced by SVG_PLOTTER::Arc(), PLOTTER::PLOTTER(), SVG_PLOTTER::SetViewport(), and PLOTTER::userToDeviceCoordinates().
|
staticinherited |
Draw a marker (used for the drill map).
Definition at line 436 of file plotter.h.
Referenced by PLOTTER::Marker().
|
staticinherited |
Definition at line 126 of file plotter.h.
Referenced by FilledCircle(), PSLIKE_PLOTTER::FlashPadCircle(), FlashPadCircle(), PSLIKE_PLOTTER::FlashPadCustom(), FlashPadCustom(), PSLIKE_PLOTTER::FlashPadRect(), FlashPadRect(), PSLIKE_PLOTTER::FlashPadRoundRect(), FlashPadRoundRect(), PSLIKE_PLOTTER::FlashPadTrapez(), PlotDrawingSheet(), HPGL_PLOTTER::PlotPoly(), SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), ThickArc(), ThickCircle(), ThickRect(), and ThickSegment().
|
protected |
Definition at line 344 of file plotter_gerber.h.
Referenced by EndPlot(), GERBER_PLOTTER(), and StartPlot().