![]() |
KiCad PCB EDA Suite
|
Base plotter engine class. More...
#include <plotter.h>
Public Member Functions | |
PLOTTER () | |
virtual | ~PLOTTER () |
virtual PLOT_FORMAT | GetPlotterType () const =0 |
Returns the effective plot engine in use. More... | |
virtual bool | StartPlot ()=0 |
virtual bool | EndPlot ()=0 |
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 void | SetCurrentLineWidth (int width, void *aData=nullptr)=0 |
Set the line width for the next drawing. More... | |
virtual int | GetCurrentLineWidth () const |
virtual void | SetColor (const COLOR4D &color)=0 |
virtual void | SetDash (PLOT_DASH_TYPE dashed)=0 |
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 void | SetViewport (const wxPoint &aOffset, double aIusPerDecimil, double aScale, bool aMirror)=0 |
Set the plot offset and scaling for the current plot. 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 | Rect (const wxPoint &p1, const wxPoint &p2, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH)=0 |
virtual void | Circle (const wxPoint &pos, int diametre, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH)=0 |
virtual void | Arc (const wxPoint ¢re, double StAngle, double EndAngle, int rayon, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH) |
Generic fallback: arc rendered as a polyline. More... | |
virtual void | Arc (const SHAPE_ARC &aArc) |
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... | |
virtual void | PenTo (const wxPoint &pos, char plume)=0 |
Moveto/lineto primitive, moves the 'pen' to the specified direction. More... | |
void | MoveTo (const wxPoint &pos) |
void | LineTo (const wxPoint &pos) |
void | FinishTo (const wxPoint &pos) |
void | PenFinish () |
virtual void | PlotPoly (const std::vector< wxPoint > &aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void *aData=nullptr)=0 |
Draw a polygon ( filled or not ). More... | |
virtual void | PlotPoly (const SHAPE_LINE_CHAIN &aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void *aData=nullptr) |
Draw a polygon ( filled or not ). More... | |
virtual void | PlotImage (const wxImage &aImage, const wxPoint &aPos, double aScaleFactor) |
Only PostScript plotters can plot bitmaps. More... | |
virtual void | ThickSegment (const wxPoint &start, const wxPoint &end, int width, OUTLINE_MODE tracemode, void *aData) |
virtual void | ThickArc (const wxPoint ¢re, double StAngle, double EndAngle, int rayon, int width, OUTLINE_MODE tracemode, void *aData) |
virtual void | ThickRect (const wxPoint &p1, const wxPoint &p2, int width, OUTLINE_MODE tracemode, void *aData) |
virtual void | ThickCircle (const wxPoint &pos, int diametre, int width, OUTLINE_MODE tracemode, void *aData) |
virtual void | FilledCircle (const wxPoint &pos, int diametre, OUTLINE_MODE tracemode, void *aData) |
virtual void | FlashPadCircle (const wxPoint &aPadPos, int aDiameter, OUTLINE_MODE aTraceMode, void *aData)=0 |
virtual void | FlashPadOval (const wxPoint &aPadPos, const wxSize &aSize, double aPadOrient, OUTLINE_MODE aTraceMode, void *aData)=0 |
virtual void | FlashPadRect (const wxPoint &aPadPos, const wxSize &aSize, double aPadOrient, OUTLINE_MODE aTraceMode, void *aData)=0 |
virtual void | FlashPadRoundRect (const wxPoint &aPadPos, const wxSize &aSize, int aCornerRadius, double aOrient, OUTLINE_MODE aTraceMode, void *aData)=0 |
virtual void | FlashPadCustom (const wxPoint &aPadPos, const wxSize &aSize, double aPadOrient, SHAPE_POLY_SET *aPolygons, OUTLINE_MODE aTraceMode, void *aData)=0 |
virtual void | FlashPadTrapez (const wxPoint &aPadPos, const wxPoint *aCorners, double aPadOrient, OUTLINE_MODE aTraceMode, void *aData)=0 |
Flash a trapezoidal pad. More... | |
virtual void | FlashRegularPolygon (const wxPoint &aShapePos, int aDiameter, int aCornerCount, double aOrient, OUTLINE_MODE aTraceMode, void *aData)=0 |
Flash a regular polygon. 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) |
Draw text with the plotter. More... | |
void | Marker (const wxPoint &position, int diametre, unsigned aShapeId) |
Draw a pattern shape number aShapeId, to coord position. More... | |
virtual void | SetLayerPolarity (bool aPositive) |
Set the current Gerber layer polarity to positive or negative by writing %LPD*% or %LPC*% to the Gerber file, respectively. More... | |
virtual void | SetTextMode (PLOT_TEXT_MODE mode) |
Change the current text mode. More... | |
virtual void | SetGerberCoordinatesFormat (int aResolution, bool aUseInches=false) |
virtual void | SetSvgCoordinatesFormat (unsigned aResolution, bool aUseInches=false) |
virtual void | StartBlock (void *aData) |
calling this function allows one to define the beginning of a group of drawing items, for instance in SVG or Gerber format. More... | |
virtual void | EndBlock (void *aData) |
calling this function allows one to define the end of a group of drawing items for instance in SVG or Gerber format. More... | |
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 | 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 |
Protected Attributes | |
double | m_plotScale |
Plot scale - chosen by the user (even implicitly with 'fit in a4') More... | |
double | m_IUsPerDecimil |
double | m_iuPerDeviceUnit |
wxPoint | m_plotOffset |
bool | m_plotMirror |
bool | m_mirrorIsHorizontal |
bool | m_yaxisReversed |
FILE * | m_outputFile |
Output file. More... | |
bool | m_colorMode |
bool | m_negativeMode |
int | m_currentPenWidth |
char | m_penState |
wxPoint | m_penLastpos |
wxString | m_creator |
wxString | m_filename |
wxString | m_title |
PAGE_INFO | m_pageInfo |
wxSize | m_paperSize |
wxArrayString | m_headerExtraLines |
RENDER_SETTINGS * | m_renderSettings |
Base plotter engine class.
General rule: all the interface with the caller is done in IU, the IU size is specified with SetViewport. Internal and output processing is usually done in decimils (or whatever unit the effective engine class need to use)
PLOTTER::PLOTTER | ( | ) |
Definition at line 49 of file plotter.cpp.
References m_colorMode, m_currentPenWidth, m_iuPerDeviceUnit, m_IUsPerDecimil, m_mirrorIsHorizontal, m_negativeMode, m_outputFile, m_penState, m_plotMirror, m_plotScale, m_renderSettings, and m_yaxisReversed.
|
virtual |
|
inline |
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 m_headerExtraLines.
Referenced by AddGerberX2Attribute(), AddGerberX2Header(), GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), and GENDRILL_WRITER_BASE::genDrillMapFile().
|
virtual |
Generic fallback: arc rendered as a polyline.
Reimplemented in SVG_PLOTTER, PDF_PLOTTER, PS_PLOTTER, HPGL_PLOTTER, DXF_PLOTTER, and GERBER_PLOTTER.
Definition at line 158 of file plotter.cpp.
References cosdecideg(), delta, FinishTo(), KiROUND(), LineTo(), MoveTo(), NO_FILL, SetCurrentLineWidth(), and sindecideg().
Referenced by Arc(), LIB_SHAPE::Plot(), sketchOval(), and ThickArc().
|
virtual |
Reimplemented in GERBER_PLOTTER.
Definition at line 151 of file plotter.cpp.
References Arc(), SHAPE_ARC::GetCenter(), SHAPE_ARC::GetEndAngle(), SHAPE_ARC::GetRadius(), SHAPE_ARC::GetStartAngle(), SHAPE_ARC::GetWidth(), and NO_FILL.
|
virtual |
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 FinishTo(), BEZIER_POLY::GetPoly(), LineTo(), MoveTo(), and SetCurrentLineWidth().
Referenced by SVG_PLOTTER::BezierCurve(), BRDITEMS_PLOTTER::PlotFootprintGraphicItem(), and BRDITEMS_PLOTTER::PlotPcbShape().
|
pure virtual |
Implemented in SVG_PLOTTER, PDF_PLOTTER, PS_PLOTTER, DXF_PLOTTER, HPGL_PLOTTER, and GERBER_PLOTTER.
Referenced by FilledCircle(), PSLIKE_PLOTTER::FlashPadCircle(), markerCircle(), LIB_SHAPE::Plot(), SCH_JUNCTION::Plot(), PlotLayerOutlines(), LIB_PIN::PlotSymbol(), ThickCircle(), and ThickSegment().
|
inline |
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 m_headerExtraLines.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), and StartPlotBoard().
|
inlinevirtual |
calling this function allows one to define the end of a group of drawing items for instance in SVG or Gerber format.
the group is started by StartBlock()
aData | can define any parameter for most of plotters: do nothing |
Reimplemented in SVG_PLOTTER, and GERBER_PLOTTER.
Definition at line 496 of file plotter.h.
Referenced by SCH_SYMBOL::Plot(), BRDITEMS_PLOTTER::PlotFilledAreas(), and PlotStandardLayer().
|
pure virtual |
Implemented in SVG_PLOTTER, PDF_PLOTTER, PS_PLOTTER, HPGL_PLOTTER, DXF_PLOTTER, and GERBER_PLOTTER.
Referenced by PLOT_CONTROLLER::ClosePlot(), GENDRILL_WRITER_BASE::genDrillMapFile(), and DIALOG_PLOT::Plot().
|
virtual |
Reimplemented in GERBER_PLOTTER.
Definition at line 601 of file plotter.cpp.
References Circle(), FILLED, FILLED_SHAPE, NO_FILL, and SetCurrentLineWidth().
Referenced by BRDITEMS_PLOTTER::PlotFootprintGraphicItem(), and BRDITEMS_PLOTTER::PlotPcbShape().
|
inline |
Definition at line 273 of file plotter.h.
References PenTo().
Referenced by Arc(), BezierCurve(), DXF_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), markerBackSlash(), markerHBar(), markerSlash(), markerVBar(), SCH_NO_CONNECT::Plot(), SCH_BUS_ENTRY_BASE::Plot(), SCH_LINE::Plot(), PlotDrawingSheet(), GERBER_PLOTTER::PlotPoly(), LIB_PIN::PlotSymbol(), DXF_PLOTTER::Rect(), sketchOval(), GERBER_PLOTTER::ThickSegment(), HPGL_PLOTTER::ThickSegment(), DXF_PLOTTER::ThickSegment(), and ThickSegment().
|
pure virtual |
aPadPos | Position of the shape (center of the rectangle. |
aDiameter | is the diameter of round pad. |
aTraceMode | is the drawing mode, FILLED or SKETCH. |
aData | is an auxiliary info (mainly for gerber format attributes). |
Implemented in HPGL_PLOTTER, DXF_PLOTTER, GERBER_PLOTTER, and PSLIKE_PLOTTER.
Referenced by BRDITEMS_PLOTTER::plotOneDrillMark(), BRDITEMS_PLOTTER::PlotPad(), and PlotStandardLayer().
|
pure virtual |
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). |
Implemented in DXF_PLOTTER, HPGL_PLOTTER, GERBER_PLOTTER, and PSLIKE_PLOTTER.
Referenced by BRDITEMS_PLOTTER::PlotPad().
|
pure virtual |
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). |
Implemented in DXF_PLOTTER, HPGL_PLOTTER, GERBER_PLOTTER, and PSLIKE_PLOTTER.
Referenced by GENDRILL_WRITER_BASE::plotDrillMarks(), BRDITEMS_PLOTTER::plotOneDrillMark(), BRDITEMS_PLOTTER::PlotPad(), and segmentAsOval().
|
pure virtual |
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). |
Implemented in DXF_PLOTTER, HPGL_PLOTTER, GERBER_PLOTTER, and PSLIKE_PLOTTER.
Referenced by BRDITEMS_PLOTTER::PlotPad().
|
pure virtual |
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). |
Implemented in DXF_PLOTTER, HPGL_PLOTTER, GERBER_PLOTTER, and PSLIKE_PLOTTER.
Referenced by BRDITEMS_PLOTTER::PlotPad().
|
pure virtual |
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). |
Implemented in DXF_PLOTTER, HPGL_PLOTTER, GERBER_PLOTTER, and PSLIKE_PLOTTER.
Referenced by BRDITEMS_PLOTTER::PlotPad().
|
pure virtual |
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. |
Implemented in DXF_PLOTTER, HPGL_PLOTTER, GERBER_PLOTTER, and PSLIKE_PLOTTER.
|
inline |
Definition at line 153 of file plotter.h.
References 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().
|
inlinevirtual |
Definition at line 168 of file plotter.h.
References m_currentPenWidth.
Referenced by GERBER_PLOTTER::FlashPadChamferRoundRect(), PSLIKE_PLOTTER::FlashPadCircle(), PSLIKE_PLOTTER::FlashPadCustom(), GERBER_PLOTTER::FlashPadCustom(), PSLIKE_PLOTTER::FlashPadRect(), GERBER_PLOTTER::FlashPadRect(), PSLIKE_PLOTTER::FlashPadRoundRect(), GERBER_PLOTTER::FlashPadRoundRect(), PSLIKE_PLOTTER::FlashPadTrapez(), GERBER_PLOTTER::FlashPadTrapez(), GERBER_PLOTTER::FlashRegularPolygon(), GetDashGapLenIU(), GetDashMarkLenIU(), GetDotMarkLenIU(), markerCircle(), markerLozenge(), markerSquare(), PS_PLOTTER::SetCurrentLineWidth(), and SVG_PLOTTER::setSVGPlotStyle().
|
protected |
Definition at line 145 of file plotter.cpp.
References dash_gap_len(), GetCurrentLineWidth(), and userToDeviceSize().
Referenced by PS_PLOTTER::SetDash(), PDF_PLOTTER::SetDash(), and SVG_PLOTTER::setSVGPlotStyle().
|
protected |
Definition at line 139 of file plotter.cpp.
References dash_mark_len(), GetCurrentLineWidth(), and userToDeviceSize().
Referenced by PS_PLOTTER::SetDash(), PDF_PLOTTER::SetDash(), and SVG_PLOTTER::setSVGPlotStyle().
|
protected |
Definition at line 133 of file plotter.cpp.
References dot_mark_len(), GetCurrentLineWidth(), and userToDeviceSize().
Referenced by PS_PLOTTER::SetDash(), PDF_PLOTTER::SetDash(), and SVG_PLOTTER::setSVGPlotStyle().
|
inline |
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 m_IUsPerDecimil.
Referenced by PlotDrawingSheet().
|
inline |
Definition at line 228 of file plotter.h.
References m_IUsPerDecimil.
Referenced by GERBER_PLOTTER::FlashPadChamferRoundRect(), PSLIKE_PLOTTER::FlashPadRoundRect(), GERBER_PLOTTER::FlashPadRoundRect(), HPGL_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::PlotPoly(), and DXF_PLOTTER::ThickSegment().
|
inline |
|
pure virtual |
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
Implemented in SVG_PLOTTER, PDF_PLOTTER, PS_PLOTTER, DXF_PLOTTER, GERBER_PLOTTER, and HPGL_PLOTTER.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), BRDITEMS_PLOTTER::PlotFilledAreas(), PlotOneBoardLayer(), BRDITEMS_PLOTTER::PlotPad(), and StartPlotBoard().
|
inline |
Definition at line 268 of file plotter.h.
References PenTo().
Referenced by Arc(), BezierCurve(), DXF_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), GERBER_PLOTTER::plotArc(), GERBER_PLOTTER::PlotPoly(), HPGL_PLOTTER::PlotPoly(), DXF_PLOTTER::PlotPoly(), GERBER_PLOTTER::plotRoundRectAsRegion(), LIB_PIN::PlotSymbol(), and DXF_PLOTTER::Rect().
void PLOTTER::Marker | ( | const wxPoint & | position, |
int | diametre, | ||
unsigned | aShapeId | ||
) |
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 MARKER_COUNT, markerBackSlash(), markerCircle(), markerHBar(), markerLozenge(), markerSlash(), markerSquare(), and markerVBar().
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), and GENDRILL_WRITER_BASE::plotDrillMarks().
|
protected |
Plot a \ bar centered on the position.
Building block for markers
Definition at line 318 of file plotter.cpp.
References FinishTo(), and MoveTo().
Referenced by Marker().
|
protected |
Plot a circle centered on the position.
Building block for markers
Definition at line 274 of file plotter.cpp.
References Circle(), GetCurrentLineWidth(), and NO_FILL.
Referenced by Marker().
|
protected |
Plot a - bar centered on the position.
Building block for markers
Definition at line 304 of file plotter.cpp.
References FinishTo(), and MoveTo().
Referenced by Marker().
|
protected |
Plot a lozenge centered on the position.
Building block for markers
Definition at line 280 of file plotter.cpp.
References GetCurrentLineWidth(), NO_FILL, and PlotPoly().
Referenced by Marker().
|
protected |
Plot a / bar centered on the position.
Building block for markers
Definition at line 311 of file plotter.cpp.
References FinishTo(), and MoveTo().
Referenced by Marker().
|
protected |
Plot a square centered on the position.
Building block for markers
Definition at line 249 of file plotter.cpp.
References GetCurrentLineWidth(), KiROUND(), NO_FILL, PlotPoly(), and r.
Referenced by Marker().
|
protected |
Plot a | bar centered on the position.
Building block for markers
Definition at line 325 of file plotter.cpp.
References FinishTo(), and MoveTo().
Referenced by Marker().
|
inline |
Definition at line 263 of file plotter.h.
References PenTo().
Referenced by Arc(), BezierCurve(), HPGL_PLOTTER::Circle(), HPGL_PLOTTER::FlashPadCircle(), DXF_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), markerBackSlash(), markerHBar(), markerSlash(), markerVBar(), SCH_NO_CONNECT::Plot(), SCH_BUS_ENTRY_BASE::Plot(), SCH_LINE::Plot(), GERBER_PLOTTER::plotArc(), PlotDrawingSheet(), GERBER_PLOTTER::PlotPoly(), HPGL_PLOTTER::PlotPoly(), DXF_PLOTTER::PlotPoly(), GERBER_PLOTTER::plotRoundRectAsRegion(), LIB_PIN::PlotSymbol(), DXF_PLOTTER::Rect(), HPGL_PLOTTER::Rect(), sketchOval(), GERBER_PLOTTER::ThickSegment(), HPGL_PLOTTER::ThickSegment(), DXF_PLOTTER::ThickSegment(), and ThickSegment().
|
virtual |
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 m_filename, and 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().
|
inline |
Definition at line 159 of file plotter.h.
References m_pageInfo.
Referenced by DIALOG_PLOT_SCHEMATIC::plotOneSheetPDF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), and DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG().
|
inline |
Definition at line 279 of file plotter.h.
References PenTo().
Referenced by HPGL_PLOTTER::Circle(), HPGL_PLOTTER::FlashPadCircle(), GERBER_PLOTTER::PlotPoly(), HPGL_PLOTTER::PlotPoly(), DXF_PLOTTER::PlotPoly(), and HPGL_PLOTTER::Rect().
|
pure virtual |
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). |
Implemented in SVG_PLOTTER, PDF_PLOTTER, PS_PLOTTER, HPGL_PLOTTER, DXF_PLOTTER, and GERBER_PLOTTER.
Referenced by FinishTo(), LineTo(), MoveTo(), and PenFinish().
|
virtual |
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 Rect().
Referenced by BITMAP_BASE::PlotImage(), and SVG_PLOTTER::PlotImage().
|
pure virtual |
Draw a polygon ( filled or not ).
aCornerList | is the corners list (a std::vector< wxPoint >). |
aFill | is the type of fill. |
aWidth | is the line width. |
aData | is an auxiliary info (mainly for gerber format). |
Implemented in SVG_PLOTTER, PDF_PLOTTER, PS_PLOTTER, DXF_PLOTTER, HPGL_PLOTTER, and GERBER_PLOTTER.
Referenced by PSLIKE_PLOTTER::FlashPadCustom(), PSLIKE_PLOTTER::FlashPadRect(), PSLIKE_PLOTTER::FlashPadRoundRect(), PSLIKE_PLOTTER::FlashPadTrapez(), markerLozenge(), markerSquare(), LIB_SHAPE::Plot(), SCH_TEXT::Plot(), PlotDrawingSheet(), BRDITEMS_PLOTTER::PlotFilledAreas(), BRDITEMS_PLOTTER::PlotFootprintGraphicItem(), PlotLayerOutlines(), BRDITEMS_PLOTTER::PlotPcbShape(), PlotPoly(), and PlotSolderMaskLayer().
|
virtual |
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). |
Reimplemented in GERBER_PLOTTER.
Definition at line 615 of file plotter.cpp.
References SHAPE_LINE_CHAIN::CPoint(), SHAPE_LINE_CHAIN::IsClosed(), PlotPoly(), and SHAPE_LINE_CHAIN::PointCount().
|
pure virtual |
Implemented in SVG_PLOTTER, PDF_PLOTTER, PS_PLOTTER, HPGL_PLOTTER, DXF_PLOTTER, and GERBER_PLOTTER.
Referenced by FillNegativeKnockout(), LIB_SHAPE::Plot(), SCH_SHEET::Plot(), PlotDrawingSheet(), PlotImage(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPDF(), and ThickRect().
|
inline |
Definition at line 156 of file plotter.h.
References 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().
|
protected |
Convert a thick segment and plot it as an oval.
Definition at line 454 of file plotter.cpp.
References ArcTangente(), EuclideanNorm(), FlashPadOval(), and KiROUND().
Referenced by GERBER_PLOTTER::ThickSegment(), HPGL_PLOTTER::ThickSegment(), and ThickSegment().
|
pure virtual |
Implemented in SVG_PLOTTER, PSLIKE_PLOTTER, HPGL_PLOTTER, DXF_PLOTTER, and GERBER_PLOTTER.
Referenced by FillNegativeKnockout(), LIB_SHAPE::Plot(), SCH_NO_CONNECT::Plot(), SCH_BUS_ENTRY_BASE::Plot(), SCH_JUNCTION::Plot(), SCH_LINE::Plot(), LIB_SYMBOL::Plot(), SCH_SHEET::Plot(), BRDITEMS_PLOTTER::PlotDimension(), PlotDrawingSheet(), BRDITEMS_PLOTTER::PlotDrillMarks(), BRDITEMS_PLOTTER::PlotFilledAreas(), BRDITEMS_PLOTTER::PlotFootprintGraphicItem(), BRDITEMS_PLOTTER::PlotFootprintTextItem(), BITMAP_BASE::PlotImage(), LIB_SYMBOL::PlotLibFields(), PlotOneBoardLayer(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPDF(), BRDITEMS_PLOTTER::PlotPad(), BRDITEMS_PLOTTER::PlotPcbShape(), BRDITEMS_PLOTTER::PlotPcbTarget(), BRDITEMS_PLOTTER::PlotPcbText(), PlotStandardLayer(), LIB_PIN::PlotSymbol(), and Text().
|
inlinevirtual |
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 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().
|
inlinevirtual |
Definition at line 174 of file plotter.h.
References 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().
|
pure virtual |
Set the line width for the next drawing.
width | is specified in IUs. |
aData | is an auxiliary parameter, mainly used in gerber plotter. |
Implemented in SVG_PLOTTER, PDF_PLOTTER, PS_PLOTTER, HPGL_PLOTTER, DXF_PLOTTER, and GERBER_PLOTTER.
Referenced by Arc(), BezierCurve(), FilledCircle(), PSLIKE_PLOTTER::FlashPadCircle(), PSLIKE_PLOTTER::FlashPadCustom(), PSLIKE_PLOTTER::FlashPadRect(), PSLIKE_PLOTTER::FlashPadRoundRect(), PSLIKE_PLOTTER::FlashPadTrapez(), GENDRILL_WRITER_BASE::genDrillMapFile(), SCH_NO_CONNECT::Plot(), SCH_BUS_ENTRY_BASE::Plot(), SCH_LINE::Plot(), SCH_TEXT::Plot(), SCH_SCREEN::Plot(), PlotDrawingSheet(), GENDRILL_WRITER_BASE::plotDrillMarks(), BRDITEMS_PLOTTER::PlotFilledAreas(), BRDITEMS_PLOTTER::PlotFootprintTextItem(), BITMAP_BASE::PlotImage(), BRDITEMS_PLOTTER::PlotPad(), BRDITEMS_PLOTTER::PlotPcbShape(), BRDITEMS_PLOTTER::PlotPcbText(), LIB_PIN::PlotSymbol(), sketchOval(), Text(), ThickArc(), ThickCircle(), ThickRect(), and ThickSegment().
|
pure virtual |
Implemented in SVG_PLOTTER, PDF_PLOTTER, PS_PLOTTER, HPGL_PLOTTER, DXF_PLOTTER, and GERBER_PLOTTER.
Referenced by SCH_BUS_ENTRY_BASE::Plot(), and SCH_LINE::Plot().
|
inlinevirtual |
Reimplemented in GERBER_PLOTTER.
Definition at line 470 of file plotter.h.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), and initializePlotter().
|
inlinevirtual |
Set the current Gerber layer polarity to positive or negative by writing %LPD*% or %LPC*% to the Gerber file, respectively.
(obviously starts a new Gerber layer, too)
aPositive | is the layer polarity and true for positive. It's not useful with most other plotter since they can't 'scratch' the film like photoplotter imagers do |
Reimplemented in GERBER_PLOTTER.
Definition at line 456 of file plotter.h.
Referenced by PlotOneBoardLayer().
|
inlinevirtual |
Definition at line 142 of file plotter.h.
References m_negativeMode.
Referenced by FillNegativeKnockout().
|
inlinevirtual |
Definition at line 158 of file plotter.h.
References 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().
|
inline |
Definition at line 155 of file plotter.h.
References 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().
|
inlinevirtual |
Reimplemented in SVG_PLOTTER.
Definition at line 475 of file plotter.h.
Referenced by initializePlotter().
|
inlinevirtual |
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().
|
inlinevirtual |
Definition at line 176 of file plotter.h.
References m_title.
Referenced by DIALOG_PLOT_SCHEMATIC::createPDFFile().
|
pure virtual |
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). |
Implemented in SVG_PLOTTER, PDF_PLOTTER, PS_PLOTTER, HPGL_PLOTTER, DXF_PLOTTER, and GERBER_PLOTTER.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), initializePlotter(), and DIALOG_PLOT_SCHEMATIC::setupPlotPagePDF().
|
protected |
Definition at line 475 of file plotter.cpp.
References AddAngles(), Arc(), FinishTo(), m_currentPenWidth, MoveTo(), NO_FILL, RotatePoint(), and SetCurrentLineWidth().
Referenced by PSLIKE_PLOTTER::FlashPadOval(), GERBER_PLOTTER::FlashPadOval(), HPGL_PLOTTER::FlashPadOval(), and DXF_PLOTTER::FlashPadOval().
|
inlinevirtual |
calling this function allows one to define the beginning of a group of drawing items, for instance in SVG or Gerber format.
(example: group all segments of a letter or a text)
aData | can define any parameter for most of plotters: do nothing |
Reimplemented in SVG_PLOTTER, and GERBER_PLOTTER.
Definition at line 487 of file plotter.h.
Referenced by SCH_SYMBOL::Plot(), BRDITEMS_PLOTTER::PlotFilledAreas(), and PlotStandardLayer().
|
pure virtual |
Implemented in SVG_PLOTTER, PDF_PLOTTER, PS_PLOTTER, DXF_PLOTTER, HPGL_PLOTTER, and GERBER_PLOTTER.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), and StartPlotBoard().
|
virtual |
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 in SVG_PLOTTER, PDF_PLOTTER, PS_PLOTTER, DXF_PLOTTER, and GERBER_PLOTTER.
Definition at line 219 of file gr_text.cpp.
References GRText(), SetColor(), and SetCurrentLineWidth().
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), LIB_TEXT::Plot(), LIB_FIELD::Plot(), SCH_FIELD::Plot(), SCH_TEXT::Plot(), PlotDrawingSheet(), BRDITEMS_PLOTTER::PlotFootprintTextItem(), BRDITEMS_PLOTTER::PlotPcbText(), LIB_PIN::PlotPinTexts(), GERBER_PLOTTER::Text(), DXF_PLOTTER::Text(), PS_PLOTTER::Text(), PDF_PLOTTER::Text(), and SVG_PLOTTER::Text().
|
virtual |
Reimplemented in GERBER_PLOTTER.
Definition at line 543 of file plotter.cpp.
References Arc(), FILLED, m_currentPenWidth, NO_FILL, and SetCurrentLineWidth().
Referenced by BRDITEMS_PLOTTER::PlotFootprintGraphicItem(), BRDITEMS_PLOTTER::PlotPcbShape(), and PlotStandardLayer().
|
virtual |
Reimplemented in GERBER_PLOTTER.
Definition at line 585 of file plotter.cpp.
References Circle(), FILLED, m_currentPenWidth, NO_FILL, and SetCurrentLineWidth().
Referenced by BRDITEMS_PLOTTER::PlotFootprintGraphicItem(), and BRDITEMS_PLOTTER::PlotPcbShape().
|
virtual |
Reimplemented in GERBER_PLOTTER.
Definition at line 561 of file plotter.cpp.
References FILLED, m_currentPenWidth, NO_FILL, Rect(), and SetCurrentLineWidth().
|
virtual |
Reimplemented in DXF_PLOTTER, HPGL_PLOTTER, and GERBER_PLOTTER.
Definition at line 519 of file plotter.cpp.
References Circle(), FILLED, FILLED_SHAPE, FinishTo(), MoveTo(), segmentAsOval(), and SetCurrentLineWidth().
Referenced by PSLIKE_PLOTTER::FlashPadOval(), BRDITEMS_PLOTTER::PlotFilledAreas(), BRDITEMS_PLOTTER::PlotFootprintGraphicItem(), PlotLayerOutlines(), BRDITEMS_PLOTTER::PlotPcbShape(), and PlotStandardLayer().
|
protectedvirtual |
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 m_iuPerDeviceUnit, m_mirrorIsHorizontal, m_paperSize, m_plotMirror, m_plotOffset, m_plotScale, and m_yaxisReversed.
Referenced by DXF_PLOTTER::Arc(), HPGL_PLOTTER::Arc(), PS_PLOTTER::Arc(), PDF_PLOTTER::Arc(), SVG_PLOTTER::Arc(), SVG_PLOTTER::BezierCurve(), HPGL_PLOTTER::Circle(), DXF_PLOTTER::Circle(), PS_PLOTTER::Circle(), PDF_PLOTTER::Circle(), SVG_PLOTTER::Circle(), PSLIKE_PLOTTER::computeTextParameters(), GERBER_PLOTTER::FlashPadChamferRoundRect(), GERBER_PLOTTER::FlashPadCircle(), HPGL_PLOTTER::FlashPadCircle(), GERBER_PLOTTER::FlashPadCustom(), GERBER_PLOTTER::FlashPadOval(), GERBER_PLOTTER::FlashPadRect(), GERBER_PLOTTER::FlashPadRoundRect(), GERBER_PLOTTER::FlashPadTrapez(), GERBER_PLOTTER::FlashRegularPolygon(), GERBER_PLOTTER::PenTo(), DXF_PLOTTER::PenTo(), HPGL_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), PDF_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), GERBER_PLOTTER::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().
|
protectedvirtual |
Modify size according to the plotter scale factors (wxSize version, returns a DPOINT).
Definition at line 117 of file plotter.cpp.
References m_iuPerDeviceUnit, and 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(), GetDashGapLenIU(), GetDashMarkLenIU(), 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().
|
protectedvirtual |
Modify size according to the plotter scale factors (simple double version).
Definition at line 124 of file plotter.cpp.
References m_iuPerDeviceUnit, and m_plotScale.
|
static |
Definition at line 125 of file plotter.h.
Referenced by GERBER_PLOTTER::FilledCircle(), GERBER_PLOTTER::FlashPadCircle(), GERBER_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), GERBER_PLOTTER::ThickArc(), GERBER_PLOTTER::ThickCircle(), and GERBER_PLOTTER::ThickRect().
|
protected |
Definition at line 593 of file plotter.h.
Referenced by GetColorMode(), PS_PLOTTER::PlotImage(), PDF_PLOTTER::PlotImage(), PLOTTER(), DXF_PLOTTER::SetColor(), PSLIKE_PLOTTER::SetColor(), and SetColorMode().
|
protected |
Definition at line 599 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), SetCreator(), GERBER_PLOTTER::StartPlot(), PS_PLOTTER::StartPlot(), and SVG_PLOTTER::StartPlot().
|
protected |
Definition at line 595 of file plotter.h.
Referenced by GetCurrentLineWidth(), PLOTTER(), GERBER_PLOTTER::SetCurrentLineWidth(), DXF_PLOTTER::SetCurrentLineWidth(), HPGL_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), sketchOval(), GERBER_PLOTTER::ThickArc(), ThickArc(), GERBER_PLOTTER::ThickCircle(), ThickCircle(), GERBER_PLOTTER::ThickRect(), and ThickRect().
|
protected |
Definition at line 600 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), OpenFile(), PDF_PLOTTER::OpenFile(), and SVG_PLOTTER::StartPlot().
|
protected |
Definition at line 605 of file plotter.h.
Referenced by AddLineToHeader(), ClearHeaderLinesList(), and GERBER_PLOTTER::StartPlot().
|
protected |
Definition at line 581 of file plotter.h.
Referenced by HPGL_PLOTTER::EndPlot(), PLOTTER(), GERBER_PLOTTER::SetGerberCoordinatesFormat(), SVG_PLOTTER::SetSvgCoordinatesFormat(), GERBER_PLOTTER::SetViewport(), DXF_PLOTTER::SetViewport(), HPGL_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), SVG_PLOTTER::StartPlot(), userToDeviceCoordinates(), and userToDeviceSize().
|
protected |
Definition at line 579 of file plotter.h.
Referenced by GERBER_PLOTTER::EndPlot(), GetIUsPerDecimil(), GetPlotterArcHighDef(), GetPlotterArcLowDef(), PLOTTER(), GERBER_PLOTTER::SetGerberCoordinatesFormat(), SVG_PLOTTER::SetSvgCoordinatesFormat(), GERBER_PLOTTER::SetViewport(), DXF_PLOTTER::SetViewport(), HPGL_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), GERBER_PLOTTER::StartPlot(), SVG_PLOTTER::StartPlot(), and GERBER_PLOTTER::writeApertureList().
|
protected |
Definition at line 586 of file plotter.h.
Referenced by PS_PLOTTER::Arc(), SVG_PLOTTER::Arc(), PLOTTER(), and userToDeviceCoordinates().
|
protected |
Definition at line 594 of file plotter.h.
Referenced by PLOTTER(), PSLIKE_PLOTTER::SetColor(), and SetNegative().
|
protected |
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(), GERBER_PLOTTER::ClearAllAttributes(), GERBER_PLOTTER::clearNetAttribute(), PDF_PLOTTER::ClosePage(), PDF_PLOTTER::closePdfObject(), PDF_PLOTTER::closePdfStream(), GERBER_PLOTTER::emitDcode(), PS_PLOTTER::emitSetRGBColor(), SVG_PLOTTER::EndBlock(), GERBER_PLOTTER::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(), GERBER_PLOTTER::FlashPadOval(), HPGL_PLOTTER::FlashPadOval(), DXF_PLOTTER::FlashPadOval(), GERBER_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRect(), GERBER_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), GERBER_PLOTTER::formatNetAttribute(), OpenFile(), PDF_PLOTTER::OpenFile(), GERBER_PLOTTER::PenTo(), DXF_PLOTTER::PenTo(), HPGL_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), GERBER_PLOTTER::plotArc(), GERBER_PLOTTER::PlotGerberRegion(), PS_PLOTTER::PlotImage(), SVG_PLOTTER::PlotImage(), GERBER_PLOTTER::PlotPoly(), PS_PLOTTER::PlotPoly(), SVG_PLOTTER::PlotPoly(), GERBER_PLOTTER::plotRoundRectAsRegion(), PLOTTER(), DXF_PLOTTER::Rect(), HPGL_PLOTTER::Rect(), PS_PLOTTER::Rect(), SVG_PLOTTER::Rect(), GERBER_PLOTTER::selectAperture(), PS_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetDash(), GERBER_PLOTTER::SetLayerPolarity(), SVG_PLOTTER::setSVGPlotStyle(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::StartBlock(), PDF_PLOTTER::StartPage(), PDF_PLOTTER::startPdfObject(), PDF_PLOTTER::startPdfStream(), GERBER_PLOTTER::StartPlot(), HPGL_PLOTTER::StartPlot(), DXF_PLOTTER::StartPlot(), PS_PLOTTER::StartPlot(), PDF_PLOTTER::StartPlot(), SVG_PLOTTER::StartPlot(), DXF_PLOTTER::Text(), PS_PLOTTER::Text(), SVG_PLOTTER::Text(), HPGL_PLOTTER::ThickSegment(), GERBER_PLOTTER::writeApertureList(), and ~PLOTTER().
|
protected |
Definition at line 602 of file plotter.h.
Referenced by PDF_PLOTTER::ClosePage(), PageSettings(), SetPageSettings(), HPGL_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), and PS_PLOTTER::StartPlot().
|
protected |
Definition at line 603 of file plotter.h.
Referenced by HPGL_PLOTTER::EndPlot(), GERBER_PLOTTER::SetViewport(), DXF_PLOTTER::SetViewport(), HPGL_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), SVG_PLOTTER::StartPlot(), and userToDeviceCoordinates().
|
protected |
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().
|
protected |
Definition at line 596 of file plotter.h.
Referenced by GERBER_PLOTTER::PenTo(), HPGL_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), PDF_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), and PLOTTER().
|
protected |
Definition at line 584 of file plotter.h.
Referenced by HPGL_PLOTTER::Arc(), PS_PLOTTER::Arc(), SVG_PLOTTER::Arc(), PSLIKE_PLOTTER::computeTextParameters(), PLOTTER(), GERBER_PLOTTER::SetViewport(), DXF_PLOTTER::SetViewport(), HPGL_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), PDF_PLOTTER::Text(), and userToDeviceCoordinates().
|
protected |
Definition at line 583 of file plotter.h.
Referenced by GERBER_PLOTTER::SetViewport(), DXF_PLOTTER::SetViewport(), HPGL_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), and userToDeviceCoordinates().
|
protected |
Plot scale - chosen by the user (even implicitly with 'fit in a4')
Definition at line 573 of file plotter.h.
Referenced by GERBER_PLOTTER::EndPlot(), PLOTTER(), GERBER_PLOTTER::SetViewport(), DXF_PLOTTER::SetViewport(), HPGL_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), userToDeviceCoordinates(), userToDeviceSize(), and GERBER_PLOTTER::writeApertureList().
|
protected |
Definition at line 607 of file plotter.h.
Referenced by PLOTTER(), RenderSettings(), GERBER_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), SetRenderSettings(), PDF_PLOTTER::StartPage(), GERBER_PLOTTER::StartPlot(), and PS_PLOTTER::StartPlot().
|
protected |
Definition at line 601 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), SetTitle(), and PS_PLOTTER::StartPlot().
|
protected |
Definition at line 587 of file plotter.h.
Referenced by SVG_PLOTTER::Arc(), PLOTTER(), SVG_PLOTTER::SetViewport(), and userToDeviceCoordinates().
|
static |
|
static |
Definition at line 126 of file plotter.h.
Referenced by GERBER_PLOTTER::FilledCircle(), PSLIKE_PLOTTER::FlashPadCircle(), GERBER_PLOTTER::FlashPadCircle(), PSLIKE_PLOTTER::FlashPadCustom(), GERBER_PLOTTER::FlashPadCustom(), PSLIKE_PLOTTER::FlashPadRect(), GERBER_PLOTTER::FlashPadRect(), PSLIKE_PLOTTER::FlashPadRoundRect(), GERBER_PLOTTER::FlashPadRoundRect(), PSLIKE_PLOTTER::FlashPadTrapez(), PlotDrawingSheet(), HPGL_PLOTTER::PlotPoly(), GERBER_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), GERBER_PLOTTER::ThickArc(), GERBER_PLOTTER::ThickCircle(), GERBER_PLOTTER::ThickRect(), and GERBER_PLOTTER::ThickSegment().