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 
122 wxPenStyle GetwxPenStyle( PLOT_DASH_TYPE aType );
123 
124 
131 class PLOTTER
132 {
133 public:
134  // These values are used as flag for pen or aperture selection
135  static const int DO_NOT_SET_LINE_WIDTH = -2; // Skip selection
136  static const int USE_DEFAULT_LINE_WIDTH = -1; // use the default pen
137 
138  PLOTTER();
139 
140  virtual ~PLOTTER();
141 
147  virtual PLOT_FORMAT GetPlotterType() const = 0;
148 
149  virtual bool StartPlot() = 0;
150  virtual bool EndPlot() = 0;
151 
152  virtual void SetNegative( bool aNegative )
153  {
154  negativeMode = aNegative;
155  }
156 
161  virtual void SetColorMode( bool aColorMode ) { colorMode = aColorMode; }
162  bool GetColorMode() const { return colorMode; }
163 
164  void SetRenderSettings( RENDER_SETTINGS* aSettings ) { m_renderSettings = aSettings; }
166 
167  virtual void SetPageSettings( const PAGE_INFO& aPageSettings ) { pageInfo = aPageSettings; }
169 
175  virtual void SetCurrentLineWidth( int width, void* aData = NULL ) = 0;
176  virtual int GetCurrentLineWidth() const { return currentPenWidth; }
177 
178  virtual void SetColor( COLOR4D color ) = 0;
179 
180  virtual void SetDash( PLOT_DASH_TYPE dashed ) = 0;
181 
182  virtual void SetCreator( const wxString& aCreator )
183  {
184  creator = aCreator;
185  }
186 
187  virtual void SetTitle( const wxString& aTitle )
188  {
189  title = aTitle;
190  }
191 
196  void AddLineToHeader( const wxString& aExtraString )
197  {
198  m_headerExtraLines.Add( aExtraString );
199  }
200 
205  {
206  m_headerExtraLines.Clear();
207  }
208 
218  virtual void SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
219  double aScale, bool aMirror ) = 0;
220 
229  virtual bool OpenFile( const wxString& aFullFilename );
230 
236  double GetIUsPerDecimil() const { return m_IUsPerDecimil; }
237 
238  int GetPlotterArcLowDef() const { return m_IUsPerDecimil * 8; }
239  int GetPlotterArcHighDef() const { return m_IUsPerDecimil * 2; }
240 
241  // Low level primitives
242  virtual void Rect( const wxPoint& p1, const wxPoint& p2, FILL_TYPE fill,
243  int width = USE_DEFAULT_LINE_WIDTH ) = 0;
244  virtual void Circle( const wxPoint& pos, int diametre, FILL_TYPE fill,
245  int width = USE_DEFAULT_LINE_WIDTH ) = 0;
246 
250  virtual void Arc( const wxPoint& centre, double StAngle, double EndAngle,
251  int rayon, FILL_TYPE fill, int width = USE_DEFAULT_LINE_WIDTH );
252 
258  virtual void BezierCurve( const wxPoint& aStart, const wxPoint& aControl1,
259  const wxPoint& aControl2, const wxPoint& aEnd,
260  int aTolerance,
261  int aLineThickness = USE_DEFAULT_LINE_WIDTH );
262 
270  virtual void PenTo( const wxPoint& pos, char plume ) = 0;
271 
272  // Convenience functions for PenTo
273  void MoveTo( const wxPoint& pos )
274  {
275  PenTo( pos, 'U' );
276  }
277 
278  void LineTo( const wxPoint& pos )
279  {
280  PenTo( pos, 'D' );
281  }
282 
283  void FinishTo( const wxPoint& pos )
284  {
285  PenTo( pos, 'D' );
286  PenTo( pos, 'Z' );
287  }
288 
289  void PenFinish()
290  {
291  // The point is not important with Z motion
292  PenTo( wxPoint( 0, 0 ), 'Z' );
293  }
294 
302  virtual void PlotPoly( const std::vector< wxPoint >& aCornerList, FILL_TYPE aFill,
303  int aWidth = USE_DEFAULT_LINE_WIDTH, void * aData = NULL ) = 0;
304 
313  virtual void PlotPoly( const SHAPE_LINE_CHAIN& aCornerList, FILL_TYPE aFill,
314  int aWidth = USE_DEFAULT_LINE_WIDTH, void * aData = NULL );
315 
327  virtual void PlotImage( const wxImage & aImage, const wxPoint& aPos,
328  double aScaleFactor );
329 
330  // Higher level primitives -- can be drawn as line, sketch or 'filled'
331  virtual void ThickSegment( const wxPoint& start, const wxPoint& end, int width,
332  OUTLINE_MODE tracemode, void* aData );
333  virtual void ThickArc( const wxPoint& centre, double StAngle, double EndAngle,
334  int rayon, int width, OUTLINE_MODE tracemode, void* aData );
335  virtual void ThickRect( const wxPoint& p1, const wxPoint& p2, int width,
336  OUTLINE_MODE tracemode, void* aData );
337  virtual void ThickCircle( const wxPoint& pos, int diametre, int width,
338  OUTLINE_MODE tracemode, void* aData );
339  virtual void FilledCircle( const wxPoint& pos, int diametre,
340  OUTLINE_MODE tracemode, void* aData );
341 
342 
343  // Flash primitives
344 
351  virtual void FlashPadCircle( const wxPoint& aPadPos, int aDiameter,
352  OUTLINE_MODE aTraceMode, void* aData ) = 0;
353 
361  virtual void FlashPadOval( const wxPoint& aPadPos, const wxSize& aSize, double aPadOrient,
362  OUTLINE_MODE aTraceMode, void* aData ) = 0;
363 
371  virtual void FlashPadRect( const wxPoint& aPadPos, const wxSize& aSize,
372  double aPadOrient, OUTLINE_MODE aTraceMode, void* aData ) = 0;
373 
382  virtual void FlashPadRoundRect( const wxPoint& aPadPos, const wxSize& aSize,
383  int aCornerRadius, double aOrient,
384  OUTLINE_MODE aTraceMode, void* aData ) = 0;
385 
393  virtual void FlashPadCustom( const wxPoint& aPadPos, const wxSize& aSize,
394  SHAPE_POLY_SET* aPolygons,
395  OUTLINE_MODE aTraceMode, void* aData ) = 0;
396 
406  virtual void FlashPadTrapez( const wxPoint& aPadPos, const wxPoint *aCorners,
407  double aPadOrient, OUTLINE_MODE aTraceMode,
408  void* aData ) = 0;
409 
419  virtual void FlashRegularPolygon( const wxPoint& aShapePos, int aDiameter, int aCornerCount,
420  double aOrient, OUTLINE_MODE aTraceMode, void* aData ) = 0 ;
421 
426  virtual void Text( const wxPoint& aPos,
427  const COLOR4D aColor,
428  const wxString& aText,
429  double aOrient,
430  const wxSize& aSize,
431  enum EDA_TEXT_HJUSTIFY_T aH_justify,
432  enum EDA_TEXT_VJUSTIFY_T aV_justify,
433  int aWidth,
434  bool aItalic,
435  bool aBold,
436  bool aMultilineAllowed = false,
437  void* aData = NULL );
438 
442  static const unsigned MARKER_COUNT = 58;
443 
449  void Marker( const wxPoint& position, int diametre, unsigned aShapeId );
450 
459  virtual void SetLayerPolarity( bool aPositive )
460  {
461  // NOP for most plotters
462  }
463 
468  virtual void SetTextMode( PLOT_TEXT_MODE mode )
469  {
470  // NOP for most plotters.
471  }
472 
473  virtual void SetGerberCoordinatesFormat( int aResolution, bool aUseInches = false )
474  {
475  // NOP for most plotters. Only for Gerber plotter
476  }
477 
478  virtual void SetSvgCoordinatesFormat( unsigned aResolution, bool aUseInches = false )
479  {
480  // NOP for most plotters. Only for SVG plotter
481  }
482 
490  virtual void StartBlock( void* aData ) {}
491 
499  virtual void EndBlock( void* aData ) {}
500 
501 
502 protected:
503  // These are marker subcomponents
507  void markerCircle( const wxPoint& pos, int radius );
508 
512  void markerHBar( const wxPoint& pos, int radius );
513 
517  void markerSlash( const wxPoint& pos, int radius );
518 
522  void markerBackSlash( const wxPoint& pos, int radius );
523 
527  void markerVBar( const wxPoint& pos, int radius );
528 
532  void markerSquare( const wxPoint& position, int radius );
533 
537  void markerLozenge( const wxPoint& position, int radius );
538 
539  // Helper function for sketched filler segment
540 
544  void segmentAsOval( const wxPoint& start, const wxPoint& end, int width,
545  OUTLINE_MODE tracemode );
546 
547  void sketchOval( const wxPoint& pos, const wxSize& size, double orient, int width );
548 
549  // Coordinate and scaling conversion functions
550 
556  virtual DPOINT userToDeviceCoordinates( const wxPoint& aCoordinate );
557 
562  virtual DPOINT userToDeviceSize( const wxSize& size );
563 
568  virtual double userToDeviceSize( double size ) const;
569 
570  double GetDotMarkLenIU() const;
571 
572  double GetDashMarkLenIU() const;
573 
574  double GetDashGapLenIU() const;
575 
576 protected: // variables used in most of plotters:
578  double plotScale;
579 
580  /* Caller scale (how many IUs in a decimil - always); it's a double
581  * because in Eeschema there are 0.1 IUs in a decimil (Eeschema
582  * always works in mils internally) while PcbNew can work in decimil
583  * or nanometers, so this value would be >= 1 */
585 
588 
590  wxPoint plotOffset;
591 
597 
599  FILE* outputFile;
600 
601  // Pen handling
602  bool colorMode; // true to plot in color, false to plot in black & white
603  bool negativeMode; // true to generate a negative image (PS mode mainly)
605  char penState; // Current pen state: 'U', 'D' or 'Z' (see PenTo)
606  wxPoint penLastpos; // Last pen positions; set to -1,-1 when the pen is
607  // at rest
608  wxString creator;
609  wxString filename;
610  wxString title;
612  wxSize paperSize; // Paper size in IU - not in mils
613 
614  wxArrayString m_headerExtraLines; // a set of string to print in header file
615 
617 };
618 
619 
620 class TITLE_BLOCK;
621 
622 void PlotWorkSheet( PLOTTER* plotter, const PROJECT* aProject, const TITLE_BLOCK& aTitleBlock,
623  const PAGE_INFO& aPageInfo, const wxString& aSheetNumber, int aNumberOfSheets,
624  const wxString& aSheetDesc, const wxString& aFilename,
625  COLOR4D aColor = COLOR4D::UNSPECIFIED, bool aIsFirstPage = true );
626 
629 wxString GetDefaultPlotExtension( PLOT_FORMAT aFormat );
630 
631 
632 #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:283
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:182
EDA_TEXT_HJUSTIFY_T
Definition: eda_text.h:61
void PenFinish()
Definition: plotter.h:289
virtual void FlashPadRoundRect(const wxPoint &aPadPos, const wxSize &aSize, int aCornerRadius, double aOrient, OUTLINE_MODE aTraceMode, void *aData)=0
PROJECT holds project specific data.
Definition: project.h:63
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:499
FILL_TYPE
Enum class FILL_TYPE is the set of fill types used in plotting or drawing enclosed areas.
Definition: fill_type.h:29
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
RENDER_SETTINGS Contains all the knowledge about how graphical objects are drawn on any output surfac...
virtual bool StartPlot()=0
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:187
static const unsigned MARKER_COUNT
Draw a marker (used for the drill map)
Definition: plotter.h:442
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:161
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:459
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:164
virtual void StartBlock(void *aData)
calling this function allows one to define the beginning of a group of drawing items,...
Definition: plotter.h:490
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:582
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
bool colorMode
Definition: plotter.h:602
virtual ~PLOTTER()
Definition: plotter.cpp:67
char penState
Definition: plotter.h:605
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:196
this class handle info which can be added in a gerber file as attribute of an object the GBR_INFO_TYP...
double m_IUsPerDecimil
Definition: plotter.h:584
TITLE_BLOCK holds the information shown in the lower right corner of a plot, printout,...
Definition: title_block.h:40
wxArrayString m_headerExtraLines
Definition: plotter.h:614
wxPoint plotOffset
Plot offset (in IUs)
Definition: plotter.h:590
wxPoint penLastpos
Definition: plotter.h:606
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:473
PAGE_INFO pageInfo
Definition: plotter.h:611
virtual void SetSvgCoordinatesFormat(unsigned aResolution, bool aUseInches=false)
Definition: plotter.h:478
PLOTTER()
Definition: plotter.cpp:50
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
virtual int GetCurrentLineWidth() const
Definition: plotter.h:176
bool m_yaxisReversed
true to mirror horizontally (else vertically)
Definition: plotter.h:596
virtual bool EndPlot()=0
void LineTo(const wxPoint &pos)
Definition: plotter.h:278
static const int USE_DEFAULT_LINE_WIDTH
Definition: plotter.h:136
virtual void FlashPadRect(const wxPoint &aPadPos, const wxSize &aSize, double aPadOrient, OUTLINE_MODE aTraceMode, void *aData)=0
bool m_plotMirror
X axis orientation (SVG) and plot mirrored (only for PS, PDF HPGL and SVG)
Definition: plotter.h:594
#define NULL
wxPenStyle GetwxPenStyle(PLOT_DASH_TYPE aType)
Convert KiCad line plot styles to wxWidgets device context styles.
Definition: plotter.cpp:611
void PlotWorkSheet(PLOTTER *plotter, const PROJECT *aProject, const TITLE_BLOCK &aTitleBlock, const PAGE_INFO &aPageInfo, const wxString &aSheetNumber, int aNumberOfSheets, const wxString &aSheetDesc, const wxString &aFilename, COLOR4D aColor=COLOR4D::UNSPECIFIED, bool aIsFirstPage=true)
SHAPE_POLY_SET.
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.
PAGE_INFO describes the page size and margins of a paper page on which to eventually print or plot.
Definition: page_info.h:54
virtual void SetTextMode(PLOT_TEXT_MODE mode)
Change the current text mode.
Definition: plotter.h:468
virtual void FlashPadCustom(const wxPoint &aPadPos, const wxSize &aSize, SHAPE_POLY_SET *aPolygons, OUTLINE_MODE aTraceMode, void *aData)=0
double plotScale
Plot scale - chosen by the user (even implicitly with 'fit in a4')
Definition: plotter.h:578
double GetIUsPerDecimil() const
The IUs per decimil are an essential scaling factor when plotting; they are set and saved when establ...
Definition: plotter.h:236
RENDER_SETTINGS * m_renderSettings
Definition: plotter.h:616
virtual DPOINT userToDeviceSize(const wxSize &size)
Modifies size according to the plotter scale factors (wxSize version, returns a DPOINT)
Definition: plotter.cpp:124
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:152
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:273
wxString title
Definition: plotter.h:610
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:238
Base plotter engine class.
Definition: plotter.h:131
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:165
int currentPenWidth
Definition: plotter.h:604
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
FILE * outputFile
true if the Y axis is top to bottom (SVG)
Definition: plotter.h:599
void markerCircle(const wxPoint &pos, int radius)
Plot a circle centered on the position.
Definition: plotter.cpp:273
int GetPlotterArcHighDef() const
Definition: plotter.h:239
void ClearHeaderLinesList()
Remove all lines from the list of free lines to print at the beginning of the file.
Definition: plotter.h:204
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
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
double iuPerDeviceUnit
Device scale (from IUs to plotter device units - usually decimils)
Definition: plotter.h:587
static const int DO_NOT_SET_LINE_WIDTH
Definition: plotter.h:135
wxString filename
Definition: plotter.h:609
PAGE_INFO & PageSettings()
Definition: plotter.h:168
void markerVBar(const wxPoint &pos, int radius)
Plot a | bar centered on the position.
Definition: plotter.cpp:324
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
wxString creator
Definition: plotter.h:608
virtual void FlashPadCircle(const wxPoint &aPadPos, int aDiameter, OUTLINE_MODE aTraceMode, void *aData)=0
virtual void SetDash(PLOT_DASH_TYPE dashed)=0
wxSize paperSize
Definition: plotter.h:612
bool m_mirrorIsHorizontal
Definition: plotter.h:595
virtual void SetPageSettings(const PAGE_INFO &aPageSettings)
Definition: plotter.h:167
virtual void SetCurrentLineWidth(int width, void *aData=NULL)=0
Set the line width for the next drawing.
COLOR4D is the color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:100
bool GetColorMode() const
Definition: plotter.h:162
bool negativeMode
Definition: plotter.h:603