KiCAD pcbnew scripting
Public Member Functions | Static Public Attributes | List of all members
pcbnew.PLOTTER Class Reference
Inheritance diagram for pcbnew.PLOTTER:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, args, kwargs)
 
def GetPlotterType (self)
 
def StartPlot (self)
 
def EndPlot (self)
 
def SetNegative (self, _negative)
 
def SetColorMode (self, _color_mode)
 
def GetColorMode (self)
 
def SetPageSettings (self, aPageSettings)
 
def SetCurrentLineWidth
 
def SetDefaultLineWidth (self, width)
 
def GetCurrentLineWidth (self)
 
def SetColor (self, color)
 
def SetDash (self, dashed)
 
def SetCreator (self, aCreator)
 
def SetTitle (self, aTitle)
 
def AddLineToHeader (self, aExtraString)
 
def ClearHeaderLinesList (self)
 
def SetViewport (self, aOffset, aIusPerDecimil, aScale, aMirror)
 
def OpenFile (self, aFullFilename)
 
def GetIUsPerDecimil (self)
 
def Rect (self, args)
 
def Circle (self, args)
 
def Arc (self, args)
 
def PenTo (self, pos, plume)
 
def MoveTo (self, pos)
 
def LineTo (self, pos)
 
def FinishTo (self, pos)
 
def PenFinish (self)
 
def PlotPoly (self, args)
 
def PlotImage (self, aImage, aPos, aScaleFactor)
 
def ThickSegment (self, start, end, width, tracemode, aData)
 
def ThickArc (self, centre, StAngle, EndAngle, rayon, width, tracemode, aData)
 
def ThickRect (self, p1, p2, width, tracemode, aData)
 
def ThickCircle (self, pos, diametre, width, tracemode, aData)
 
def FlashPadCircle (self, aPadPos, aDiameter, aTraceMode, aData)
 
def FlashPadOval (self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
 
def FlashPadRect (self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
 
def FlashPadRoundRect (self, aPadPos, aSize, aCornerRadius, aOrient, aTraceMode, aData)
 
def FlashPadCustom (self, aPadPos, aSize, aPolygons, aTraceMode, aData)
 
def FlashPadTrapez (self, aPadPos, aCorners, aPadOrient, aTraceMode, aData)
 
def Text
 
def Marker (self, position, diametre, aShapeId)
 
def SetLayerPolarity (self, aPositive)
 
def SetTextMode (self, mode)
 
def SetGerberCoordinatesFormat
 
def StartBlock (self, aData)
 
def EndBlock (self, aData)
 

Static Public Attributes

 DO_NOT_SET_LINE_WIDTH = _pcbnew.PLOTTER_DO_NOT_SET_LINE_WIDTH
 
 USE_DEFAULT_LINE_WIDTH = _pcbnew.PLOTTER_USE_DEFAULT_LINE_WIDTH
 
 MARKER_COUNT = _pcbnew.PLOTTER_MARKER_COUNT
 

Detailed Description

Base plotter engine class.

General rule: all the interface with the caller is done in IU, the IU
size is specified with SetViewport. Internal and output processing is
usually done in decimils (or whatever unit the effective engine class
need to use)

C++ includes: plot_common.h 

Definition at line 10414 of file pcbnew.py.

Constructor & Destructor Documentation

def pcbnew.PLOTTER.__init__ (   self,
  args,
  kwargs 
)

Definition at line 10432 of file pcbnew.py.

Member Function Documentation

def pcbnew.PLOTTER.AddLineToHeader (   self,
  aExtraString 
)
AddLineToHeader(PLOTTER self, wxString aExtraString)

void
PLOTTER::AddLineToHeader(const wxString &aExtraString)

Function AddLineToHeader Add a line to the list of free lines to print
at the beginning of the file.

Parameters:
-----------

aExtraString:  is the string to print 

Definition at line 10606 of file pcbnew.py.

def pcbnew.PLOTTER.Arc (   self,
  args 
)
Arc(PLOTTER self, wxPoint centre, double StAngle, double EndAngle, int rayon, FILL_T fill, int width)
Arc(PLOTTER self, wxPoint centre, double StAngle, double EndAngle, int rayon, FILL_T fill)

void PLOTTER::Arc(const wxPoint
&centre, double StAngle, double EndAngle, int rayon, FILL_T fill, int
width=USE_DEFAULT_LINE_WIDTH)

Generic fallback: arc rendered as a polyline. 

Definition at line 10723 of file pcbnew.py.

def pcbnew.PLOTTER.Circle (   self,
  args 
)
Circle(PLOTTER self, wxPoint pos, int diametre, FILL_T fill, int width)
Circle(PLOTTER self, wxPoint pos, int diametre, FILL_T fill)

virtual void
PLOTTER::Circle(const wxPoint &pos, int diametre, FILL_T fill, int
width=USE_DEFAULT_LINE_WIDTH)=0 

Definition at line 10711 of file pcbnew.py.

def pcbnew.PLOTTER.ClearHeaderLinesList (   self)
ClearHeaderLinesList(PLOTTER self)

void
PLOTTER::ClearHeaderLinesList()

Function ClearHeaderLinesList remove all lines from the list of free
lines to print at the beginning of the file. 

Definition at line 10624 of file pcbnew.py.

def pcbnew.PLOTTER.EndBlock (   self,
  aData 
)
EndBlock(PLOTTER self, void * aData)

virtual void
PLOTTER::EndBlock(void *aData)

calling this function allows to define the end of a group of drawing
items for instance in SVG or Gerber format.

the group is started by StartBlock()

Parameters:
-----------

aData:  can define any parameter for most of plotters: do nothing 

Definition at line 11196 of file pcbnew.py.

def pcbnew.PLOTTER.EndPlot (   self)
EndPlot(PLOTTER self) -> bool

virtual bool
PLOTTER::EndPlot()=0 

Definition at line 10466 of file pcbnew.py.

def pcbnew.PLOTTER.FinishTo (   self,
  pos 
)
FinishTo(PLOTTER self, wxPoint pos)

void
PLOTTER::FinishTo(const wxPoint &pos) 

Definition at line 10778 of file pcbnew.py.

def pcbnew.PLOTTER.FlashPadCircle (   self,
  aPadPos,
  aDiameter,
  aTraceMode,
  aData 
)
FlashPadCircle(PLOTTER self, wxPoint aPadPos, int aDiameter, EDA_DRAW_MODE_T aTraceMode, void * aData)

virtual void
PLOTTER::FlashPadCircle(const wxPoint &aPadPos, int aDiameter,
EDA_DRAW_MODE_T aTraceMode, void *aData)=0

virtual function FlashPadCircle

Parameters:
-----------

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) 

Definition at line 10897 of file pcbnew.py.

def pcbnew.PLOTTER.FlashPadCustom (   self,
  aPadPos,
  aSize,
  aPolygons,
  aTraceMode,
  aData 
)
FlashPadCustom(PLOTTER self, wxPoint aPadPos, wxSize aSize, SHAPE_POLY_SET aPolygons, EDA_DRAW_MODE_T aTraceMode, void * aData)

virtual void
PLOTTER::FlashPadCustom(const wxPoint &aPadPos, const wxSize &aSize,
SHAPE_POLY_SET *aPolygons, EDA_DRAW_MODE_T aTraceMode, void *aData)=0

virtual function FlashPadCustom

Parameters:
-----------

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) 

Definition at line 11002 of file pcbnew.py.

def pcbnew.PLOTTER.FlashPadOval (   self,
  aPadPos,
  aSize,
  aPadOrient,
  aTraceMode,
  aData 
)
FlashPadOval(PLOTTER self, wxPoint aPadPos, wxSize aSize, double aPadOrient, EDA_DRAW_MODE_T aTraceMode, void * aData)

virtual void
PLOTTER::FlashPadOval(const wxPoint &aPadPos, const wxSize &aSize,
double aPadOrient, EDA_DRAW_MODE_T aTraceMode, void *aData)=0

virtual function FlashPadOval

Parameters:
-----------

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) 

Definition at line 10921 of file pcbnew.py.

def pcbnew.PLOTTER.FlashPadRect (   self,
  aPadPos,
  aSize,
  aPadOrient,
  aTraceMode,
  aData 
)
FlashPadRect(PLOTTER self, wxPoint aPadPos, wxSize aSize, double aPadOrient, EDA_DRAW_MODE_T aTraceMode, void * aData)

virtual void
PLOTTER::FlashPadRect(const wxPoint &aPadPos, const wxSize &aSize,
double aPadOrient, EDA_DRAW_MODE_T aTraceMode, void *aData)=0

virtual function FlashPadRect

Parameters:
-----------

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) 

Definition at line 10947 of file pcbnew.py.

def pcbnew.PLOTTER.FlashPadRoundRect (   self,
  aPadPos,
  aSize,
  aCornerRadius,
  aOrient,
  aTraceMode,
  aData 
)
FlashPadRoundRect(PLOTTER self, wxPoint aPadPos, wxSize aSize, int aCornerRadius, double aOrient, EDA_DRAW_MODE_T aTraceMode, void * aData)

virtual void
PLOTTER::FlashPadRoundRect(const wxPoint &aPadPos, const wxSize
&aSize, int aCornerRadius, double aOrient, EDA_DRAW_MODE_T aTraceMode,
void *aData)=0

virtual function FlashPadRoundRect

Parameters:
-----------

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) 

Definition at line 10973 of file pcbnew.py.

def pcbnew.PLOTTER.FlashPadTrapez (   self,
  aPadPos,
  aCorners,
  aPadOrient,
  aTraceMode,
  aData 
)
FlashPadTrapez(PLOTTER self, wxPoint aPadPos, wxPoint aCorners, double aPadOrient, EDA_DRAW_MODE_T aTraceMode, void * aData)

virtual void
PLOTTER::FlashPadTrapez(const wxPoint &aPadPos, const wxPoint
*aCorners, double aPadOrient, EDA_DRAW_MODE_T aTraceMode, void
*aData)=0

virtual function FlashPadTrapez flash a trapezoidal pad

Parameters:
-----------

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) 

Definition at line 11028 of file pcbnew.py.

def pcbnew.PLOTTER.GetColorMode (   self)
GetColorMode(PLOTTER self) -> bool

bool
PLOTTER::GetColorMode() const 

Definition at line 10496 of file pcbnew.py.

def pcbnew.PLOTTER.GetCurrentLineWidth (   self)
GetCurrentLineWidth(PLOTTER self) -> int

virtual int
PLOTTER::GetCurrentLineWidth() const 

Definition at line 10556 of file pcbnew.py.

def pcbnew.PLOTTER.GetIUsPerDecimil (   self)
GetIUsPerDecimil(PLOTTER self) -> double

double
PLOTTER::GetIUsPerDecimil() const

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 10684 of file pcbnew.py.

def pcbnew.PLOTTER.GetPlotterType (   self)
GetPlotterType(PLOTTER self) -> PlotFormat

virtual PlotFormat
PLOTTER::GetPlotterType() const =0

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 

Definition at line 10440 of file pcbnew.py.

def pcbnew.PLOTTER.LineTo (   self,
  pos 
)
LineTo(PLOTTER self, wxPoint pos)

void PLOTTER::LineTo(const
wxPoint &pos) 

Definition at line 10768 of file pcbnew.py.

def pcbnew.PLOTTER.Marker (   self,
  position,
  diametre,
  aShapeId 
)
Marker(PLOTTER self, wxPoint position, int diametre, unsigned int aShapeId)

void PLOTTER::Marker(const
wxPoint &position, int diametre, unsigned aShapeId)

Draw a pattern shape number aShapeId, to coord position.

Diameter diameter = (coord table) hole AShapeId = index (used to
generate forms characters) 

Definition at line 11112 of file pcbnew.py.

def pcbnew.PLOTTER.MoveTo (   self,
  pos 
)
MoveTo(PLOTTER self, wxPoint pos)

void PLOTTER::MoveTo(const
wxPoint &pos) 

Definition at line 10758 of file pcbnew.py.

def pcbnew.PLOTTER.OpenFile (   self,
  aFullFilename 
)
OpenFile(PLOTTER self, wxString aFullFilename) -> bool

bool
PLOTTER::OpenFile(const wxString &aFullFilename)

Open or create the plot file aFullFilename.

Parameters:
-----------

aFullFilename:  = the full file name of the file to create

true if success, false if the file cannot be created/opened  Virtual
because some plotters use ascii files, some others binary files (PDF)
The base class open the file in text mode 

Definition at line 10663 of file pcbnew.py.

def pcbnew.PLOTTER.PenFinish (   self)
PenFinish(PLOTTER self)

void PLOTTER::PenFinish()

Definition at line 10788 of file pcbnew.py.

def pcbnew.PLOTTER.PenTo (   self,
  pos,
  plume 
)
PenTo(PLOTTER self, wxPoint pos, char plume)

virtual void
PLOTTER::PenTo(const wxPoint &pos, char plume)=0

moveto/lineto primitive, moves the 'pen' to the specified direction

Parameters:
-----------

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) 

Definition at line 10737 of file pcbnew.py.

def pcbnew.PLOTTER.PlotImage (   self,
  aImage,
  aPos,
  aScaleFactor 
)
PlotImage(PLOTTER self, wxImage const & aImage, wxPoint aPos, double aScaleFactor)

void
PLOTTER::PlotImage(const wxImage &aImage, const wxPoint &aPos, double
aScaleFactor)

Function PlotImage Only Postscript plotters can plot bitmaps for
plotters that cannot plot a bitmap, a rectangle is plotted.

Draw an image bitmap

Parameters:
-----------

aImage:  = the bitmap

aPos:  = position of the center of the bitmap

aScaleFactor:  = the scale factor to apply to the bitmap size (this is
not the plot scale factor) 

Definition at line 10826 of file pcbnew.py.

def pcbnew.PLOTTER.PlotPoly (   self,
  args 
)
PlotPoly(PLOTTER self, wxPoint_Vector aCornerList, FILL_T aFill, int aWidth, void * aData=None)
PlotPoly(PLOTTER self, wxPoint_Vector aCornerList, FILL_T aFill, int aWidth)
PlotPoly(PLOTTER self, wxPoint_Vector aCornerList, FILL_T aFill)

virtual void
PLOTTER::PlotPoly(const std::vector< wxPoint > &aCornerList, FILL_T
aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void *aData=NULL)=0

Function PlotPoly.

Draw a polygon ( filled or not )

Parameters:
-----------

aCornerList:  = corners list

aFill:  = type of fill

aWidth:  = line width

aData:  an auxiliary info (mainly for gerber format) 

Definition at line 10798 of file pcbnew.py.

def pcbnew.PLOTTER.Rect (   self,
  args 
)
Rect(PLOTTER self, wxPoint p1, wxPoint p2, FILL_T fill, int width)
Rect(PLOTTER self, wxPoint p1, wxPoint p2, FILL_T fill)

virtual void
PLOTTER::Rect(const wxPoint &p1, const wxPoint &p2, FILL_T fill, int
width=USE_DEFAULT_LINE_WIDTH)=0 

Definition at line 10699 of file pcbnew.py.

def pcbnew.PLOTTER.SetColor (   self,
  color 
)
SetColor(PLOTTER self, COLOR4D color)

virtual void
PLOTTER::SetColor(COLOR4D color)=0 

Definition at line 10566 of file pcbnew.py.

def pcbnew.PLOTTER.SetColorMode (   self,
  _color_mode 
)
SetColorMode(PLOTTER self, bool _color_mode)

virtual void
PLOTTER::SetColorMode(bool _color_mode) 

Definition at line 10486 of file pcbnew.py.

def pcbnew.PLOTTER.SetCreator (   self,
  aCreator 
)
SetCreator(PLOTTER self, wxString aCreator)

virtual void
PLOTTER::SetCreator(const wxString &aCreator) 

Definition at line 10586 of file pcbnew.py.

def pcbnew.PLOTTER.SetCurrentLineWidth (   self,
  width,
  aData = None 
)
SetCurrentLineWidth(PLOTTER self, int width, void * aData=None)
SetCurrentLineWidth(PLOTTER self, int width)

virtual void
PLOTTER::SetCurrentLineWidth(int width, void *aData=NULL)=0

Set the line width for the next drawing.

Parameters:
-----------

width:  is specified in IUs

aData:  is an auxiliary parameter, mainly used in gerber plotter 

Definition at line 10516 of file pcbnew.py.

Here is the caller graph for this function:

def pcbnew.PLOTTER.SetDash (   self,
  dashed 
)
SetDash(PLOTTER self, bool dashed)

virtual void
PLOTTER::SetDash(bool dashed)=0 

Definition at line 10576 of file pcbnew.py.

def pcbnew.PLOTTER.SetDefaultLineWidth (   self,
  width 
)
SetDefaultLineWidth(PLOTTER self, int width)

virtual void
PLOTTER::SetDefaultLineWidth(int width)=0

Set the default line width.

Used at the beginning and when a width of -1 (USE_DEFAULT_LINE_WIDTH)
is requested.

Parameters:
-----------

width:  is specified in IUs 

Definition at line 10536 of file pcbnew.py.

def pcbnew.PLOTTER.SetGerberCoordinatesFormat (   self,
  aResolution,
  aUseInches = False 
)
SetGerberCoordinatesFormat(PLOTTER self, int aResolution, bool aUseInches=False)
SetGerberCoordinatesFormat(PLOTTER self, int aResolution)

virtual
void PLOTTER::SetGerberCoordinatesFormat(int aResolution, bool
aUseInches=false) 

Definition at line 11164 of file pcbnew.py.

def pcbnew.PLOTTER.SetLayerPolarity (   self,
  aPositive 
)
SetLayerPolarity(PLOTTER self, bool aPositive)

virtual void
PLOTTER::SetLayerPolarity(bool aPositive)

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)

Parameters:
-----------

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 

Definition at line 11127 of file pcbnew.py.

def pcbnew.PLOTTER.SetNegative (   self,
  _negative 
)
SetNegative(PLOTTER self, bool _negative)

virtual void
PLOTTER::SetNegative(bool _negative) 

Definition at line 10476 of file pcbnew.py.

def pcbnew.PLOTTER.SetPageSettings (   self,
  aPageSettings 
)
SetPageSettings(PLOTTER self, PAGE_INFO const & aPageSettings)

void
PLOTTER::SetPageSettings(const PAGE_INFO &aPageSettings) 

Definition at line 10506 of file pcbnew.py.

def pcbnew.PLOTTER.SetTextMode (   self,
  mode 
)
SetTextMode(PLOTTER self, PlotTextMode mode)

virtual void
PLOTTER::SetTextMode(PlotTextMode mode)

Change the current text mode.

See the PlotTextMode explanation at the beginning of the file 

Definition at line 11150 of file pcbnew.py.

def pcbnew.PLOTTER.SetTitle (   self,
  aTitle 
)
SetTitle(PLOTTER self, wxString aTitle)

virtual void
PLOTTER::SetTitle(const wxString &aTitle) 

Definition at line 10596 of file pcbnew.py.

def pcbnew.PLOTTER.SetViewport (   self,
  aOffset,
  aIusPerDecimil,
  aScale,
  aMirror 
)
SetViewport(PLOTTER self, wxPoint aOffset, double aIusPerDecimil, double aScale, bool aMirror)

virtual void
PLOTTER::SetViewport(const wxPoint &aOffset, double aIusPerDecimil,
double aScale, bool aMirror)=0

Set the plot offset and scaling for the current plot.

Parameters:
-----------

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) 

Definition at line 10637 of file pcbnew.py.

def pcbnew.PLOTTER.StartBlock (   self,
  aData 
)
StartBlock(PLOTTER self, void * aData)

virtual void
PLOTTER::StartBlock(void *aData)

calling this function allows 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)

Parameters:
-----------

aData:  can define any parameter for most of plotters: do nothing 

Definition at line 11176 of file pcbnew.py.

Here is the caller graph for this function:

def pcbnew.PLOTTER.StartPlot (   self)
StartPlot(PLOTTER self) -> bool

virtual bool
PLOTTER::StartPlot()=0 

Definition at line 10456 of file pcbnew.py.

def pcbnew.PLOTTER.Text (   self,
  aPos,
  aColor,
  aText,
  aOrient,
  aSize,
  aH_justify,
  aV_justify,
  aWidth,
  aItalic,
  aBold,
  aMultilineAllowed = False,
  aData = None 
)
Text(PLOTTER self, wxPoint aPos, COLOR4D aColor, wxString aText, double aOrient, 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=None)
Text(PLOTTER self, wxPoint aPos, COLOR4D aColor, wxString aText, double aOrient, 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)
Text(PLOTTER self, wxPoint aPos, COLOR4D aColor, wxString aText, double aOrient, wxSize aSize, enum EDA_TEXT_HJUSTIFY_T aH_justify, enum EDA_TEXT_VJUSTIFY_T aV_justify, int aWidth, bool aItalic, bool aBold)

void PLOTTER::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.

Function PLOTTER::Text same as DrawGraphicText, 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

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. 

Definition at line 11056 of file pcbnew.py.

def pcbnew.PLOTTER.ThickArc (   self,
  centre,
  StAngle,
  EndAngle,
  rayon,
  width,
  tracemode,
  aData 
)
ThickArc(PLOTTER self, wxPoint centre, double StAngle, double EndAngle, int rayon, int width, EDA_DRAW_MODE_T tracemode, void * aData)

void
PLOTTER::ThickArc(const wxPoint &centre, double StAngle, double
EndAngle, int rayon, int width, EDA_DRAW_MODE_T tracemode, void
*aData) 

Definition at line 10863 of file pcbnew.py.

def pcbnew.PLOTTER.ThickCircle (   self,
  pos,
  diametre,
  width,
  tracemode,
  aData 
)
ThickCircle(PLOTTER self, wxPoint pos, int diametre, int width, EDA_DRAW_MODE_T tracemode, void * aData)

void
PLOTTER::ThickCircle(const wxPoint &pos, int diametre, int width,
EDA_DRAW_MODE_T tracemode, void *aData) 

Definition at line 10886 of file pcbnew.py.

def pcbnew.PLOTTER.ThickRect (   self,
  p1,
  p2,
  width,
  tracemode,
  aData 
)
ThickRect(PLOTTER self, wxPoint p1, wxPoint p2, int width, EDA_DRAW_MODE_T tracemode, void * aData)

void
PLOTTER::ThickRect(const wxPoint &p1, const wxPoint &p2, int width,
EDA_DRAW_MODE_T tracemode, void *aData) 

Definition at line 10875 of file pcbnew.py.

def pcbnew.PLOTTER.ThickSegment (   self,
  start,
  end,
  width,
  tracemode,
  aData 
)
ThickSegment(PLOTTER self, wxPoint start, wxPoint end, int width, EDA_DRAW_MODE_T tracemode, void * aData)

void
PLOTTER::ThickSegment(const wxPoint &start, const wxPoint &end, int
width, EDA_DRAW_MODE_T tracemode, void *aData) 

Definition at line 10852 of file pcbnew.py.

Member Data Documentation

pcbnew.PLOTTER.DO_NOT_SET_LINE_WIDTH = _pcbnew.PLOTTER_DO_NOT_SET_LINE_WIDTH
static

Definition at line 10435 of file pcbnew.py.

pcbnew.PLOTTER.MARKER_COUNT = _pcbnew.PLOTTER_MARKER_COUNT
static

Definition at line 11110 of file pcbnew.py.

pcbnew.PLOTTER.USE_DEFAULT_LINE_WIDTH = _pcbnew.PLOTTER_USE_DEFAULT_LINE_WIDTH
static

Definition at line 10436 of file pcbnew.py.


The documentation for this class was generated from the following file: