![]() |
KiCad PCB EDA Suite
|
#include <plotter.h>
Public Member Functions | |
PS_PLOTTER () | |
virtual PlotFormat | GetPlotterType () const override |
Returns the effective plot engine in use. More... | |
virtual bool | StartPlot () override |
The code within this function (and the CloseFilePS function) creates postscript files whose contents comply with Adobe's Document Structuring Convention, as documented by assorted details described within the following URLs: More... | |
virtual bool | EndPlot () override |
virtual void | SetCurrentLineWidth (int width, void *aData=NULL) override |
Set the line width for the next drawing. More... | |
virtual void | SetDash (int dashed) override |
Postscript supports dashed lines. More... | |
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 ¢re, double StAngle, double EndAngle, int rayon, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH) override |
Generic fallback: arc rendered as a polyline. More... | |
virtual void | PlotPoly (const std::vector< wxPoint > &aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void *aData=NULL) override |
Function PlotPoly. More... | |
virtual void | PlotImage (const wxImage &aImage, const wxPoint &aPos, double aScaleFactor) override |
Postscript-likes at the moment are the only plot engines supporting bitmaps... 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=NULL) override |
Draws text with the plotter. More... | |
virtual void | SetTextMode (PlotTextMode mode) override |
PS and PDF fully implement native text (for the Latin-1 subset) More... | |
virtual void | SetDefaultLineWidth (int width) override |
Set the default line width. More... | |
void | SetScaleAdjust (double scaleX, double scaleY) |
Set the 'fine' scaling for the postscript engine. More... | |
virtual void | FlashPadCircle (const wxPoint &aPadPos, int aDiameter, EDA_DRAW_MODE_T aTraceMode, void *aData) override |
virtual function FlashPadCircle More... | |
virtual void | FlashPadOval (const wxPoint &aPadPos, const wxSize &aSize, double aPadOrient, EDA_DRAW_MODE_T aTraceMode, void *aData) override |
virtual function FlashPadOval More... | |
virtual void | FlashPadRect (const wxPoint &aPadPos, const wxSize &aSize, double aPadOrient, EDA_DRAW_MODE_T aTraceMode, void *aData) override |
virtual function FlashPadRect More... | |
virtual void | FlashPadRoundRect (const wxPoint &aPadPos, const wxSize &aSize, int aCornerRadius, double aOrient, EDA_DRAW_MODE_T aTraceMode, void *aData) override |
virtual function FlashPadRoundRect More... | |
virtual void | FlashPadCustom (const wxPoint &aPadPos, const wxSize &aSize, SHAPE_POLY_SET *aPolygons, EDA_DRAW_MODE_T aTraceMode, void *aData) override |
virtual function FlashPadCustom More... | |
virtual void | FlashPadTrapez (const wxPoint &aPadPos, const wxPoint *aCorners, double aPadOrient, EDA_DRAW_MODE_T aTraceMode, void *aData) override |
virtual function FlashPadTrapez flash a trapezoidal pad More... | |
virtual void | FlashRegularPolygon (const wxPoint &aShapePos, int aDiameter, int aCornerCount, double aOrient, EDA_DRAW_MODE_T aTraceMode, void *aData) override |
Flash a regular polygon. More... | |
virtual void | SetColor (COLOR4D color) override |
The SetColor implementation is split with the subclasses: The PSLIKE computes the rgb values, the subclass emits the operator to actually do it. More... | |
virtual void | SetNegative (bool aNegative) |
virtual void | SetColorMode (bool aColorMode) |
Plot in B/W or color. More... | |
bool | GetColorMode () const |
virtual void | SetPageSettings (const PAGE_INFO &aPageSettings) |
virtual int | GetCurrentLineWidth () const |
virtual void | SetCreator (const wxString &aCreator) |
virtual void | SetTitle (const wxString &aTitle) |
void | AddLineToHeader (const wxString &aExtraString) |
Function AddLineToHeader Add a line to the list of free lines to print at the beginning of the file. More... | |
void | ClearHeaderLinesList () |
Function 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 | PlotPoly (const SHAPE_LINE_CHAIN &aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void *aData=NULL) |
Function PlotPoly. More... | |
virtual void | ThickSegment (const wxPoint &start, const wxPoint &end, int width, EDA_DRAW_MODE_T tracemode, void *aData) |
virtual void | ThickArc (const wxPoint ¢re, double StAngle, double EndAngle, int rayon, int width, EDA_DRAW_MODE_T tracemode, void *aData) |
virtual void | ThickRect (const wxPoint &p1, const wxPoint &p2, int width, EDA_DRAW_MODE_T tracemode, void *aData) |
virtual void | ThickCircle (const wxPoint &pos, int diametre, int width, EDA_DRAW_MODE_T tracemode, void *aData) |
void | Marker (const wxPoint &position, int diametre, unsigned aShapeId) |
Draw a pattern shape number aShapeId, to coord position. More... | |
virtual void | SetLayerPolarity (bool aPositive) |
Function SetLayerPolarity sets current Gerber layer polarity to positive or negative by writing %LPD*% or %LPC*% to the Gerber file, respectively. More... | |
virtual void | SetGerberCoordinatesFormat (int 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 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 | |
virtual void | emitSetRGBColor (double r, double g, double b) override |
Virtual primitive for emitting the setrgbcolor operator. More... | |
void | computeTextParameters (const wxPoint &aPos, const wxString &aText, int aOrient, const wxSize &aSize, bool aMirror, enum EDA_TEXT_HJUSTIFY_T aH_justify, enum EDA_TEXT_VJUSTIFY_T aV_justify, int aWidth, bool aItalic, bool aBold, double *wideningFactor, double *ctm_a, double *ctm_b, double *ctm_c, double *ctm_d, double *ctm_e, double *ctm_f, double *heightFactor) |
This is the core for postscript/PDF text alignment It computes the transformation matrix to generate a user space system aligned with the text. More... | |
void | postscriptOverlinePositions (const wxString &aText, int aXSize, bool aItalic, bool aBold, std::vector< int > *pos_pairs) |
Computes the x coordinates for the overlining in a string of text. More... | |
void | fputsPostscriptString (FILE *fout, const wxString &txt) |
Write on a stream a string escaped for postscript/PDF. More... | |
int | returnPostscriptTextWidth (const wxString &aText, int aXSize, bool aItalic, bool aBold) |
Sister function for the GraphicTextWidth in drawtxt.cpp Does the same processing (i.e. 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, EDA_DRAW_MODE_T tracemode) |
Cdonvert 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) |
Modifies coordinates according to the orientation, scale factor, and offsets trace. More... | |
virtual DPOINT | userToDeviceSize (const wxSize &size) |
Modifies size according to the plotter scale factors (wxSize version, returns a DPOINT) More... | |
virtual double | userToDeviceSize (double size) const |
Modifies size according to the plotter scale factors (simple double version) More... | |
double | GetDotMarkLenIU () const |
double | GetDashMarkLenIU () const |
double | GetDashGapLenIU () const |
Protected Attributes | |
double | plotScaleAdjX |
Fine user scale adjust ( = 1.0 if no correction) More... | |
double | plotScaleAdjY |
PlotTextMode | m_textMode |
How to draw text. More... | |
double | plotScale |
Plot scale - chosen by the user (even implicitly with 'fit in a4') More... | |
double | m_IUsPerDecimil |
double | iuPerDeviceUnit |
Device scale (from IUs to plotter device units - usually decimils) More... | |
wxPoint | plotOffset |
Plot offset (in IUs) More... | |
bool | m_plotMirror |
X axis orientation (SVG) and plot mirrored (only for PS, PDF HPGL and SVG) More... | |
bool | m_mirrorIsHorizontal |
bool | m_yaxisReversed |
true to mirror horizontally (else vertically) More... | |
FILE * | outputFile |
true if the Y axis is top to bottom (SVG) More... | |
bool | colorMode |
bool | negativeMode |
true to plot in color, false to plot in black and white More... | |
int | defaultPenWidth |
true to generate a negative image (PS mode mainly) More... | |
int | currentPenWidth |
char | penState |
Current pen state: 'U', 'D' or 'Z' (see PenTo) More... | |
wxPoint | penLastpos |
Last pen positions; set to -1,-1 when the pen is at rest. More... | |
wxString | creator |
wxString | filename |
wxString | title |
PAGE_INFO | pageInfo |
wxSize | paperSize |
Paper size in IU - not in mils. More... | |
wxArrayString | m_headerExtraLines |
Static Protected Attributes | |
static const double | postscriptTextAscent = 0.718 |
Height of the postscript font (from the AFM) More... | |
|
inline |
Definition at line 785 of file plotter.h.
References PSLIKE_PLOTTER::m_textMode, and PLOTTEXTMODE_STROKE.
|
inlineinherited |
Function AddLineToHeader 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 176 of file plotter.h.
References PLOTTER::m_headerExtraLines.
Referenced by AddGerberX2Attribute(), AddGerberX2Header(), GERBER_WRITER::createDrillFile(), and PLACEFILE_GERBER_WRITER::CreatePlaceFile().
|
overridevirtual |
Generic fallback: arc rendered as a polyline.
Reimplemented from PLOTTER.
Definition at line 600 of file PS_plotter.cpp.
References PLOTTER::m_mirrorIsHorizontal, PLOTTER::m_plotMirror, PLOTTER::outputFile, SetCurrentLineWidth(), PLOTTER::userToDeviceCoordinates(), PLOTTER::userToDeviceSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
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 202 of file plotter.cpp.
References PLOTTER::FinishTo(), BEZIER_POLY::GetPoly(), PLOTTER::LineTo(), PLOTTER::MoveTo(), and PLOTTER::SetCurrentLineWidth().
Referenced by SVG_PLOTTER::BezierCurve(), BRDITEMS_PLOTTER::Plot_1_EdgeModule(), and BRDITEMS_PLOTTER::PlotDrawSegment().
|
overridevirtual |
Implements PLOTTER.
Definition at line 589 of file PS_plotter.cpp.
References PLOTTER::outputFile, SetCurrentLineWidth(), PLOTTER::userToDeviceCoordinates(), PLOTTER::userToDeviceSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
inlineinherited |
Function ClearHeaderLinesList remove all lines from the list of free lines to print at the beginning of the file.
Definition at line 185 of file plotter.h.
References PLOTTER::m_headerExtraLines.
Referenced by StartPlotBoard().
|
protectedinherited |
This is the core for postscript/PDF text alignment It computes the transformation matrix to generate a user space system aligned with the text.
Even the PS uses the concat operator to simplify PDF generation (concat is everything PDF has to modify the CTM. Lots of parameters, both in and out.
Definition at line 433 of file PS_plotter.cpp.
References DECIDEG2RAD(), GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_HJUSTIFY_RIGHT, GR_TEXT_VJUSTIFY_BOTTOM, GR_TEXT_VJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_TOP, PLOTTER::m_plotMirror, PSLIKE_PLOTTER::postscriptTextAscent, PSLIKE_PLOTTER::returnPostscriptTextWidth(), RotatePoint(), PLOTTER::userToDeviceCoordinates(), PLOTTER::userToDeviceSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by Text(), and PDF_PLOTTER::Text().
|
overrideprotectedvirtual |
Virtual primitive for emitting the setrgbcolor operator.
Implements PSLIKE_PLOTTER.
Definition at line 543 of file PS_plotter.cpp.
References PLOTTER::outputFile.
|
inlinevirtualinherited |
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 GERBER_PLOTTER, and SVG_PLOTTER.
Definition at line 478 of file plotter.h.
Referenced by SCH_COMPONENT::Plot(), PlotSilkScreen(), and PlotStandardLayer().
|
overridevirtual |
Implements PLOTTER.
Definition at line 965 of file PS_plotter.cpp.
References PLOTTER::outputFile.
Referenced by DIALOG_PLOT_SCHEMATIC::plotOneSheetPS().
|
inlineinherited |
Definition at line 264 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(), SCH_SHEET::Plot(), GERBER_PLOTTER::PlotPoly(), LIB_PIN::PlotSymbol(), PlotWorkSheet(), DXF_PLOTTER::Rect(), PLOTTER::sketchOval(), PLOTTER::ThickSegment(), HPGL_PLOTTER::ThickSegment(), GERBER_PLOTTER::ThickSegment(), and DXF_PLOTTER::ThickSegment().
|
overridevirtualinherited |
virtual function FlashPadCircle
aPadPos | Position of the shape (center of the rectangle |
aDiameter | diameter of round pad |
aTraceMode | FILLED or SKETCH |
aData | an auxiliary info (mainly for gerber format attributes) |
Implements PLOTTER.
Definition at line 115 of file PS_plotter.cpp.
References PLOTTER::Circle(), FILLED, FILLED_SHAPE, PLOTTER::GetCurrentLineWidth(), NO_FILL, PLOTTER::SetCurrentLineWidth(), and PLOTTER::USE_DEFAULT_LINE_WIDTH.
|
overridevirtualinherited |
virtual function FlashPadCustom
aPadPos | Position of the shape (center of the rectangle |
aSize | = size of round reference pad |
aPolygons | the shape as polygon set |
aTraceMode | FILLED or SKETCH |
aData | an auxiliary info (mainly for gerber format attributes) |
Implements PLOTTER.
Definition at line 220 of file PS_plotter.cpp.
References FILLED, FILLED_SHAPE, PLOTTER::GetCurrentLineWidth(), NO_FILL, SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), PLOTTER::PlotPoly(), SHAPE_LINE_CHAIN::Point(), SHAPE_LINE_CHAIN::PointCount(), PLOTTER::SetCurrentLineWidth(), PLOTTER::USE_DEFAULT_LINE_WIDTH, VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtualinherited |
virtual function FlashPadOval
aPadPos | Position of the shape (center of the rectangle |
aSize | = size of oblong shape |
aPadOrient | The rotation of the shape |
aTraceMode | FILLED or SKETCH |
aData | an auxiliary info (mainly for gerber format attributes) |
Implements PLOTTER.
Definition at line 85 of file PS_plotter.cpp.
References AddAngles(), FILLED, PLOTTER::outputFile, RotatePoint(), PLOTTER::sketchOval(), and PLOTTER::ThickSegment().
|
overridevirtualinherited |
virtual function FlashPadRect
aPadPos | Position of the shape (center of the rectangle |
aSize | = size of rounded rect |
aPadOrient | The rotation of the shape |
aTraceMode | FILLED or SKETCH |
aData | an auxuliary info (mainly for gerber format attributes) |
Implements PLOTTER.
Definition at line 136 of file PS_plotter.cpp.
References FILLED, FILLED_SHAPE, PLOTTER::GetCurrentLineWidth(), NO_FILL, PLOTTER::PlotPoly(), RotatePoint(), PLOTTER::SetCurrentLineWidth(), and PLOTTER::USE_DEFAULT_LINE_WIDTH.
|
overridevirtualinherited |
virtual function FlashPadRoundRect
aPadPos | Position of the shape (center of the rectangle |
aSize | = size of rounded rect |
aCornerRadius | Radius of the rounded corners |
aOrient | The rotation of the shape |
aTraceMode | FILLED or SKETCH |
aData | an auxiliary info (mainly for gerber format attributes) |
Implements PLOTTER.
Definition at line 185 of file PS_plotter.cpp.
References FILLED, FILLED_SHAPE, PLOTTER::GetCurrentLineWidth(), PLOTTER::GetPlotterArcHighDef(), NO_FILL, SHAPE_POLY_SET::Outline(), PLOTTER::PlotPoly(), SHAPE_LINE_CHAIN::Point(), SHAPE_LINE_CHAIN::PointCount(), PLOTTER::SetCurrentLineWidth(), TransformRoundChamferedRectToPolygon(), PLOTTER::USE_DEFAULT_LINE_WIDTH, VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtualinherited |
virtual function FlashPadTrapez flash a trapezoidal pad
aPadPos | = the position of the shape |
aCorners | = the list of 4 corners positions, relative to the shape position, pad orientation 0 |
aPadOrient | = the rotation of the shape |
aTraceMode | = FILLED or SKETCH |
aData | an auxiliary info (mainly for gerber format attributes) |
Implements PLOTTER.
Definition at line 254 of file PS_plotter.cpp.
References FILLED, FILLED_SHAPE, PLOTTER::GetCurrentLineWidth(), NO_FILL, PLOTTER::PlotPoly(), RotatePoint(), PLOTTER::SetCurrentLineWidth(), and PLOTTER::USE_DEFAULT_LINE_WIDTH.
|
overridevirtualinherited |
Flash a regular polygon.
Usefull 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 300 of file PS_plotter.cpp.
|
protectedinherited |
Write on a stream a string escaped for postscript/PDF.
Definition at line 312 of file PS_plotter.cpp.
References i.
Referenced by Text(), and PDF_PLOTTER::Text().
|
inlineinherited |
Definition at line 131 of file plotter.h.
References PLOTTER::colorMode.
Referenced by PLOT_CONTROLLER::GetColorMode(), LIB_TEXT::Plot(), LIB_PART::Plot(), LIB_PART::PlotLibFields(), PlotWorkSheet(), and DXF_PLOTTER::StartPlot().
|
inlinevirtualinherited |
Definition at line 152 of file plotter.h.
References PLOTTER::currentPenWidth.
Referenced by 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::FlashRegularPolygon(), PLOTTER::GetDashGapLenIU(), PLOTTER::GetDashMarkLenIU(), PLOTTER::GetDotMarkLenIU(), PLOTTER::markerCircle(), PLOTTER::markerLozenge(), PLOTTER::markerSquare(), SetCurrentLineWidth(), and SVG_PLOTTER::setSVGPlotStyle().
|
protectedinherited |
Definition at line 150 of file plotter.cpp.
References DASH_GAP_LEN, PLOTTER::GetCurrentLineWidth(), and PLOTTER::userToDeviceSize().
Referenced by SetDash(), PDF_PLOTTER::SetDash(), and SVG_PLOTTER::setSVGPlotStyle().
|
protectedinherited |
Definition at line 144 of file plotter.cpp.
References DASH_MARK_LEN, PLOTTER::GetCurrentLineWidth(), and PLOTTER::userToDeviceSize().
Referenced by SetDash(), PDF_PLOTTER::SetDash(), and SVG_PLOTTER::setSVGPlotStyle().
|
inlinestatic |
Definition at line 792 of file plotter.h.
Referenced by DIALOG_PLOT_SCHEMATIC::createPSFile(), and GetDefaultPlotExtension().
|
protectedinherited |
Definition at line 138 of file plotter.cpp.
References DOT_MARK_LEN, PLOTTER::GetCurrentLineWidth(), and PLOTTER::userToDeviceSize().
Referenced by 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 217 of file plotter.h.
References PLOTTER::m_IUsPerDecimil.
Referenced by PlotWorkSheet().
|
inlineinherited |
Definition at line 220 of file plotter.h.
References PLOTTER::m_IUsPerDecimil.
Referenced by HPGL_PLOTTER::FlashPadRoundRect(), PSLIKE_PLOTTER::FlashPadRoundRect(), GERBER_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 797 of file plotter.h.
References PLOT_FORMAT_POST.
|
inlineinherited |
Definition at line 259 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(), SCH_SHEET::Plot(), HPGL_PLOTTER::PlotPoly(), GERBER_PLOTTER::PlotPoly(), DXF_PLOTTER::PlotPoly(), LIB_PIN::PlotSymbol(), and DXF_PLOTTER::Rect().
|
inherited |
Draw a pattern shape number aShapeId, to coord position.
Diameter diameter = (coord table) hole AShapeId = index (used to generate forms characters)
Definition at line 330 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 316 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 272 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 302 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 278 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 309 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 247 of file plotter.cpp.
References PLOTTER::GetCurrentLineWidth(), KiROUND(), NO_FILL, and PLOTTER::PlotPoly().
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a | bar centered on the position.
Building block for markers
Definition at line 323 of file plotter.cpp.
References PLOTTER::FinishTo(), and PLOTTER::MoveTo().
Referenced by PLOTTER::Marker().
|
inlineinherited |
Definition at line 254 of file plotter.h.
References PLOTTER::PenTo().
Referenced by PLOTTER::Arc(), GERBER_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(), SCH_SHEET::Plot(), HPGL_PLOTTER::PlotPoly(), GERBER_PLOTTER::PlotPoly(), DXF_PLOTTER::PlotPoly(), LIB_PIN::PlotSymbol(), PlotWorkSheet(), HPGL_PLOTTER::Rect(), DXF_PLOTTER::Rect(), PLOTTER::sketchOval(), PLOTTER::ThickSegment(), HPGL_PLOTTER::ThickSegment(), GERBER_PLOTTER::ThickSegment(), and DXF_PLOTTER::ThickSegment().
|
virtualinherited |
Open or create the plot file aFullFilename.
aFullFilename | = 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 81 of file plotter.cpp.
References PLOTTER::filename, and PLOTTER::outputFile.
Referenced by GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), DIALOG_PLOT_SCHEMATIC::Plot_1_Page_HPGL(), DIALOG_PLOT_SCHEMATIC::PlotOneSheetDXF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG(), StartPlotBoard(), and LIB_EDIT_FRAME::SVG_PlotComponent().
|
inlineinherited |
Definition at line 270 of file plotter.h.
References PLOTTER::PenTo().
Referenced by HPGL_PLOTTER::Arc(), HPGL_PLOTTER::Circle(), HPGL_PLOTTER::FlashPadCircle(), HPGL_PLOTTER::PlotPoly(), GERBER_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 763 of file PS_plotter.cpp.
References PLOTTER::outputFile, PLOTTER::penLastpos, PLOTTER::penState, PLOTTER::userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtual |
Postscript-likes at the moment are the only plot engines supporting bitmaps...
Reimplemented from PLOTTER.
Definition at line 661 of file PS_plotter.cpp.
References abs, PLOTTER::colorMode, KiROUND(), PLOTTER::outputFile, PLOTTER::userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
virtualinherited |
Function PlotPoly.
Draw a polygon ( filled or not )
aCornerList | = corners list (a SHAPE_LINE_CHAIN). must be closed (IsClosed() == true) for a polygon. Otherwise this is a polyline |
aFill | = type of fill |
aWidth | = line width |
aData | an auxiliary info (mainly for gerber format) |
Definition at line 574 of file plotter.cpp.
References SHAPE_LINE_CHAIN::CPoint(), SHAPE_LINE_CHAIN::IsClosed(), PLOTTER::PlotPoly(), and SHAPE_LINE_CHAIN::PointCount().
|
overridevirtual |
Function PlotPoly.
Draw a polygon ( filled or not )
aCornerList | = corners list (a std::vector< wxPoint >) |
aFill | = type of fill |
aWidth | = line width |
aData | an auxiliary info (mainly for gerber format) |
Implements PLOTTER.
Definition at line 636 of file PS_plotter.cpp.
References PLOTTER::outputFile, SetCurrentLineWidth(), PLOTTER::userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
protectedinherited |
Computes the x coordinates for the overlining in a string of text.
Fills the passed vector with couples of (start, stop) values to be used in the text coordinate system (use computeTextParameters to obtain the parameters to establish such a system)
Definition at line 380 of file PS_plotter.cpp.
References hv_widths, hvb_widths, hvbo_widths, hvo_widths, i, KiROUND(), and PSLIKE_PLOTTER::postscriptTextAscent.
Referenced by Text(), and PDF_PLOTTER::Text().
|
overridevirtual |
Implements PLOTTER.
Definition at line 578 of file PS_plotter.cpp.
References PLOTTER::outputFile, SetCurrentLineWidth(), PLOTTER::userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
protectedinherited |
Sister function for the GraphicTextWidth in drawtxt.cpp Does the same processing (i.e.
calculates a text string width) but using postscript metrics for the Helvetica font (optionally used for PS and PDF plotting
Definition at line 351 of file PS_plotter.cpp.
References hv_widths, hvb_widths, hvbo_widths, hvo_widths, i, KiROUND(), and PSLIKE_PLOTTER::postscriptTextAscent.
Referenced by PSLIKE_PLOTTER::computeTextParameters().
|
protectedinherited |
Cdonvert a thick segment and plot it as an oval.
Definition at line 436 of file plotter.cpp.
References ArcTangente(), EuclideanNorm(), PLOTTER::FlashPadOval(), and KiROUND().
Referenced by PLOTTER::ThickSegment(), HPGL_PLOTTER::ThickSegment(), and GERBER_PLOTTER::ThickSegment().
|
overridevirtualinherited |
The SetColor implementation is split with the subclasses: The PSLIKE computes the rgb values, the subclass emits the operator to actually do it.
Implements PLOTTER.
Reimplemented in SVG_PLOTTER.
Definition at line 59 of file PS_plotter.cpp.
References color, PLOTTER::colorMode, PSLIKE_PLOTTER::emitSetRGBColor(), PLOTTER::negativeMode, and WHITE.
Referenced by DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), SVG_PLOTTER::SetColor(), Text(), and PDF_PLOTTER::Text().
|
inlinevirtualinherited |
Plot in B/W or color.
aColorMode | = true to plot in color, false to plot in black and white |
Definition at line 126 of file plotter.h.
References PLOTTER::colorMode.
Referenced by DIALOG_PLOT_SCHEMATIC::createPDFFile(), DIALOG_EXPORT_SVG::CreateSVGFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), initializePlotter(), DIALOG_PLOT_SCHEMATIC::PlotOneSheetDXF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG(), PLOT_CONTROLLER::SetColorMode(), and LIB_EDIT_FRAME::SVG_PlotComponent().
|
inlinevirtualinherited |
Definition at line 161 of file plotter.h.
References PLOTTER::creator.
Referenced by GERBER_WRITER::createDrillFile(), DIALOG_PLOT_SCHEMATIC::createPDFFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), initializePlotter(), DIALOG_PLOT_SCHEMATIC::Plot_1_Page_HPGL(), DIALOG_PLOT_SCHEMATIC::PlotOneSheetDXF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG(), and LIB_EDIT_FRAME::SVG_PlotComponent().
|
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 526 of file PS_plotter.cpp.
References PLOTTER::currentPenWidth, PLOTTER::defaultPenWidth, PLOTTER::GetCurrentLineWidth(), PLOTTER::outputFile, and PLOTTER::userToDeviceSize().
Referenced by Arc(), Circle(), PlotPoly(), Rect(), and Text().
|
overridevirtual |
Postscript supports dashed lines.
Implements PLOTTER.
Definition at line 555 of file PS_plotter.cpp.
References PLOTTER::GetDashGapLenIU(), PLOTTER::GetDashMarkLenIU(), PLOTTER::GetDotMarkLenIU(), PLOTTER::outputFile, PLOTDASHTYPE_DASH, PLOTDASHTYPE_DASHDOT, and PLOTDASHTYPE_DOT.
|
overridevirtualinherited |
Set the default line width.
Used at the beginning and when a width of -1 (USE_DEFAULT_LINE_WIDTH) is requested.
width | is specified in IUs |
Implements PLOTTER.
Definition at line 52 of file PS_plotter.cpp.
References PLOTTER::currentPenWidth, and PLOTTER::defaultPenWidth.
Referenced by DIALOG_PLOT_SCHEMATIC::createPDFFile(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG(), SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), and LIB_EDIT_FRAME::SVG_PlotComponent().
|
inlinevirtualinherited |
Reimplemented in GERBER_PLOTTER.
Definition at line 457 of file plotter.h.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), and initializePlotter().
|
inlinevirtualinherited |
Function SetLayerPolarity sets 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 443 of file plotter.h.
Referenced by PlotOneBoardLayer().
|
inlinevirtualinherited |
Definition at line 118 of file plotter.h.
References PLOTTER::negativeMode.
Referenced by FillNegativeKnockout().
|
virtualinherited |
Reimplemented in PDF_PLOTTER.
Definition at line 589 of file plotter.cpp.
References PLOTTER::pageInfo.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), initializePlotter(), DIALOG_PLOT_SCHEMATIC::Plot_1_Page_HPGL(), DIALOG_PLOT_SCHEMATIC::PlotOneSheetDXF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG(), DIALOG_PLOT_SCHEMATIC::setupPlotPagePDF(), and LIB_EDIT_FRAME::SVG_PlotComponent().
|
inlineinherited |
Set the 'fine' scaling for the postscript engine.
Definition at line 710 of file plotter.h.
References PSLIKE_PLOTTER::plotScaleAdjX, and PSLIKE_PLOTTER::plotScaleAdjY.
Referenced by StartPlotBoard().
|
inlineoverridevirtualinherited |
PS and PDF fully implement native text (for the Latin-1 subset)
Reimplemented from PLOTTER.
Definition at line 699 of file plotter.h.
References PSLIKE_PLOTTER::m_textMode, and PLOTTEXTMODE_DEFAULT.
Referenced by SVG_PLOTTER::SVG_PLOTTER().
|
inlinevirtualinherited |
Definition at line 166 of file plotter.h.
References PLOTTER::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 410 of file PS_plotter.cpp.
References PAGE_INFO::GetSizeMils(), PLOTTER::iuPerDeviceUnit, PLOTTER::m_IUsPerDecimil, PLOTTER::m_plotMirror, PLOTTER::outputFile, PLOTTER::pageInfo, PLOTTER::paperSize, PLOTTER::plotOffset, PLOTTER::plotScale, and PSLIKE_PLOTTER::SetDefaultLineWidth().
Referenced by DIALOG_PLOT_SCHEMATIC::plotOneSheetPS().
|
protectedinherited |
Definition at line 457 of file plotter.cpp.
References AddAngles(), PLOTTER::Arc(), PLOTTER::currentPenWidth, PLOTTER::FinishTo(), PLOTTER::MoveTo(), NO_FILL, RotatePoint(), and PLOTTER::SetCurrentLineWidth().
Referenced by HPGL_PLOTTER::FlashPadOval(), PSLIKE_PLOTTER::FlashPadOval(), GERBER_PLOTTER::FlashPadOval(), and DXF_PLOTTER::FlashPadOval().
|
inlinevirtualinherited |
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 GERBER_PLOTTER, and SVG_PLOTTER.
Definition at line 469 of file plotter.h.
Referenced by SCH_COMPONENT::Plot(), PlotSilkScreen(), and PlotStandardLayer().
|
overridevirtual |
The code within this function (and the CloseFilePS function) creates postscript files whose contents comply with Adobe's Document Structuring Convention, as documented by assorted details described within the following URLs:
http://en.wikipedia.org/wiki/Document_Structuring_Conventions http://partners.adobe.com/public/developer/en/ps/5001.DSC_Spec.pdf
BBox is the boundary box (position and size of the "client rectangle" for drawings (page - margins) in mils (0.001 inch)
Implements PLOTTER.
Definition at line 811 of file PS_plotter.cpp.
References PLOTTER::creator, PLOTTER::defaultPenWidth, PLOTTER::filename, PAGE_INFO::GetHeightMils(), PAGE_INFO::GetSizeMils(), PAGE_INFO::GetType(), PAGE_INFO::GetWidthMils(), PAGE_INFO::IsCustom(), PAGE_INFO::IsPortrait(), KiROUND(), PLOTTER::outputFile, PLOTTER::pageInfo, PSLIKE_PLOTTER::plotScaleAdjX, PSLIKE_PLOTTER::plotScaleAdjY, TO_UTF8, and PLOTTER::userToDeviceSize().
Referenced by DIALOG_PLOT_SCHEMATIC::plotOneSheetPS().
|
overridevirtual |
Draws text with the plotter.
Function PLOTTER::Text same as GRText, but plot graphic text insteed of draw it.
For convenience it accept the color to use for specific plotters (GERBER) aData is used to pass extra parameters
aPos | = text position (according to aH_justify, aV_justify) |
aColor | (COLOR4D) = text color |
aText | = text to draw |
aOrient | = angle in 0.1 degree |
aSize | = text size (size.x or size.y can be < 0 for mirrored texts) |
aH_justify | = horizontal justification (Left, center, right) |
aV_justify | = vertical justification (bottom, center, top) |
aWidth | = line width (pen width) (default = 0) if width < 0 : draw segments in sketch mode, width = abs(width) Use a value min(aSize.x, aSize.y) / 5 for a bold text |
aItalic | = true to simulate an italic font |
aBold | = true to use a bold font Useful only with default width value (aWidth = 0) |
aMultilineAllowed | = true to plot text as multiline, otherwise single line |
aData | = a parameter used by some plotters in SetCurrentLineWidth(), not directly used here. |
Reimplemented from PLOTTER.
Definition at line 979 of file PS_plotter.cpp.
References PSLIKE_PLOTTER::computeTextParameters(), PSLIKE_PLOTTER::fputsPostscriptString(), i, KiROUND(), PLOTTER::m_plotMirror, PSLIKE_PLOTTER::m_textMode, PLOTTER::outputFile, PLOTTEXTMODE_PHANTOM, PSLIKE_PLOTTER::postscriptOverlinePositions(), PSLIKE_PLOTTER::SetColor(), SetCurrentLineWidth(), PLOTTER::Text(), PLOTTER::userToDeviceCoordinates(), PLOTTER::userToDeviceSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
virtualinherited |
Reimplemented in GERBER_PLOTTER.
Definition at line 522 of file plotter.cpp.
References PLOTTER::Arc(), PLOTTER::currentPenWidth, FILLED, NO_FILL, and PLOTTER::SetCurrentLineWidth().
Referenced by BRDITEMS_PLOTTER::Plot_1_EdgeModule(), and BRDITEMS_PLOTTER::PlotDrawSegment().
|
virtualinherited |
Reimplemented in GERBER_PLOTTER.
Definition at line 560 of file plotter.cpp.
References PLOTTER::Circle(), PLOTTER::currentPenWidth, FILLED, NO_FILL, and PLOTTER::SetCurrentLineWidth().
Referenced by BRDITEMS_PLOTTER::Plot_1_EdgeModule(), and BRDITEMS_PLOTTER::PlotDrawSegment().
|
virtualinherited |
Reimplemented in GERBER_PLOTTER.
Definition at line 538 of file plotter.cpp.
References PLOTTER::currentPenWidth, FILLED, NO_FILL, PLOTTER::Rect(), and PLOTTER::SetCurrentLineWidth().
|
virtualinherited |
Reimplemented in DXF_PLOTTER, GERBER_PLOTTER, and HPGL_PLOTTER.
Definition at line 505 of file plotter.cpp.
References FILLED, PLOTTER::FinishTo(), PLOTTER::MoveTo(), PLOTTER::segmentAsOval(), and PLOTTER::SetCurrentLineWidth().
Referenced by PSLIKE_PLOTTER::FlashPadOval(), BRDITEMS_PLOTTER::Plot_1_EdgeModule(), BRDITEMS_PLOTTER::PlotDrawSegment(), BRDITEMS_PLOTTER::PlotFilledAreas(), PlotLayerOutlines(), and PlotStandardLayer().
|
protectedvirtualinherited |
Modifies 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 98 of file plotter.cpp.
References PLOTTER::iuPerDeviceUnit, PLOTTER::m_mirrorIsHorizontal, PLOTTER::m_plotMirror, PLOTTER::m_yaxisReversed, PLOTTER::paperSize, PLOTTER::plotOffset, and PLOTTER::plotScale.
Referenced by HPGL_PLOTTER::Arc(), Arc(), PDF_PLOTTER::Arc(), SVG_PLOTTER::Arc(), GERBER_PLOTTER::Arc(), DXF_PLOTTER::Arc(), SVG_PLOTTER::BezierCurve(), Circle(), PDF_PLOTTER::Circle(), SVG_PLOTTER::Circle(), DXF_PLOTTER::Circle(), PSLIKE_PLOTTER::computeTextParameters(), HPGL_PLOTTER::FlashPadCircle(), GERBER_PLOTTER::FlashPadCircle(), GERBER_PLOTTER::FlashPadOval(), GERBER_PLOTTER::FlashPadRect(), GERBER_PLOTTER::FlashRegularPolygon(), HPGL_PLOTTER::PenTo(), PenTo(), PDF_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), GERBER_PLOTTER::PenTo(), DXF_PLOTTER::PenTo(), PlotImage(), PDF_PLOTTER::PlotImage(), PlotPoly(), PDF_PLOTTER::PlotPoly(), SVG_PLOTTER::PlotPoly(), HPGL_PLOTTER::Rect(), Rect(), PDF_PLOTTER::Rect(), SVG_PLOTTER::Rect(), Text(), SVG_PLOTTER::Text(), and DXF_PLOTTER::Text().
|
protectedvirtualinherited |
Modifies size according to the plotter scale factors (wxSize version, returns a DPOINT)
Definition at line 123 of file plotter.cpp.
References PLOTTER::iuPerDeviceUnit, and PLOTTER::plotScale.
Referenced by Arc(), SVG_PLOTTER::Arc(), DXF_PLOTTER::Arc(), HPGL_PLOTTER::Circle(), Circle(), PDF_PLOTTER::Circle(), SVG_PLOTTER::Circle(), DXF_PLOTTER::Circle(), PSLIKE_PLOTTER::computeTextParameters(), HPGL_PLOTTER::FlashPadCircle(), PLOTTER::GetDashGapLenIU(), PLOTTER::GetDashMarkLenIU(), PLOTTER::GetDotMarkLenIU(), PDF_PLOTTER::PlotImage(), HPGL_PLOTTER::SetCurrentLineWidth(), SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::setSVGPlotStyle(), PDF_PLOTTER::StartPage(), HPGL_PLOTTER::StartPlot(), StartPlot(), Text(), PDF_PLOTTER::Text(), SVG_PLOTTER::Text(), and DXF_PLOTTER::Text().
|
protectedvirtualinherited |
Modifies size according to the plotter scale factors (simple double version)
Definition at line 130 of file plotter.cpp.
References PLOTTER::iuPerDeviceUnit, and PLOTTER::plotScale.
|
protectedinherited |
Definition at line 581 of file plotter.h.
Referenced by PLOTTER::GetColorMode(), PlotImage(), PDF_PLOTTER::PlotImage(), PLOTTER::PLOTTER(), PSLIKE_PLOTTER::SetColor(), DXF_PLOTTER::SetColor(), and PLOTTER::SetColorMode().
|
protectedinherited |
Definition at line 589 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), PLOTTER::SetCreator(), StartPlot(), SVG_PLOTTER::StartPlot(), and GERBER_PLOTTER::StartPlot().
|
protectedinherited |
Definition at line 584 of file plotter.h.
Referenced by GERBER_PLOTTER::FlashPadCircle(), GERBER_PLOTTER::FlashPadRect(), PLOTTER::GetCurrentLineWidth(), PLOTTER::PLOTTER(), HPGL_PLOTTER::SetCurrentLineWidth(), SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), GERBER_PLOTTER::SetCurrentLineWidth(), DXF_PLOTTER::SetCurrentLineWidth(), PSLIKE_PLOTTER::SetDefaultLineWidth(), PLOTTER::sketchOval(), SVG_PLOTTER::Text(), PLOTTER::ThickArc(), GERBER_PLOTTER::ThickArc(), PLOTTER::ThickCircle(), GERBER_PLOTTER::ThickCircle(), PLOTTER::ThickRect(), and GERBER_PLOTTER::ThickRect().
|
protectedinherited |
true to generate a negative image (PS mode mainly)
Definition at line 583 of file plotter.h.
Referenced by PLOTTER::PLOTTER(), SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), GERBER_PLOTTER::SetCurrentLineWidth(), PSLIKE_PLOTTER::SetDefaultLineWidth(), GERBER_PLOTTER::SetDefaultLineWidth(), DXF_PLOTTER::SetDefaultLineWidth(), PDF_PLOTTER::StartPage(), and StartPlot().
|
staticinherited |
Definition at line 101 of file plotter.h.
Referenced by GERBER_PLOTTER::FlashPadCircle(), GERBER_PLOTTER::SetCurrentLineWidth(), GERBER_PLOTTER::ThickArc(), GERBER_PLOTTER::ThickCircle(), and GERBER_PLOTTER::ThickRect().
|
protectedinherited |
Definition at line 590 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), PLOTTER::OpenFile(), PDF_PLOTTER::OpenFile(), PDF_PLOTTER::startPdfStream(), StartPlot(), SVG_PLOTTER::StartPlot(), and GERBER_PLOTTER::StartPlot().
|
protectedinherited |
Device scale (from IUs to plotter device units - usually decimils)
Definition at line 566 of file plotter.h.
Referenced by PLOTTER::PLOTTER(), GERBER_PLOTTER::SetGerberCoordinatesFormat(), HPGL_PLOTTER::SetViewport(), SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), DXF_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), PLOTTER::userToDeviceCoordinates(), and PLOTTER::userToDeviceSize().
|
protectedinherited |
Definition at line 596 of file plotter.h.
Referenced by PLOTTER::AddLineToHeader(), PLOTTER::ClearHeaderLinesList(), and GERBER_PLOTTER::StartPlot().
|
protectedinherited |
Definition at line 563 of file plotter.h.
Referenced by PLOTTER::GetIUsPerDecimil(), PLOTTER::GetPlotterArcHighDef(), PLOTTER::GetPlotterArcLowDef(), PLOTTER::PLOTTER(), GERBER_PLOTTER::SetGerberCoordinatesFormat(), HPGL_PLOTTER::SetViewport(), SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), DXF_PLOTTER::SetViewport(), SVG_PLOTTER::StartPlot(), and GERBER_PLOTTER::writeApertureList().
|
protectedinherited |
Definition at line 574 of file plotter.h.
Referenced by Arc(), SVG_PLOTTER::Arc(), PLOTTER::PLOTTER(), and PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
X axis orientation (SVG) and plot mirrored (only for PS, PDF HPGL and SVG)
Definition at line 573 of file plotter.h.
Referenced by HPGL_PLOTTER::Arc(), Arc(), SVG_PLOTTER::Arc(), PSLIKE_PLOTTER::computeTextParameters(), PLOTTER::PLOTTER(), HPGL_PLOTTER::SetViewport(), SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), DXF_PLOTTER::SetViewport(), Text(), PDF_PLOTTER::Text(), and PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
How to draw text.
Definition at line 778 of file plotter.h.
Referenced by PS_PLOTTER(), PSLIKE_PLOTTER::SetTextMode(), and Text().
|
protectedinherited |
true to mirror horizontally (else vertically)
Definition at line 575 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 425 of file plotter.h.
Referenced by PLOTTER::Marker().
|
protectedinherited |
true to plot in color, false to plot in black and white
Definition at line 582 of file plotter.h.
Referenced by PLOTTER::PLOTTER(), PSLIKE_PLOTTER::SetColor(), and PLOTTER::SetNegative().
|
protectedinherited |
true if the Y axis is top to bottom (SVG)
Output file
Definition at line 578 of file plotter.h.
Referenced by HPGL_PLOTTER::Arc(), Arc(), SVG_PLOTTER::Arc(), GERBER_PLOTTER::Arc(), DXF_PLOTTER::Arc(), SVG_PLOTTER::BezierCurve(), HPGL_PLOTTER::Circle(), Circle(), SVG_PLOTTER::Circle(), DXF_PLOTTER::Circle(), GERBER_PLOTTER::ClearAllAttributes(), GERBER_PLOTTER::clearNetAttribute(), PDF_PLOTTER::ClosePage(), PDF_PLOTTER::closePdfObject(), PDF_PLOTTER::closePdfStream(), GERBER_PLOTTER::emitDcode(), emitSetRGBColor(), SVG_PLOTTER::EndBlock(), HPGL_PLOTTER::EndPlot(), EndPlot(), PDF_PLOTTER::EndPlot(), SVG_PLOTTER::EndPlot(), GERBER_PLOTTER::EndPlot(), DXF_PLOTTER::EndPlot(), HPGL_PLOTTER::FlashPadCircle(), DXF_PLOTTER::FlashPadCircle(), HPGL_PLOTTER::FlashPadOval(), PSLIKE_PLOTTER::FlashPadOval(), GERBER_PLOTTER::FlashPadOval(), DXF_PLOTTER::FlashPadOval(), GERBER_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadTrapez(), GERBER_PLOTTER::formatNetAttribute(), PLOTTER::OpenFile(), PDF_PLOTTER::OpenFile(), HPGL_PLOTTER::penControl(), HPGL_PLOTTER::PenTo(), PenTo(), SVG_PLOTTER::PenTo(), GERBER_PLOTTER::PenTo(), DXF_PLOTTER::PenTo(), GERBER_PLOTTER::PlotGerberRegion(), PlotImage(), HPGL_PLOTTER::PlotPoly(), PlotPoly(), SVG_PLOTTER::PlotPoly(), GERBER_PLOTTER::PlotPoly(), PLOTTER::PLOTTER(), HPGL_PLOTTER::Rect(), Rect(), SVG_PLOTTER::Rect(), DXF_PLOTTER::Rect(), GERBER_PLOTTER::selectAperture(), SetCurrentLineWidth(), HPGL_PLOTTER::SetDash(), SetDash(), GERBER_PLOTTER::SetLayerPolarity(), SVG_PLOTTER::setSVGPlotStyle(), SetViewport(), SVG_PLOTTER::StartBlock(), PDF_PLOTTER::StartPage(), PDF_PLOTTER::startPdfObject(), PDF_PLOTTER::startPdfStream(), HPGL_PLOTTER::StartPlot(), StartPlot(), PDF_PLOTTER::StartPlot(), SVG_PLOTTER::StartPlot(), GERBER_PLOTTER::StartPlot(), DXF_PLOTTER::StartPlot(), Text(), SVG_PLOTTER::Text(), DXF_PLOTTER::Text(), HPGL_PLOTTER::ThickSegment(), GERBER_PLOTTER::writeApertureList(), and PLOTTER::~PLOTTER().
|
protectedinherited |
Definition at line 592 of file plotter.h.
Referenced by PDF_PLOTTER::ClosePage(), PLOTTER::SetPageSettings(), PDF_PLOTTER::SetPageSettings(), HPGL_PLOTTER::SetViewport(), SetViewport(), SVG_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), and StartPlot().
|
protectedinherited |
Paper size in IU - not in mils.
Definition at line 594 of file plotter.h.
Referenced by HPGL_PLOTTER::SetViewport(), SetViewport(), SVG_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), DXF_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), SVG_PLOTTER::StartPlot(), and PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
Last pen positions; set to -1,-1 when the pen is at rest.
Definition at line 588 of file plotter.h.
Referenced by HPGL_PLOTTER::penControl(), HPGL_PLOTTER::PenTo(), PenTo(), PDF_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), and DXF_PLOTTER::PenTo().
|
protectedinherited |
Current pen state: 'U', 'D' or 'Z' (see PenTo)
Definition at line 586 of file plotter.h.
Referenced by HPGL_PLOTTER::penControl(), PenTo(), PDF_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), GERBER_PLOTTER::PenTo(), and PLOTTER::PLOTTER().
|
protectedinherited |
Plot offset (in IUs)
Definition at line 569 of file plotter.h.
Referenced by HPGL_PLOTTER::SetViewport(), SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), DXF_PLOTTER::SetViewport(), and PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
Plot scale - chosen by the user (even implicitly with 'fit in a4')
Definition at line 557 of file plotter.h.
Referenced by PLOTTER::PLOTTER(), HPGL_PLOTTER::SetViewport(), SetViewport(), PDF_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), DXF_PLOTTER::SetViewport(), PLOTTER::userToDeviceCoordinates(), PLOTTER::userToDeviceSize(), and GERBER_PLOTTER::writeApertureList().
|
protectedinherited |
Fine user scale adjust ( = 1.0 if no correction)
Definition at line 775 of file plotter.h.
Referenced by PSLIKE_PLOTTER::SetScaleAdjust(), PDF_PLOTTER::StartPage(), and StartPlot().
|
protectedinherited |
Definition at line 775 of file plotter.h.
Referenced by PSLIKE_PLOTTER::SetScaleAdjust(), PDF_PLOTTER::StartPage(), and StartPlot().
|
staticprotectedinherited |
Height of the postscript font (from the AFM)
Definition at line 769 of file plotter.h.
Referenced by PSLIKE_PLOTTER::computeTextParameters(), PSLIKE_PLOTTER::postscriptOverlinePositions(), and PSLIKE_PLOTTER::returnPostscriptTextWidth().
|
protectedinherited |
Definition at line 591 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), and PLOTTER::SetTitle().
|
staticinherited |
Definition at line 102 of file plotter.h.
Referenced by 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(), GERBER_PLOTTER::FlashPadTrapez(), HPGL_PLOTTER::PlotPoly(), PlotWorkSheet(), GERBER_PLOTTER::ThickArc(), GERBER_PLOTTER::ThickCircle(), GERBER_PLOTTER::ThickRect(), and GERBER_PLOTTER::ThickSegment().