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

Public Member Functions

def __init__ (self)
 
def GetPlotterType (self)
 
def GetDefaultFileExtension ()
 
def StartPlot (self)
 
def EndPlot (self)
 
def SetCurrentLineWidth (self, width, aData=None)
 
def SetDefaultLineWidth (self, width)
 
def SetDash (self, dashed)
 
def SetColor (self, color)
 
def SetViewport (self, aOffset, aIusPerDecimil, aScale, aMirror)
 
def Rect (self, args)
 
def Circle (self, args)
 
def Arc (self, args)
 
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 PlotPoly (self, args)
 
def PenTo (self, pos, plume)
 
def Text (self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aWidth, aItalic, aBold, aMultilineAllowed=False, aData=None)
 
def FlashPadCircle (self, pos, diametre, trace_mode, aData)
 
def FlashPadOval (self, pos, size, orient, trace_mode, aData)
 
def FlashPadRect (self, pos, size, orient, trace_mode, 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 SetLayerPolarity (self, aPositive)
 
def SetGerberCoordinatesFormat (self, aResolution, aUseInches=False)
 
def UseX2Attributes (self, aEnable)
 
def UseX2NetAttributes (self, aEnable)
 
def StartBlock (self, aData)
 
def EndBlock (self, aData)
 
- Public Member Functions inherited from pcbnew.PLOTTER
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 (self, width, aData=None)
 
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 (self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aWidth, aItalic, aBold, aMultilineAllowed=False, aData=None)
 
def Marker (self, position, diametre, aShapeId)
 
def SetLayerPolarity (self, aPositive)
 
def SetTextMode (self, mode)
 
def SetGerberCoordinatesFormat (self, aResolution, aUseInches=False)
 
def StartBlock (self, aData)
 
def EndBlock (self, aData)
 

Public Attributes

 this
 

Static Public Attributes

 GetDefaultFileExtension = staticmethod(GetDefaultFileExtension)
 
- Static Public Attributes inherited from pcbnew.PLOTTER
 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

Proxy of C++ GERBER_PLOTTER class.

Definition at line 7377 of file pcbnew.py.

Constructor & Destructor Documentation

def pcbnew.GERBER_PLOTTER.__init__ (   self)
__init__(GERBER_PLOTTER self) -> GERBER_PLOTTER

Definition at line 7390 of file pcbnew.py.

Member Function Documentation

def pcbnew.GERBER_PLOTTER.Arc (   self,
  args 
)
Arc(GERBER_PLOTTER self, wxPoint aCenter, double aStAngle, double aEndAngle, int aRadius, FILL_T aFill, int aWidth)
Arc(GERBER_PLOTTER self, wxPoint aCenter, double aStAngle, double aEndAngle, int aRadius, FILL_T aFill)

Definition at line 7465 of file pcbnew.py.

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

Definition at line 7457 of file pcbnew.py.

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

Definition at line 7574 of file pcbnew.py.

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

Definition at line 7416 of file pcbnew.py.

def pcbnew.GERBER_PLOTTER.FlashPadCircle (   self,
  pos,
  diametre,
  trace_mode,
  aData 
)
FlashPadCircle(GERBER_PLOTTER self, wxPoint pos, int diametre, EDA_DRAW_MODE_T trace_mode, void * aData)

Definition at line 7516 of file pcbnew.py.

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

Definition at line 7536 of file pcbnew.py.

def pcbnew.GERBER_PLOTTER.FlashPadOval (   self,
  pos,
  size,
  orient,
  trace_mode,
  aData 
)
FlashPadOval(GERBER_PLOTTER self, wxPoint pos, wxSize size, double orient, EDA_DRAW_MODE_T trace_mode, void * aData)

Definition at line 7521 of file pcbnew.py.

def pcbnew.GERBER_PLOTTER.FlashPadRect (   self,
  pos,
  size,
  orient,
  trace_mode,
  aData 
)
FlashPadRect(GERBER_PLOTTER self, wxPoint pos, wxSize size, double orient, EDA_DRAW_MODE_T trace_mode, void * aData)

Definition at line 7526 of file pcbnew.py.

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

Definition at line 7531 of file pcbnew.py.

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

Definition at line 7541 of file pcbnew.py.

def pcbnew.GERBER_PLOTTER.GetDefaultFileExtension ( )
GetDefaultFileExtension() -> wxString

Definition at line 7403 of file pcbnew.py.

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

Definition at line 7398 of file pcbnew.py.

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

Definition at line 7502 of file pcbnew.py.

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

Definition at line 7493 of file pcbnew.py.

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

Definition at line 7449 of file pcbnew.py.

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

Definition at line 7439 of file pcbnew.py.

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

Definition at line 7421 of file pcbnew.py.

def pcbnew.GERBER_PLOTTER.SetDash (   self,
  dashed 
)
SetDash(GERBER_PLOTTER self, int dashed)

Definition at line 7434 of file pcbnew.py.

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

Definition at line 7429 of file pcbnew.py.

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

Definition at line 7551 of file pcbnew.py.

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

Definition at line 7546 of file pcbnew.py.

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

Definition at line 7444 of file pcbnew.py.

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

Definition at line 7569 of file pcbnew.py.

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

Definition at line 7411 of file pcbnew.py.

def pcbnew.GERBER_PLOTTER.Text (   self,
  aPos,
  aColor,
  aText,
  aOrient,
  aSize,
  aH_justify,
  aV_justify,
  aWidth,
  aItalic,
  aBold,
  aMultilineAllowed = False,
  aData = None 
)
Text(GERBER_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(GERBER_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(GERBER_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)

Definition at line 7507 of file pcbnew.py.

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

Definition at line 7478 of file pcbnew.py.

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

Definition at line 7488 of file pcbnew.py.

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

Definition at line 7483 of file pcbnew.py.

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

Definition at line 7473 of file pcbnew.py.

def pcbnew.GERBER_PLOTTER.UseX2Attributes (   self,
  aEnable 
)
UseX2Attributes(GERBER_PLOTTER self, bool aEnable)

Definition at line 7559 of file pcbnew.py.

def pcbnew.GERBER_PLOTTER.UseX2NetAttributes (   self,
  aEnable 
)
UseX2NetAttributes(GERBER_PLOTTER self, bool aEnable)

Definition at line 7564 of file pcbnew.py.

Member Data Documentation

pcbnew.GERBER_PLOTTER.GetDefaultFileExtension = staticmethod(GetDefaultFileExtension)
static

Definition at line 7408 of file pcbnew.py.

pcbnew.GERBER_PLOTTER.this

Definition at line 7396 of file pcbnew.py.


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