KiCad PCB EDA Suite
plotter.h
Go to the documentation of this file.
1 /*
2  * This program source code file is part of KiCad, a free EDA CAD application.
3  *
4  * Copyright (C) 2016 Jean-Pierre Charras, jp.charras at wanadoo.fr
5  * Copyright (C) 2016-2020 KiCad Developers, see AUTHORS.txt for contributors.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, you may find one here:
19  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20  * or you may search the http://www.gnu.org website for the version 2 license,
21  * or you may write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23  */
24 
31 #ifndef PLOT_COMMON_H_
32 #define PLOT_COMMON_H_
33 
34 #include <fill_type.h>
35 #include <vector>
36 #include <math/box2.h>
37 #include <gr_text.h>
38 #include <page_info.h>
39 #include <outline_mode.h>
40 #include <gal/color4d.h>
41 #include <eda_item.h> // FILL_TYPE
42 #include <render_settings.h>
43 
44 class COLOR_SETTINGS;
45 class SHAPE_POLY_SET;
46 class SHAPE_LINE_CHAIN;
48 class PROJECT;
49 
51 
52 
53 // Must be in the same order as the drop-down list in the plot dialog inside pcbnew
54 // Units (inch/mm for DXF plotter
55 enum class DXF_UNITS
56 {
57  INCHES = 0,
58  MILLIMETERS = 1
59 };
60 
61 
67 enum class PLOT_FORMAT
68 {
69  UNDEFINED = -1,
70  FIRST_FORMAT = 0,
72  GERBER,
73  POST,
74  DXF,
75  PDF,
76  SVG,
78 };
79 
93 enum class PLOT_TEXT_MODE
94 {
95  STROKE,
96  NATIVE,
97  PHANTOM,
98  DEFAULT
99 };
100 
104 enum class PLOT_DASH_TYPE
105 {
106  DEFAULT = -1,
107  SOLID = 0,
108  FIRST_TYPE = SOLID,
109  DASH,
110  DOT,
111  DASHDOT,
113 };
114 
121 class PLOTTER
122 {
123 public:
124  // These values are used as flag for pen or aperture selection
125  static const int DO_NOT_SET_LINE_WIDTH = -2; // Skip selection
126  static const int USE_DEFAULT_LINE_WIDTH = -1; // use the default pen
127 
128  PLOTTER();
129 
130  virtual ~PLOTTER();
131 
137  virtual PLOT_FORMAT GetPlotterType() const = 0;
138 
139  virtual bool StartPlot() = 0;
140  virtual bool EndPlot() = 0;
141 
142  virtual void SetNegative( bool aNegative )
143  {
144  m_negativeMode = aNegative;
145  }
146 
151  virtual void SetColorMode( bool aColorMode ) { m_colorMode = aColorMode; }
152  bool GetColorMode() const { return m_colorMode; }
153 
154  void SetRenderSettings( RENDER_SETTINGS* aSettings ) { m_renderSettings = aSettings; }
156 
157  virtual void SetPageSettings( const PAGE_INFO& aPageSettings ) { m_pageInfo = aPageSettings; }
159 
165  virtual void SetCurrentLineWidth( int width, void* aData = NULL ) = 0;
166  virtual int GetCurrentLineWidth() const { return m_currentPenWidth; }
167 
168  virtual void SetColor( COLOR4D color ) = 0;
169 
170  virtual void SetDash( PLOT_DASH_TYPE dashed ) = 0;
171 
172  virtual void SetCreator( const wxString& aCreator ) { m_creator = aCreator; }
173 
174  virtual void SetTitle( const wxString& aTitle ) { m_title = aTitle; }
175 
180  void AddLineToHeader( const wxString& aExtraString )
181  {
182  m_headerExtraLines.Add( aExtraString );
183  }
184 
189  {
190  m_headerExtraLines.Clear();
191  }
192 
202  virtual void SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
203  double aScale, bool aMirror ) = 0;
204 
213  virtual bool OpenFile( const wxString& aFullFilename );
214 
220  double GetIUsPerDecimil() const { return m_IUsPerDecimil; }
221 
222  int GetPlotterArcLowDef() const { return m_IUsPerDecimil * 8; }
223  int GetPlotterArcHighDef() const { return m_IUsPerDecimil * 2; }
224 
225  // Low level primitives
226  virtual void Rect( const wxPoint& p1, const wxPoint& p2, FILL_TYPE fill,
227  int width = USE_DEFAULT_LINE_WIDTH ) = 0;
228  virtual void Circle( const wxPoint& pos, int diametre, FILL_TYPE fill,
229  int width = USE_DEFAULT_LINE_WIDTH ) = 0;
230 
234  virtual void Arc( const wxPoint& centre, double StAngle, double EndAngle,
235  int rayon, FILL_TYPE fill, int width = USE_DEFAULT_LINE_WIDTH );
236 
242  virtual void BezierCurve( const wxPoint& aStart, const wxPoint& aControl1,
243  const wxPoint& aControl2, const wxPoint& aEnd,
244  int aTolerance,
245  int aLineThickness = USE_DEFAULT_LINE_WIDTH );
246 
254  virtual void PenTo( const wxPoint& pos, char plume ) = 0;
255 
256  // Convenience functions for PenTo
257  void MoveTo( const wxPoint& pos )
258  {
259  PenTo( pos, 'U' );
260  }
261 
262  void LineTo( const wxPoint& pos )
263  {
264  PenTo( pos, 'D' );
265  }
266 
267  void FinishTo( const wxPoint& pos )
268  {
269  PenTo( pos, 'D' );
270  PenTo( pos, 'Z' );
271  }
272 
273  void PenFinish()
274  {
275  // The point is not important with Z motion
276  PenTo( wxPoint( 0, 0 ), 'Z' );
277  }
278 
286  virtual void PlotPoly( const std::vector< wxPoint >& aCornerList, FILL_TYPE aFill,
287  int aWidth = USE_DEFAULT_LINE_WIDTH, void * aData = NULL ) = 0;
288 
297  virtual void PlotPoly( const SHAPE_LINE_CHAIN& aCornerList, FILL_TYPE aFill,
298  int aWidth = USE_DEFAULT_LINE_WIDTH, void * aData = NULL );
299 
311  virtual void PlotImage( const wxImage & aImage, const wxPoint& aPos,
312  double aScaleFactor );
313 
314  // Higher level primitives -- can be drawn as line, sketch or 'filled'
315  virtual void ThickSegment( const wxPoint& start, const wxPoint& end, int width,
316  OUTLINE_MODE tracemode, void* aData );
317  virtual void ThickArc( const wxPoint& centre, double StAngle, double EndAngle,
318  int rayon, int width, OUTLINE_MODE tracemode, void* aData );
319  virtual void ThickRect( const wxPoint& p1, const wxPoint& p2, int width,
320  OUTLINE_MODE tracemode, void* aData );
321  virtual void ThickCircle( const wxPoint& pos, int diametre, int width,
322  OUTLINE_MODE tracemode, void* aData );
323  virtual void FilledCircle( const wxPoint& pos, int diametre,
324  OUTLINE_MODE tracemode, void* aData );
325 
326 
327  // Flash primitives
328 
335  virtual void FlashPadCircle( const wxPoint& aPadPos, int aDiameter,
336  OUTLINE_MODE aTraceMode, void* aData ) = 0;
337 
345  virtual void FlashPadOval( const wxPoint& aPadPos, const wxSize& aSize, double aPadOrient,
346  OUTLINE_MODE aTraceMode, void* aData ) = 0;
347 
355  virtual void FlashPadRect( const wxPoint& aPadPos, const wxSize& aSize,
356  double aPadOrient, OUTLINE_MODE aTraceMode, void* aData ) = 0;
357 
366  virtual void FlashPadRoundRect( const wxPoint& aPadPos, const wxSize& aSize,
367  int aCornerRadius, double aOrient,
368  OUTLINE_MODE aTraceMode, void* aData ) = 0;
369 
378  virtual void FlashPadCustom( const wxPoint& aPadPos, const wxSize& aSize,
379  double aPadOrient, SHAPE_POLY_SET* aPolygons,
380  OUTLINE_MODE aTraceMode, void* aData ) = 0;
381 
391  virtual void FlashPadTrapez( const wxPoint& aPadPos, const wxPoint *aCorners,
392  double aPadOrient, OUTLINE_MODE aTraceMode,
393  void* aData ) = 0;
394 
404  virtual void FlashRegularPolygon( const wxPoint& aShapePos, int aDiameter, int aCornerCount,
405  double aOrient, OUTLINE_MODE aTraceMode, void* aData ) = 0 ;
406 
411  virtual void Text( const wxPoint& aPos,
412  const COLOR4D aColor,
413  const wxString& aText,
414  double aOrient,
415  const wxSize& aSize,
416  enum EDA_TEXT_HJUSTIFY_T aH_justify,
417  enum EDA_TEXT_VJUSTIFY_T aV_justify,
418  int aWidth,
419  bool aItalic,
420  bool aBold,
421  bool aMultilineAllowed = false,
422  void* aData = NULL );
423 
427  static const unsigned MARKER_COUNT = 58;
428 
434  void Marker( const wxPoint& position, int diametre, unsigned aShapeId );
435 
444  virtual void SetLayerPolarity( bool aPositive )
445  {
446  // NOP for most plotters
447  }
448 
453  virtual void SetTextMode( PLOT_TEXT_MODE mode )
454  {
455  // NOP for most plotters.
456  }
457 
458  virtual void SetGerberCoordinatesFormat( int aResolution, bool aUseInches = false )
459  {
460  // NOP for most plotters. Only for Gerber plotter
461  }
462 
463  virtual void SetSvgCoordinatesFormat( unsigned aResolution, bool aUseInches = false )
464  {
465  // NOP for most plotters. Only for SVG plotter
466  }
467 
475  virtual void StartBlock( void* aData ) {}
476 
484  virtual void EndBlock( void* aData ) {}
485 
486 
487 protected:
488  // These are marker subcomponents
492  void markerCircle( const wxPoint& pos, int radius );
493 
497  void markerHBar( const wxPoint& pos, int radius );
498 
502  void markerSlash( const wxPoint& pos, int radius );
503 
507  void markerBackSlash( const wxPoint& pos, int radius );
508 
512  void markerVBar( const wxPoint& pos, int radius );
513 
517  void markerSquare( const wxPoint& position, int radius );
518 
522  void markerLozenge( const wxPoint& position, int radius );
523 
524  // Helper function for sketched filler segment
525 
529  void segmentAsOval( const wxPoint& start, const wxPoint& end, int width,
530  OUTLINE_MODE tracemode );
531 
532  void sketchOval( const wxPoint& pos, const wxSize& size, double orient, int width );
533 
534  // Coordinate and scaling conversion functions
535 
541  virtual DPOINT userToDeviceCoordinates( const wxPoint& aCoordinate );
542 
547  virtual DPOINT userToDeviceSize( const wxSize& size );
548 
553  virtual double userToDeviceSize( double size ) const;
554 
555  double GetDotMarkLenIU() const;
556 
557  double GetDashMarkLenIU() const;
558 
559  double GetDashGapLenIU() const;
560 
561 protected: // variables used in most of plotters:
563  double m_plotScale;
564 
565  /* Caller scale (how many IUs in a decimil - always); it's a double
566  * because in Eeschema there are 0.1 IUs in a decimil (Eeschema
567  * always works in mils internally) while PcbNew can work in decimil
568  * or nanometers, so this value would be >= 1 */
570 
571  double m_iuPerDeviceUnit; // Device scale (from IUs to plotter device units;
572  // usually decimils)
573  wxPoint m_plotOffset; // Plot offset (in IUs)
574  bool m_plotMirror; // X axis orientation (SVG)
575  // and plot mirrored (only for PS, PDF HPGL and SVG)
576  bool m_mirrorIsHorizontal; // true to mirror horizontally (else vertically)
577  bool m_yaxisReversed; // true if the Y axis is top to bottom (SVG)
578 
581 
582  // Pen handling
583  bool m_colorMode; // true to plot in color, otherwise black & white
584  bool m_negativeMode; // true to generate a negative image (PS mode mainly)
586  char m_penState; // current pen state: 'U', 'D' or 'Z' (see PenTo)
587  wxPoint m_penLastpos; // last pen position; -1,-1 when pen is at rest
588 
589  wxString m_creator;
590  wxString m_filename;
591  wxString m_title;
593  wxSize m_paperSize; // Paper size in IU - not in mils
594 
595  wxArrayString m_headerExtraLines; // a set of string to print in header file
596 
598 };
599 
600 
601 class TITLE_BLOCK;
602 
603 void PlotDrawingSheet( PLOTTER* plotter, const PROJECT* aProject, const TITLE_BLOCK& aTitleBlock,
604  const PAGE_INFO& aPageInfo, const wxString& aSheetNumber, int aSheetCount,
605  const wxString& aSheetDesc, const wxString& aFilename,
606  COLOR4D aColor = COLOR4D::UNSPECIFIED, bool aIsFirstPage = true );
607 
610 wxString GetDefaultPlotExtension( PLOT_FORMAT aFormat );
611 
612 
613 #endif // PLOT_COMMON_H_
void segmentAsOval(const wxPoint &start, const wxPoint &end, int width, OUTLINE_MODE tracemode)
Convert a thick segment and plot it as an oval.
Definition: plotter.cpp:437
void FinishTo(const wxPoint &pos)
Definition: plotter.h:267
OUTLINE_MODE
Definition: outline_mode.h:24
double GetDotMarkLenIU() const
Definition: plotter.cpp:139
void markerHBar(const wxPoint &pos, int radius)
Plot a - bar centered on the position.
Definition: plotter.cpp:303
virtual void SetCreator(const wxString &aCreator)
Definition: plotter.h:172
EDA_TEXT_HJUSTIFY_T
Definition: eda_text.h:61
void PenFinish()
Definition: plotter.h:273
virtual void FlashPadRoundRect(const wxPoint &aPadPos, const wxSize &aSize, int aCornerRadius, double aOrient, OUTLINE_MODE aTraceMode, void *aData)=0
Container for project specific data.
Definition: project.h:62
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...
Definition: plotter.h:484
FILL_TYPE
The set of fill types used in plotting or drawing enclosed areas.
Definition: fill_type.h:28
wxString GetDefaultPlotExtension(PLOT_FORMAT aFormat)
Returns the default plot extension for a format.
virtual void ThickCircle(const wxPoint &pos, int diametre, int width, OUTLINE_MODE tracemode, void *aData)
Definition: plotter.cpp:568
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
virtual bool StartPlot()=0
wxString m_filename
Definition: plotter.h:590
virtual void SetColor(COLOR4D color)=0
virtual void Rect(const wxPoint &p1, const wxPoint &p2, FILL_TYPE fill, int width=USE_DEFAULT_LINE_WIDTH)=0
virtual void SetTitle(const wxString &aTitle)
Definition: plotter.h:174
static const unsigned MARKER_COUNT
Draw a marker (used for the drill map)
Definition: plotter.h:427
virtual bool OpenFile(const wxString &aFullFilename)
Open or create the plot file aFullFilename.
Definition: plotter.cpp:76
virtual void SetColorMode(bool aColorMode)
Plot in B/W or color.
Definition: plotter.h:151
virtual void SetLayerPolarity(bool aPositive)
Set the current Gerber layer polarity to positive or negative by writing %LPD*% or %LPC*% to the Gerb...
Definition: plotter.h:444
int color
Definition: DXF_plotter.cpp:60
virtual void FlashPadOval(const wxPoint &aPadPos, const wxSize &aSize, double aPadOrient, OUTLINE_MODE aTraceMode, void *aData)=0
void SetRenderSettings(RENDER_SETTINGS *aSettings)
Definition: plotter.h:154
FILE * m_outputFile
Output file.
Definition: plotter.h:580
double m_iuPerDeviceUnit
Definition: plotter.h:571
virtual void StartBlock(void *aData)
calling this function allows one to define the beginning of a group of drawing items,...
Definition: plotter.h:475
virtual void PenTo(const wxPoint &pos, char plume)=0
moveto/lineto primitive, moves the 'pen' to the specified direction
virtual void ThickRect(const wxPoint &p1, const wxPoint &p2, int width, OUTLINE_MODE tracemode, void *aData)
Definition: plotter.cpp:546
virtual void FilledCircle(const wxPoint &pos, int diametre, OUTLINE_MODE tracemode, void *aData)
Definition: plotter.cpp:584
virtual void PlotPoly(const std::vector< wxPoint > &aCornerList, FILL_TYPE aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void *aData=NULL)=0
Draw a polygon ( filled or not )
virtual void Arc(const wxPoint &centre, double StAngle, double EndAngle, int rayon, FILL_TYPE fill, int width=USE_DEFAULT_LINE_WIDTH)
Generic fallback: arc rendered as a polyline.
Definition: plotter.cpp:157
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...
Definition: plotter.cpp:203
virtual ~PLOTTER()
Definition: plotter.cpp:67
void AddLineToHeader(const wxString &aExtraString)
Add a line to the list of free lines to print at the beginning of the file.
Definition: plotter.h:180
Information which can be added in a gerber file as attribute of an object.
double m_IUsPerDecimil
Definition: plotter.h:569
Hold the information shown in the lower right corner of a plot, printout, or editing view.
Definition: title_block.h:40
wxArrayString m_headerExtraLines
Definition: plotter.h:595
virtual void ThickSegment(const wxPoint &start, const wxPoint &end, int width, OUTLINE_MODE tracemode, void *aData)
Definition: plotter.cpp:506
virtual void SetGerberCoordinatesFormat(int aResolution, bool aUseInches=false)
Definition: plotter.h:458
virtual void SetSvgCoordinatesFormat(unsigned aResolution, bool aUseInches=false)
Definition: plotter.h:463
PLOTTER()
Definition: plotter.cpp:50
void PlotDrawingSheet(PLOTTER *plotter, const PROJECT *aProject, const TITLE_BLOCK &aTitleBlock, const PAGE_INFO &aPageInfo, const wxString &aSheetNumber, int aSheetCount, const wxString &aSheetDesc, const wxString &aFilename, COLOR4D aColor=COLOR4D::UNSPECIFIED, bool aIsFirstPage=true)
virtual void FlashPadTrapez(const wxPoint &aPadPos, const wxPoint *aCorners, double aPadOrient, OUTLINE_MODE aTraceMode, void *aData)=0
Flash a trapezoidal pad.
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)
Draws text with the plotter.
Definition: gr_text.cpp:219
double GetDashGapLenIU() const
Definition: plotter.cpp:151
double m_plotScale
Plot scale - chosen by the user (even implicitly with 'fit in a4')
Definition: plotter.h:563
virtual int GetCurrentLineWidth() const
Definition: plotter.h:166
bool m_yaxisReversed
Definition: plotter.h:577
virtual bool EndPlot()=0
void LineTo(const wxPoint &pos)
Definition: plotter.h:262
static const int USE_DEFAULT_LINE_WIDTH
Definition: plotter.h:126
virtual void FlashPadRect(const wxPoint &aPadPos, const wxSize &aSize, double aPadOrient, OUTLINE_MODE aTraceMode, void *aData)=0
bool m_plotMirror
Definition: plotter.h:574
bool m_colorMode
Definition: plotter.h:583
int m_currentPenWidth
Definition: plotter.h:585
#define NULL
Represent a set of closed polygons.
PLOT_FORMAT
The set of supported output plot formats.
Definition: plotter.h:67
virtual PLOT_FORMAT GetPlotterType() const =0
Returns the effective plot engine in use.
Describe the page size and margins of a paper page on which to eventually print or plot.
Definition: page_info.h:53
wxString m_title
Definition: plotter.h:591
virtual void SetTextMode(PLOT_TEXT_MODE mode)
Change the current text mode.
Definition: plotter.h:453
wxPoint m_penLastpos
Definition: plotter.h:587
double GetIUsPerDecimil() const
The IUs per decimil are an essential scaling factor when plotting; they are set and saved when establ...
Definition: plotter.h:220
RENDER_SETTINGS * m_renderSettings
Definition: plotter.h:597
virtual DPOINT userToDeviceSize(const wxSize &size)
Modifies size according to the plotter scale factors (wxSize version, returns a DPOINT)
Definition: plotter.cpp:124
bool m_negativeMode
Definition: plotter.h:584
virtual void Circle(const wxPoint &pos, int diametre, FILL_TYPE fill, int width=USE_DEFAULT_LINE_WIDTH)=0
virtual void SetNegative(bool aNegative)
Definition: plotter.h:142
void markerSlash(const wxPoint &pos, int radius)
Plot a / bar centered on the position.
Definition: plotter.cpp:310
virtual void SetViewport(const wxPoint &aOffset, double aIusPerDecimil, double aScale, bool aMirror)=0
Set the plot offset and scaling for the current plot.
virtual void FlashRegularPolygon(const wxPoint &aShapePos, int aDiameter, int aCornerCount, double aOrient, OUTLINE_MODE aTraceMode, void *aData)=0
Flash a regular polygon.
void Marker(const wxPoint &position, int diametre, unsigned aShapeId)
Draw a pattern shape number aShapeId, to coord position.
Definition: plotter.cpp:331
PLOT_DASH_TYPE
Dashed line types.
Definition: plotter.h:104
EDA_TEXT_VJUSTIFY_T
Definition: eda_text.h:68
void MoveTo(const wxPoint &pos)
Definition: plotter.h:257
virtual DPOINT userToDeviceCoordinates(const wxPoint &aCoordinate)
Modifies coordinates according to the orientation, scale factor, and offsets trace.
Definition: plotter.cpp:93
int GetPlotterArcLowDef() const
Definition: plotter.h:222
Base plotter engine class.
Definition: plotter.h:121
virtual void PlotImage(const wxImage &aImage, const wxPoint &aPos, double aScaleFactor)
Only PostScript plotters can plot bitmaps.
Definition: plotter.cpp:231
RENDER_SETTINGS * RenderSettings()
Definition: plotter.h:155
wxPoint m_plotOffset
Definition: plotter.h:573
PAGE_INFO m_pageInfo
Definition: plotter.h:592
double GetDashMarkLenIU() const
Definition: plotter.cpp:145
SHAPE_LINE_CHAIN.
void markerLozenge(const wxPoint &position, int radius)
Plot a lozenge centered on the position.
Definition: plotter.cpp:279
void markerCircle(const wxPoint &pos, int radius)
Plot a circle centered on the position.
Definition: plotter.cpp:273
int GetPlotterArcHighDef() const
Definition: plotter.h:223
char m_penState
Definition: plotter.h:586
void ClearHeaderLinesList()
Remove all lines from the list of free lines to print at the beginning of the file.
Definition: plotter.h:188
DXF_UNITS
Definition: plotter.h:55
virtual void ThickArc(const wxPoint &centre, double StAngle, double EndAngle, int rayon, int width, OUTLINE_MODE tracemode, void *aData)
Definition: plotter.cpp:530
virtual void FlashPadCustom(const wxPoint &aPadPos, const wxSize &aSize, double aPadOrient, SHAPE_POLY_SET *aPolygons, OUTLINE_MODE aTraceMode, void *aData)=0
Color settings are a bit different than most of the settings objects in that there can be more than o...
PLOT_TEXT_MODE
Which kind of text to output with the PSLIKE plotters.
Definition: plotter.h:93
static const int DO_NOT_SET_LINE_WIDTH
Definition: plotter.h:125
PAGE_INFO & PageSettings()
Definition: plotter.h:158
void markerVBar(const wxPoint &pos, int radius)
Plot a | bar centered on the position.
Definition: plotter.cpp:324
wxSize m_paperSize
Definition: plotter.h:593
void markerSquare(const wxPoint &position, int radius)
Plot a square centered on the position.
Definition: plotter.cpp:248
void markerBackSlash(const wxPoint &pos, int radius)
Plot a \ bar centered on the position.
Definition: plotter.cpp:317
void sketchOval(const wxPoint &pos, const wxSize &size, double orient, int width)
Definition: plotter.cpp:458
virtual void FlashPadCircle(const wxPoint &aPadPos, int aDiameter, OUTLINE_MODE aTraceMode, void *aData)=0
virtual void SetDash(PLOT_DASH_TYPE dashed)=0
bool m_mirrorIsHorizontal
Definition: plotter.h:576
wxString m_creator
Definition: plotter.h:589
virtual void SetPageSettings(const PAGE_INFO &aPageSettings)
Definition: plotter.h:157
virtual void SetCurrentLineWidth(int width, void *aData=NULL)=0
Set the line width for the next drawing.
A color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:98
bool GetColorMode() const
Definition: plotter.h:152