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

Public Member Functions

def __init__ (self, parent)
 
def StandardMask ()
 
def SMDMask ()
 
def ConnSMDMask ()
 
def UnplatedHoleMask ()
 
def ClassOf (aItem)
 
def Next (self)
 
def GetParent (self)
 
def ImportSettingsFromMaster (self, aMasterPad)
 
def IsFlipped (self)
 
def SetName (self, aName)
 
def GetName (self)
 
def IncrementPadName (self, aSkipUnconnectable, aFillSequenceGaps)
 
def PadNameEqual (self, other)
 
def GetShape (self)
 
def SetShape (self, aShape)
 
def SetPosition (self, aPos)
 
def GetPosition (self)
 
def GetAnchorPadShape (self)
 
def GetCustomShapeInZoneOpt (self)
 
def SetCustomShapeInZoneOpt (self, aOption)
 
def SetAnchorPadShape (self, aShape)
 
def SetY (self, y)
 
def SetX (self, x)
 
def SetPos0 (self, aPos)
 
def GetPos0 (self)
 
def SetY0 (self, y)
 
def SetX0 (self, x)
 
def SetSize (self, aSize)
 
def GetSize (self)
 
def SetDelta (self, aSize)
 
def GetDelta (self)
 
def SetDrillSize (self, aSize)
 
def GetDrillSize (self)
 
def SetOffset (self, aOffset)
 
def GetOffset (self)
 
def AddPrimitive (self, args)
 
def GetBestAnchorPosition (self, aPos)
 
def MergePrimitivesAsPolygon
 
def DeletePrimitivesList (self)
 
def CustomShapeAsPolygonToBoardPosition (self, aMergedPolygon, aPosition, aRotation)
 
def GetPrimitives (self)
 
def GetCustomShapeAsPolygon (self)
 
def Flip (self, aCentre)
 
def FlipPrimitives (self)
 
def SetPrimitives (self, aPrimitivesList)
 
def SetOrientation (self, aAngle)
 
def SetOrientationDegrees (self, aOrientation)
 
def GetOrientation (self)
 
def GetOrientationDegrees (self)
 
def GetOrientationRadians (self)
 
def SetDrillShape (self, aDrillShape)
 
def GetDrillShape (self)
 
def GetOblongDrillGeometry (self, aStartPoint, aEndPoint, aWidth)
 
def SetLayerSet (self, aLayerMask)
 
def GetLayerSet (self)
 
def SetAttribute (self, aAttribute)
 
def GetAttribute (self)
 
def SetPadToDieLength (self, aLength)
 
def GetPadToDieLength (self)
 
def GetLocalSolderMaskMargin (self)
 
def SetLocalSolderMaskMargin (self, aMargin)
 
def GetLocalClearance (self)
 
def SetLocalClearance (self, aClearance)
 
def GetLocalSolderPasteMargin (self)
 
def SetLocalSolderPasteMargin (self, aMargin)
 
def GetLocalSolderPasteMarginRatio (self)
 
def SetLocalSolderPasteMarginRatio (self, aRatio)
 
def TransformShapeWithClearanceToPolygon (self, aCornerBuffer, aClearanceValue, aCircleToSegmentsCount, aCorrectionFactor)
 
def GetClearance
 
def GetSolderMaskMargin (self)
 
def GetSolderPasteMargin (self)
 
def SetZoneConnection (self, aType)
 
def GetZoneConnection (self)
 
def SetThermalWidth (self, aWidth)
 
def GetThermalWidth (self)
 
def SetThermalGap (self, aGap)
 
def GetThermalGap (self)
 
def Draw (self, args)
 
def DrawShape (self, aClipBox, aDC, aDrawInfo)
 
def BuildPadPolygon (self, aCoord, aInflateValue, aRotation)
 
def GetRoundRectCornerRadius (self, args)
 
def BuildPadShapePolygon (self, aCornerBuffer, aInflateValue, aSegmentsPerCircle, aCorrectionFactor)
 
def BuildPadDrillShapePolygon (self, aCornerBuffer, aInflateValue, aSegmentsPerCircle)
 
def BuildSegmentFromOvalShape (self, aSegStart, aSegEnd, aRotation, aMargin)
 
def GetBoundingRadius (self)
 
def ShapePos (self)
 
def GetRoundRectRadiusRatio (self)
 
def SetRoundRectRadiusRatio (self, aRadiusScale)
 
def GetSubRatsnest (self)
 
def SetSubRatsnest (self, aSubRatsnest)
 
def GetMsgPanelInfo (self, aList)
 
def IsOnLayer (self, aLayer)
 
def HitTest (self, args)
 
def GetClass (self)
 
def GetBoundingBox (self)
 
def SetDrawCoord (self)
 
def SetLocalCoord (self)
 
def Compare (padref, padcmp)
 
def Move (self, aMoveVector)
 
def Rotate (self, aRotCentre, aAngle)
 
def GetSelectMenuText (self)
 
def GetMenuImage (self)
 
def ShowPadShape (self)
 
def ShowPadAttr (self)
 
def AppendConfigs (self, aResult)
 
def Clone (self)
 
def Duplicate (self)
 
def ViewGetLayers (self, aLayers, aCount)
 
def ViewGetLOD (self, aLayer, aView)
 
def ViewBBox (self)
 
def CopyNetlistSettings (self, aPad, aCopyLocalSettings)
 
def SwapData (self, aImage)
 
def SetPadName (self, aName)
 
def GetPadName (self)
 
- Public Member Functions inherited from pcbnew.BOARD_CONNECTED_ITEM
def __init__ (self, args, kwargs)
 
def ClassOf (aItem)
 
def IsConnected (self)
 
def GetNet (self)
 
def SetNet (self, aNetInfo)
 
def GetNetCode (self)
 
def SetNetCode
 
def GetNetname (self)
 
def GetShortNetname (self)
 
def GetClearance
 
def GetNetClass (self)
 
def GetNetClassName (self)
 
def SetLocalRatsnestVisible (self, aVisible)
 
def GetLocalRatsnestVisible (self)
 
- Public Member Functions inherited from pcbnew.BOARD_ITEM
def __init__ (self, args, kwargs)
 
def GetPosition (self)
 
def GetCenter (self)
 
def SetPosition (self, aPos)
 
def IsConnected (self)
 
def Next (self)
 
def Back (self)
 
def GetParent (self)
 
def GetLayer (self)
 
def GetLayerSet (self)
 
def SetLayer (self, aLayer)
 
def Draw (self, args)
 
def SwapData (self, aImage)
 
def IsOnLayer (self, aLayer)
 
def IsTrack (self)
 
def IsLocked (self)
 
def SetLocked (self, aLocked)
 
def UnLink (self)
 
def DeleteStructure (self)
 
def ShowShape (aShape)
 
def Move (self, args)
 
def Rotate (self, args)
 
def Flip (self, args)
 
def GetBoard (self)
 
def GetLayerName (self)
 
def HitTest (self, args)
 
def FormatAngle (aAngle)
 
def FormatInternalUnits (args)
 
def ViewGetLayers (self, aLayers, aCount)
 
def Cast (self)
 
def Duplicate (self)
 
def SetPos (self, p)
 
def SetStartEnd (self, start, end)
 
- Public Member Functions inherited from pcbnew.EDA_ITEM
def __init__ (self, args, kwargs)
 
def Type (self)
 
def SetTimeStamp (self, aNewTimeStamp)
 
def GetTimeStamp (self)
 
def Next (self)
 
def Back (self)
 
def GetParent (self)
 
def GetList (self)
 
def SetParent (self, aParent)
 
def SetList (self, aList)
 
def IsNew (self)
 
def IsModified (self)
 
def IsMoving (self)
 
def IsDragging (self)
 
def IsWireImage (self)
 
def IsSelected (self)
 
def IsResized (self)
 
def IsHighlighted (self)
 
def IsBrightened (self)
 
def SetWireImage (self)
 
def SetSelected (self)
 
def SetHighlighted (self)
 
def SetBrightened (self)
 
def ClearSelected (self)
 
def ClearHighlighted (self)
 
def ClearBrightened (self)
 
def SetModified (self)
 
def GetState (self, type)
 
def SetState (self, type, state)
 
def GetStatus (self)
 
def SetStatus (self, aStatus)
 
def SetFlags (self, aMask)
 
def ClearFlags
 
def GetFlags (self)
 
def SetForceVisible (self, aEnable)
 
def GetMsgPanelInfo (self, aList)
 
def HitTest (self, aPosition)
 
def GetBoundingBox (self)
 
def Clone (self)
 
def IterateForward (listStart, inspector, testData, scanTypes)
 
def Visit (self, inspector, testData, scanTypes)
 
def GetClass (self)
 
def GetSelectMenuText (self)
 
def GetMenuImage (self)
 
def Matches (self, aSearchData, aAuxData, aFindLocation)
 
def Replace (self, args)
 
def IsReplaceable (self)
 
def __lt__ (self, aItem)
 
def Sort (aLeft, aRight)
 
def ViewBBox (self)
 
def ViewGetLayers (self, aLayers, aCount)
 

Public Attributes

 this
 

Static Public Attributes

tuple StandardMask = staticmethod(StandardMask)
 
tuple SMDMask = staticmethod(SMDMask)
 
tuple ConnSMDMask = staticmethod(ConnSMDMask)
 
tuple UnplatedHoleMask = staticmethod(UnplatedHoleMask)
 
tuple ClassOf = staticmethod(ClassOf)
 
tuple Compare = staticmethod(Compare)
 
- Static Public Attributes inherited from pcbnew.BOARD_CONNECTED_ITEM
tuple ClassOf = staticmethod(ClassOf)
 
- Static Public Attributes inherited from pcbnew.BOARD_ITEM
tuple ShowShape = staticmethod(ShowShape)
 
tuple FormatAngle = staticmethod(FormatAngle)
 
tuple FormatInternalUnits = staticmethod(FormatInternalUnits)
 
- Static Public Attributes inherited from pcbnew.EDA_ITEM
tuple IterateForward = staticmethod(IterateForward)
 
tuple Sort = staticmethod(Sort)
 

Detailed Description

C++ includes: class_pad.h 

Definition at line 18696 of file pcbnew.py.

Constructor & Destructor Documentation

def pcbnew.D_PAD.__init__ (   self,
  parent 
)
__init__(D_PAD self, MODULE parent) -> D_PAD

D_PAD::D_PAD(MODULE *parent) 

Definition at line 18708 of file pcbnew.py.

Member Function Documentation

def pcbnew.D_PAD.AddPrimitive (   self,
  args 
)
AddPrimitive(D_PAD self, SHAPE_POLY_SET aPoly, int aThickness)
AddPrimitive(D_PAD self, wxPoint_Vector aPoly, int aThickness)
AddPrimitive(D_PAD self, wxPoint aStart, wxPoint aEnd, int aThickness)
AddPrimitive(D_PAD self, wxPoint aCenter, int aRadius, int aThickness)
AddPrimitive(D_PAD self, wxPoint aCenter, wxPoint aStart, int aArcAngle, int aThickness)

void
D_PAD::AddPrimitive(wxPoint aCenter, wxPoint aStart, int aArcAngle,
int aThickness)

arc basic shape 

Definition at line 19116 of file pcbnew.py.

def pcbnew.D_PAD.AppendConfigs (   self,
  aResult 
)
AppendConfigs(D_PAD self, PARAM_CFG_ARRAY * aResult)

void
D_PAD::AppendConfigs(PARAM_CFG_ARRAY *aResult)

Function AppendConfigs appends to aResult the configuration setting
accessors which will later allow reading or writing of configuration
file information directly into this object. 

Definition at line 20157 of file pcbnew.py.

def pcbnew.D_PAD.BuildPadDrillShapePolygon (   self,
  aCornerBuffer,
  aInflateValue,
  aSegmentsPerCircle 
)
BuildPadDrillShapePolygon(D_PAD self, SHAPE_POLY_SET aCornerBuffer, int aInflateValue, int aSegmentsPerCircle) -> bool

bool
D_PAD::BuildPadDrillShapePolygon(SHAPE_POLY_SET &aCornerBuffer, int
aInflateValue, int aSegmentsPerCircle) const

Function BuildPadDrillShapePolygon Build the Corner list of the
polygonal drill shape, depending on shape pad hole and orientation.

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

aCornerBuffer:  = a buffer to fill.

aInflateValue:  = the clearance or margin value. value > 0: inflate, <
0 deflate, = 0 : no change

aSegmentsPerCircle:  = number of segments to approximate a circle
(used for round and oblong shapes only(16 to 32 is a good value)

false if the pad has no hole, true otherwise 

Definition at line 19791 of file pcbnew.py.

def pcbnew.D_PAD.BuildPadPolygon (   self,
  aCoord,
  aInflateValue,
  aRotation 
)
BuildPadPolygon(D_PAD self, wxPoint aCoord, wxSize aInflateValue, double aRotation)

void
D_PAD::BuildPadPolygon(wxPoint aCoord[4], wxSize aInflateValue, double
aRotation) const

Function BuildPadPolygon Has meaning only for polygonal pads
(trapezoid and rectangular) Build the Corner list of the polygonal
shape, depending on shape, extra size (clearance ...) and orientation.

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

aCoord:  = a buffer to fill (4 corners).

aInflateValue:  = wxSize: the clearance or margin value. value > 0:
inflate, < 0 deflate

aRotation:  = full rotation of the polygon 

Definition at line 19706 of file pcbnew.py.

def pcbnew.D_PAD.BuildPadShapePolygon (   self,
  aCornerBuffer,
  aInflateValue,
  aSegmentsPerCircle,
  aCorrectionFactor 
)
BuildPadShapePolygon(D_PAD self, SHAPE_POLY_SET aCornerBuffer, wxSize aInflateValue, int aSegmentsPerCircle, double aCorrectionFactor)

void
D_PAD::BuildPadShapePolygon(SHAPE_POLY_SET &aCornerBuffer, wxSize
aInflateValue, int aSegmentsPerCircle, double aCorrectionFactor) const

Function BuildPadShapePolygon Build the Corner list of the polygonal
shape, depending on shape, extra size (clearance ...) pad and
orientation This function is similar to
TransformShapeWithClearanceToPolygon, but the difference is
BuildPadShapePolygon creates a polygon shape exactly similar to pad
shape, which a size inflated by aInflateValue and
TransformShapeWithClearanceToPolygon creates a more complex shape (for
instance a rectangular pad is converted in a rectangulr shape with
ronded corners)

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

aCornerBuffer:  = a buffer to fill.

aInflateValue:  = the clearance or margin value. value > 0: inflate, <
0 deflate, = 0 : no change the clearance can have different values for
x and y directions (relative to the pad)

aSegmentsPerCircle:  = number of segments to approximate a circle
(used for round and oblong shapes only (16 to 32 is a good value)

aCorrectionFactor:  = the correction to apply to circles radius to
keep the pad size/clearance when the arcs are approximated by segments

Definition at line 19754 of file pcbnew.py.

def pcbnew.D_PAD.BuildSegmentFromOvalShape (   self,
  aSegStart,
  aSegEnd,
  aRotation,
  aMargin 
)
BuildSegmentFromOvalShape(D_PAD self, wxPoint aSegStart, wxPoint aSegEnd, double aRotation, wxSize aMargin) -> int

int
D_PAD::BuildSegmentFromOvalShape(wxPoint &aSegStart, wxPoint &aSegEnd,
double aRotation, const wxSize &aMargin) const

Function BuildSegmentFromOvalShape Has meaning only for OVAL (and
ROUND) pads Build an equivalent segment having the same shape as the
OVAL shape, Useful in draw function and in DRC and HitTest functions,
because segments are already well handled by track tests.

Function BuildSegmentFromOvalShape Has meaning only for OVAL (and
ROUND) pads.

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

aSegStart:  = the starting point of the equivalent segment relative to
the shape position.

aSegEnd:  = the ending point of the equivalent segment, relative to
the shape position

aRotation:  = full rotation of the segment

aRotation:  = full rotation of the segment

aMargin:  = a margin around the shape (for instance mask margin)

the width of the segment  Build an equivalent segment having the same
shape as the OVAL shape, aSegStart and aSegEnd are the ending points
of the equivalent segment of the shape aRotation is the asked rotation
of the segment (usually m_Orient) 

Definition at line 19818 of file pcbnew.py.

def pcbnew.D_PAD.ClassOf (   aItem)
ClassOf(EDA_ITEM aItem) -> bool

Definition at line 18752 of file pcbnew.py.

def pcbnew.D_PAD.Clone (   self)
Clone(D_PAD self) -> EDA_ITEM

EDA_ITEM * D_PAD::Clone() const
override

Function Clone creates a duplicate of this item with linked list
members set to NULL.

The default version will return NULL in release builds and likely
crash the program. In debug builds, a warning message indicating the
derived class has not implemented cloning. This really should be a
pure virtual function. Due to the fact that there are so many objects
derived from EDA_ITEM, the decision was made to return NULL until all
the objects derived from EDA_ITEM implement cloning. Once that
happens, this function should be made pure.

A clone of the item. 

Definition at line 20171 of file pcbnew.py.

def pcbnew.D_PAD.Compare (   padref,
  padcmp 
)
Compare(D_PAD padref, D_PAD padcmp) -> int

Definition at line 20064 of file pcbnew.py.

def pcbnew.D_PAD.ConnSMDMask ( )
ConnSMDMask() -> LSET

Definition at line 18736 of file pcbnew.py.

def pcbnew.D_PAD.CopyNetlistSettings (   self,
  aPad,
  aCopyLocalSettings 
)
CopyNetlistSettings(D_PAD self, D_PAD aPad, bool aCopyLocalSettings)

void
D_PAD::CopyNetlistSettings(D_PAD *aPad, bool aCopyLocalSettings)

Function CopyNetlistSettings copies the netlist settings to aPad, and
the net name.

Used to copy some pad parameters when replacing a footprint by an
other footprint when reading a netlist, or in exchange footprint
dialog

The netlist settings are all of the D_PAD settings not define by a
D_PAD in a netlist. The copied settings are the net name and
optionally include local clearance, etc. The pad physical geometry
settings are not copied.

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

aPad:  is the D_PAD to copy the settings to.

aCopyLocalSettings:  = false to copy only the net name true to also
copy local prms 

Definition at line 20274 of file pcbnew.py.

def pcbnew.D_PAD.CustomShapeAsPolygonToBoardPosition (   self,
  aMergedPolygon,
  aPosition,
  aRotation 
)
CustomShapeAsPolygonToBoardPosition(D_PAD self, SHAPE_POLY_SET aMergedPolygon, wxPoint aPosition, double aRotation)

void D_PAD::CustomShapeAsPolygonToBoardPosition(SHAPE_POLY_SET
*aMergedPolygon, wxPoint aPosition, double aRotation) const

When created, the corners coordinates are relative to the pad
position, orientation 0, in m_customShapeAsPolygon
CustomShapeAsPolygonToBoardPosition transform these coordinates to
actual (board) coordinates.

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

aMergedPolygon:  = the corners coordinates, relative to aPosition and
rotated by aRotation

aPosition:  = the position of the shape (usually the pad shape, but
not always, when moving the pad)

aRotation:  = the rotation of the shape (usually the pad rotation, but
not always, in DRC) 

Definition at line 19184 of file pcbnew.py.

def pcbnew.D_PAD.DeletePrimitivesList (   self)
DeletePrimitivesList(D_PAD self)

void
D_PAD::DeletePrimitivesList()

clear the basic shapes list 

Definition at line 19172 of file pcbnew.py.

def pcbnew.D_PAD.Draw (   self,
  args 
)
Draw(D_PAD self, EDA_DRAW_PANEL * aPanel, wxDC * aDC, GR_DRAWMODE aDrawMode, wxPoint aOffset)
Draw(D_PAD self, EDA_DRAW_PANEL * aPanel, wxDC * aDC, GR_DRAWMODE aDrawMode)

void D_PAD::Draw(EDA_DRAW_PANEL
*aPanel, wxDC *aDC, GR_DRAWMODE aDrawMode, const wxPoint
&aOffset=ZeroOffset) override

Function Draw BOARD_ITEMs have their own color information. 

Definition at line 19674 of file pcbnew.py.

Here is the caller graph for this function:

def pcbnew.D_PAD.DrawShape (   self,
  aClipBox,
  aDC,
  aDrawInfo 
)
DrawShape(D_PAD self, EDA_RECT aClipBox, wxDC * aDC, PAD_DRAWINFO aDrawInfo)

void
D_PAD::DrawShape(EDA_RECT *aClipBox, wxDC *aDC, PAD_DRAWINFO
&aDrawInfo)

Function DrawShape basic function to draw a pad.

This function is used by Draw after calculation of parameters (color,
) final orientation transforms are set. It can also be called to draw
a pad on any panel even if this panel is not a EDA_DRAW_PANEL for
instance on a wxPanel inside the pad editor. 

Definition at line 19688 of file pcbnew.py.

def pcbnew.D_PAD.Duplicate (   self)
Duplicate(D_PAD self) -> D_PAD

D_PAD* D_PAD::Duplicate()
const

same as Clone, but returns a D_PAD item.

Useful mainly for pythons scripts, because Clone (virtual function)
returns an EDA_ITEM. 

Definition at line 20194 of file pcbnew.py.

def pcbnew.D_PAD.Flip (   self,
  aCentre 
)
Flip(D_PAD self, wxPoint aCentre)

void BOARD_ITEM::Flip(const
VECTOR2I &aCentre) 

Definition at line 19235 of file pcbnew.py.

def pcbnew.D_PAD.FlipPrimitives (   self)
FlipPrimitives(D_PAD self)

void
D_PAD::FlipPrimitives()

Flip the basic shapes, in custom pads. 

Definition at line 19245 of file pcbnew.py.

def pcbnew.D_PAD.GetAnchorPadShape (   self)
GetAnchorPadShape(D_PAD self) -> PAD_SHAPE_T

PAD_SHAPE_T
D_PAD::GetAnchorPadShape() const

Function GetAnchorPadShape.

the shape of the anchor pad shape, for custom shaped pads. 

Definition at line 18917 of file pcbnew.py.

def pcbnew.D_PAD.GetAttribute (   self)
GetAttribute(D_PAD self) -> PAD_ATTR_T

PAD_ATTR_T
D_PAD::GetAttribute() const 

Definition at line 19418 of file pcbnew.py.

def pcbnew.D_PAD.GetBestAnchorPosition (   self,
  aPos 
)
GetBestAnchorPosition(D_PAD self, VECTOR2I & aPos) -> bool

bool
D_PAD::GetBestAnchorPosition(VECTOR2I &aPos) 

Definition at line 19133 of file pcbnew.py.

def pcbnew.D_PAD.GetBoundingBox (   self)
GetBoundingBox(D_PAD self) -> EDA_RECT

const EDA_RECT
D_PAD::GetBoundingBox() const override

Function GetBoundingBox returns the orthogonal, bounding box of this
object for display purposes.

This box should be an enclosing perimeter for visible components of
this object, and the units should be in the pcb or schematic
coordinate system. It is OK to overestimate the size by a few counts.

Definition at line 20022 of file pcbnew.py.

def pcbnew.D_PAD.GetBoundingRadius (   self)
GetBoundingRadius(D_PAD self) -> int

int
D_PAD::GetBoundingRadius() const

Function GetBoundingRadius returns the radius of a minimum sized
circle which fully encloses this pad.

The center is the pad position 

Definition at line 19857 of file pcbnew.py.

def pcbnew.D_PAD.GetClass (   self)
GetClass(D_PAD self) -> wxString

wxString D_PAD::GetClass()
const override

Function GetClass returns the class name.

wxString 

Definition at line 20008 of file pcbnew.py.

def pcbnew.D_PAD.GetClearance (   self,
  aItem = None 
)
GetClearance(D_PAD self, BOARD_CONNECTED_ITEM aItem=None) -> int
GetClearance(D_PAD self) -> int

int
D_PAD::GetClearance(BOARD_CONNECTED_ITEM *aItem=NULL) const override

Function GetClearance returns the clearance in internal units.

If aItem is not NULL then the returned clearance is the greater of
this object's clearance and aItem's clearance. If aItem is NULL, then
this objects clearance is returned.

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

aItem:  is another BOARD_CONNECTED_ITEM or NULL

int - the clearance in internal units. 

Definition at line 19557 of file pcbnew.py.

def pcbnew.D_PAD.GetCustomShapeAsPolygon (   self)
GetCustomShapeAsPolygon(D_PAD self) -> SHAPE_POLY_SET

const
SHAPE_POLY_SET& D_PAD::GetCustomShapeAsPolygon() const

Accessor to the custom shape as one polygon. 

Definition at line 19223 of file pcbnew.py.

def pcbnew.D_PAD.GetCustomShapeInZoneOpt (   self)
GetCustomShapeInZoneOpt(D_PAD self) -> CUST_PAD_SHAPE_IN_ZONE

CUST_PAD_SHAPE_IN_ZONE D_PAD::GetCustomShapeInZoneOpt() const

the option for the custom pad shape to use as clearance area in copper
zones 

Definition at line 18931 of file pcbnew.py.

def pcbnew.D_PAD.GetDelta (   self)
GetDelta(D_PAD self) -> wxSize

const wxSize&
D_PAD::GetDelta() const 

Definition at line 19066 of file pcbnew.py.

def pcbnew.D_PAD.GetDrillShape (   self)
GetDrillShape(D_PAD self) -> PAD_DRILL_SHAPE_T

PAD_DRILL_SHAPE_T
D_PAD::GetDrillShape() const 

Definition at line 19346 of file pcbnew.py.

def pcbnew.D_PAD.GetDrillSize (   self)
GetDrillSize(D_PAD self) -> wxSize

const wxSize&
D_PAD::GetDrillSize() const 

Definition at line 19086 of file pcbnew.py.

def pcbnew.D_PAD.GetLayerSet (   self)
GetLayerSet(D_PAD self) -> LSET

LSET D_PAD::GetLayerSet()
const override

Function GetLayerSet returns a "layer mask", which is a bitmap of
all layers on which the TRACK segment or VIA physically resides.

int - a layer mask, see layers_id_colors_visibility.h. 

Definition at line 19393 of file pcbnew.py.

def pcbnew.D_PAD.GetLocalClearance (   self)
GetLocalClearance(D_PAD self) -> int

int
D_PAD::GetLocalClearance() const 

Definition at line 19468 of file pcbnew.py.

def pcbnew.D_PAD.GetLocalSolderMaskMargin (   self)
GetLocalSolderMaskMargin(D_PAD self) -> int

int
D_PAD::GetLocalSolderMaskMargin() const 

Definition at line 19448 of file pcbnew.py.

def pcbnew.D_PAD.GetLocalSolderPasteMargin (   self)
GetLocalSolderPasteMargin(D_PAD self) -> int

int
D_PAD::GetLocalSolderPasteMargin() const 

Definition at line 19488 of file pcbnew.py.

def pcbnew.D_PAD.GetLocalSolderPasteMarginRatio (   self)
GetLocalSolderPasteMarginRatio(D_PAD self) -> double

double
D_PAD::GetLocalSolderPasteMarginRatio() const 

Definition at line 19508 of file pcbnew.py.

def pcbnew.D_PAD.GetMenuImage (   self)
GetMenuImage(D_PAD self) -> BITMAP_DEF

BITMAP_DEF
D_PAD::GetMenuImage() const override

Function GetMenuImage returns a pointer to an image to be used in
menus.

The default version returns the right arrow image. Override this
function to provide object specific menu images. The menu image
associated with the item. 

Definition at line 20112 of file pcbnew.py.

def pcbnew.D_PAD.GetMsgPanelInfo (   self,
  aList 
)
GetMsgPanelInfo(D_PAD self, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)

void
D_PAD::GetMsgPanelInfo(std::vector< MSG_PANEL_ITEM > &aList) override

Function GetMsgPanelInfo populates aList of MSG_PANEL_ITEM objects
with it's internal state for display purposes.

This method replaces DisplayInfo() so that KiCad objects no longer
have any knowledge of wxWidgets UI objects.

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

aList:  is the list to populate. 

Definition at line 19938 of file pcbnew.py.

def pcbnew.D_PAD.GetName (   self)
GetName(D_PAD self) -> wxString

const wxString&
D_PAD::GetName() const

the pad name 

Definition at line 18825 of file pcbnew.py.

def pcbnew.D_PAD.GetOblongDrillGeometry (   self,
  aStartPoint,
  aEndPoint,
  aWidth 
)
GetOblongDrillGeometry(D_PAD self, wxPoint aStartPoint, wxPoint aEndPoint, int & aWidth)

void
D_PAD::GetOblongDrillGeometry(wxPoint &aStartPoint, wxPoint
&aEndPoint, int &aWidth) const

Function GetOblongDrillGeometry calculates the start point, end point
and width of an equivalent segment which have the same position and
width as the hole Usefull to plot/draw oblong holes like segments with
rounded ends used in draw and plot functions.

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

aStartPoint:  = first point of the equivalent segment, relative to the
pad position.

aEndPoint:  = second point of the equivalent segment, relative to the
pad position.

aWidth:  = width equivalent segment. 

Definition at line 19356 of file pcbnew.py.

def pcbnew.D_PAD.GetOffset (   self)
GetOffset(D_PAD self) -> wxPoint

const wxPoint&
D_PAD::GetOffset() const 

Definition at line 19106 of file pcbnew.py.

def pcbnew.D_PAD.GetOrientation (   self)
GetOrientation(D_PAD self) -> double

double
D_PAD::GetOrientation() const

Function GetOrientation returns the rotation angle of the pad in
tenths of degrees, but soon degrees. 

Definition at line 19303 of file pcbnew.py.

def pcbnew.D_PAD.GetOrientationDegrees (   self)
GetOrientationDegrees(D_PAD self) -> double

double
D_PAD::GetOrientationDegrees() const 

Definition at line 19316 of file pcbnew.py.

def pcbnew.D_PAD.GetOrientationRadians (   self)
GetOrientationRadians(D_PAD self) -> double

double
D_PAD::GetOrientationRadians() const 

Definition at line 19326 of file pcbnew.py.

def pcbnew.D_PAD.GetPadName (   self)

Definition at line 20334 of file pcbnew.py.

def pcbnew.D_PAD.GetPadToDieLength (   self)
GetPadToDieLength(D_PAD self) -> int

int
D_PAD::GetPadToDieLength() const 

Definition at line 19438 of file pcbnew.py.

def pcbnew.D_PAD.GetParent (   self)
GetParent(D_PAD self) -> MODULE

MODULE* D_PAD::GetParent()
const 

Definition at line 18769 of file pcbnew.py.

def pcbnew.D_PAD.GetPos0 (   self)
GetPos0(D_PAD self) -> wxPoint

const wxPoint&
D_PAD::GetPos0() const 

Definition at line 19008 of file pcbnew.py.

def pcbnew.D_PAD.GetPosition (   self)
GetPosition(D_PAD self) -> wxPoint

const wxPoint&
D_PAD::GetPosition() const override 

Definition at line 18907 of file pcbnew.py.

def pcbnew.D_PAD.GetPrimitives (   self)
GetPrimitives(D_PAD self) -> std::vector< PAD_CS_PRIMITIVE,std::allocator< PAD_CS_PRIMITIVE > > const &

const
std::vector<PAD_CS_PRIMITIVE>& D_PAD::GetPrimitives() const

Accessor to the basic shape list. 

Definition at line 19211 of file pcbnew.py.

def pcbnew.D_PAD.GetRoundRectCornerRadius (   self,
  args 
)
GetRoundRectCornerRadius(D_PAD self) -> int
GetRoundRectCornerRadius(D_PAD self, wxSize aSize) -> int

int
D_PAD::GetRoundRectCornerRadius(const wxSize &aSize) const

Helper function GetRoundRectCornerRadius Has meaning only for rounded
rect pads Returns the radius of the rounded corners of a rectangle
size aSize, using others setting of the pad.

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

aSize:  = size of the of the round rect. Usually the pad size but can
be the size of the pad on solder mask or solder paste

The radius of the rounded corners for this pad size. 

Definition at line 19731 of file pcbnew.py.

def pcbnew.D_PAD.GetRoundRectRadiusRatio (   self)
GetRoundRectRadiusRatio(D_PAD self) -> double

double
D_PAD::GetRoundRectRadiusRatio() const

has meaning only for rounded rect pads

the scaling factor between the smaller Y or Y size and the radius of
the rounded corners. Cannot be > 0.5 the normalized IPC-7351C value is
0.25 

Definition at line 19882 of file pcbnew.py.

def pcbnew.D_PAD.GetSelectMenuText (   self)
GetSelectMenuText(D_PAD self) -> wxString

wxString
D_PAD::GetSelectMenuText() const override

Function GetSelectMenuText returns the text to display to be used in
the selection clarification context menu when multiple items are found
at the current cursor position.

The default version of this function raises an assertion in the debug
mode and returns a string to indicate that it was not overridden to
provide the object specific text.

The menu text string. 

Definition at line 20092 of file pcbnew.py.

def pcbnew.D_PAD.GetShape (   self)
GetShape(D_PAD self) -> PAD_SHAPE_T

PAD_SHAPE_T D_PAD::GetShape()
const

Function GetShape.

the shape of this pad. 

Definition at line 18873 of file pcbnew.py.

def pcbnew.D_PAD.GetSize (   self)
GetSize(D_PAD self) -> wxSize

const wxSize& D_PAD::GetSize()
const 

Definition at line 19046 of file pcbnew.py.

def pcbnew.D_PAD.GetSolderMaskMargin (   self)
GetSolderMaskMargin(D_PAD self) -> int

int
D_PAD::GetSolderMaskMargin() const

Function GetSolderMaskMargin.

the margin for the solder mask layer usually > 0 (mask shape bigger
than pad value is 1 - the local value 2 - if null, the parent
footprint value 1 - if null, the global value 

Definition at line 19581 of file pcbnew.py.

def pcbnew.D_PAD.GetSolderPasteMargin (   self)
GetSolderPasteMargin(D_PAD self) -> wxSize

wxSize
D_PAD::GetSolderPasteMargin() const

Function GetSolderPasteMargin.

the margin for the solder mask layer usually < 0 (mask shape smaller
than pad because the margin can be dependent on the pad size, the
margin has a x and a y value value is 1 - the local value 2 - if null,
the parent footprint value 1 - if null, the global value 

Definition at line 19597 of file pcbnew.py.

def pcbnew.D_PAD.GetSubRatsnest (   self)
GetSubRatsnest(D_PAD self) -> int

int
D_PAD::GetSubRatsnest() const

Function GetSubRatsnest.

int - the netcode 

Definition at line 19914 of file pcbnew.py.

def pcbnew.D_PAD.GetThermalGap (   self)
GetThermalGap(D_PAD self) -> int

int
D_PAD::GetThermalGap() const 

Definition at line 19664 of file pcbnew.py.

def pcbnew.D_PAD.GetThermalWidth (   self)
GetThermalWidth(D_PAD self) -> int

int
D_PAD::GetThermalWidth() const 

Definition at line 19644 of file pcbnew.py.

def pcbnew.D_PAD.GetZoneConnection (   self)
GetZoneConnection(D_PAD self) -> ZoneConnection

ZoneConnection
D_PAD::GetZoneConnection() const 

Definition at line 19624 of file pcbnew.py.

def pcbnew.D_PAD.HitTest (   self,
  args 
)
HitTest(D_PAD self, wxPoint aPosition) -> bool
HitTest(D_PAD self, EDA_RECT aRect, bool aContained, int aAccuracy=0) -> bool
HitTest(D_PAD self, EDA_RECT aRect, bool aContained) -> bool

bool D_PAD::HitTest(const
EDA_RECT &aRect, bool aContained, int aAccuracy=0) const override

Function HitTest tests if the aRect intersects or contains this object
(depending on aContained).

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

aRect:  A reference to an EDA_RECT object containg the area to test.

aContained:  Test if aRect contains this object completly.

aAccuracy:  Increase the item bounding box by this amount.

bool - True if aRect contains this object completly or if aRect
intersects the object and aContained is False, otherwise false. 

Definition at line 19981 of file pcbnew.py.

def pcbnew.D_PAD.ImportSettingsFromMaster (   self,
  aMasterPad 
)
ImportSettingsFromMaster(D_PAD self, D_PAD aMasterPad)

void
D_PAD::ImportSettingsFromMaster(const D_PAD &aMasterPad)

Imports the pad settings from aMasterPad.

The result is "this" has the same settinds (sizes, shapes ... ) as
aMasterPad

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

aMasterPad:  = the template pad 

Definition at line 18779 of file pcbnew.py.

def pcbnew.D_PAD.IncrementPadName (   self,
  aSkipUnconnectable,
  aFillSequenceGaps 
)
IncrementPadName(D_PAD self, bool aSkipUnconnectable, bool aFillSequenceGaps) -> bool

bool
D_PAD::IncrementPadName(bool aSkipUnconnectable, bool
aFillSequenceGaps)

Function IncrementPadName.

Increments the pad name to the next available name in the module.

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

aSkipUnconnectable:  skips any pads that are not connectable (for
example NPTH)

aFillSequenceGaps:  if true, the next reference in a sequence like
A1,A3,A4 will be A2. If false, it will be A5.

pad name incremented 

Definition at line 18837 of file pcbnew.py.

def pcbnew.D_PAD.IsFlipped (   self)
IsFlipped(D_PAD self) -> bool

bool D_PAD::IsFlipped()
const

true if the pad has a footprint parent flipped (on the back/bottom
layer) 

Definition at line 18799 of file pcbnew.py.

def pcbnew.D_PAD.IsOnLayer (   self,
  aLayer 
)
IsOnLayer(D_PAD self, PCB_LAYER_ID aLayer) -> bool

bool
D_PAD::IsOnLayer(PCB_LAYER_ID aLayer) const override

Function IsOnLayer tests to see if this object is on the given layer.

Is virtual so objects like D_PAD, which reside on multiple layers can
do their own form of testing.

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

aLayer:  The layer to test for.

bool - true if on given layer, else false. 

Definition at line 19959 of file pcbnew.py.

def pcbnew.D_PAD.MergePrimitivesAsPolygon (   self,
  aMergedPolygon = None,
  aCircleToSegmentsCount = 32 
)
MergePrimitivesAsPolygon(D_PAD self, SHAPE_POLY_SET aMergedPolygon=None, int aCircleToSegmentsCount=32) -> bool
MergePrimitivesAsPolygon(D_PAD self, SHAPE_POLY_SET aMergedPolygon=None) -> bool
MergePrimitivesAsPolygon(D_PAD self) -> bool

bool
D_PAD::MergePrimitivesAsPolygon(SHAPE_POLY_SET *aMergedPolygon=NULL,
int aCircleToSegmentsCount=32)

Merge all basic shapes, converted to a polygon in one polygon, in
m_customShapeAsPolygon.

true if OK, false in there is more than one polygon in
m_customShapeAsPolygon

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

aMergedPolygon:  = the SHAPE_POLY_SET to fill. if NULL,
m_customShapeAsPolygon is the target

aCircleToSegmentsCount:  = number of segment to approximate a circle
(default = 32) Note: The corners coordinates are relative to the pad
position, orientation 0, 

Definition at line 19143 of file pcbnew.py.

def pcbnew.D_PAD.Move (   self,
  aMoveVector 
)
Move(D_PAD self, wxPoint aMoveVector)

void BOARD_ITEM::Move(const
VECTOR2I &aMoveVector) 

Definition at line 20072 of file pcbnew.py.

def pcbnew.D_PAD.Next (   self)
Next(D_PAD self) -> D_PAD

D_PAD* D_PAD::Next() const 

Definition at line 18760 of file pcbnew.py.

def pcbnew.D_PAD.PadNameEqual (   self,
  other 
)
PadNameEqual(D_PAD self, D_PAD other) -> bool

bool
D_PAD::PadNameEqual(const D_PAD *other) const 

Definition at line 18863 of file pcbnew.py.

def pcbnew.D_PAD.Rotate (   self,
  aRotCentre,
  aAngle 
)
Rotate(D_PAD self, wxPoint aRotCentre, double aAngle)

void BOARD_ITEM::Rotate(const
VECTOR2I &aRotCentre, double aAngle) 

Definition at line 20082 of file pcbnew.py.

def pcbnew.D_PAD.SetAnchorPadShape (   self,
  aShape 
)
SetAnchorPadShape(D_PAD self, PAD_SHAPE_T aShape)

void
D_PAD::SetAnchorPadShape(PAD_SHAPE_T aShape)

Function SetAnchorPadShape Set the shape of the anchor pad for custm
shped pads.

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

the:  shape of the anchor pad shape( currently, only PAD_SHAPE_RECT or
PAD_SHAPE_CIRCLE. 

Definition at line 18961 of file pcbnew.py.

def pcbnew.D_PAD.SetAttribute (   self,
  aAttribute 
)
SetAttribute(D_PAD self, PAD_ATTR_T aAttribute)

void
D_PAD::SetAttribute(PAD_ATTR_T aAttribute) 

Definition at line 19408 of file pcbnew.py.

def pcbnew.D_PAD.SetCustomShapeInZoneOpt (   self,
  aOption 
)
SetCustomShapeInZoneOpt(D_PAD self, CUST_PAD_SHAPE_IN_ZONE aOption)

void
D_PAD::SetCustomShapeInZoneOpt(CUST_PAD_SHAPE_IN_ZONE aOption)

Set the option for the custom pad shape to use as clearance area in
copper zones.

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

aOption:  is the clearance area shape CUST_PAD_SHAPE_IN_ZONE option 

Definition at line 18943 of file pcbnew.py.

def pcbnew.D_PAD.SetDelta (   self,
  aSize 
)
SetDelta(D_PAD self, wxSize aSize)

void D_PAD::SetDelta(const
wxSize &aSize) 

Definition at line 19056 of file pcbnew.py.

def pcbnew.D_PAD.SetDrawCoord (   self)
SetDrawCoord(D_PAD self)

void
D_PAD::SetDrawCoord()

Set absolute coordinates. 

Definition at line 20040 of file pcbnew.py.

def pcbnew.D_PAD.SetDrillShape (   self,
  aDrillShape 
)
SetDrillShape(D_PAD self, PAD_DRILL_SHAPE_T aDrillShape)

void
D_PAD::SetDrillShape(PAD_DRILL_SHAPE_T aDrillShape) 

Definition at line 19336 of file pcbnew.py.

def pcbnew.D_PAD.SetDrillSize (   self,
  aSize 
)
SetDrillSize(D_PAD self, wxSize aSize)

void
D_PAD::SetDrillSize(const wxSize &aSize) 

Definition at line 19076 of file pcbnew.py.

def pcbnew.D_PAD.SetLayerSet (   self,
  aLayerMask 
)
SetLayerSet(D_PAD self, LSET aLayerMask)

void
D_PAD::SetLayerSet(LSET aLayerMask) 

Definition at line 19383 of file pcbnew.py.

def pcbnew.D_PAD.SetLocalClearance (   self,
  aClearance 
)
SetLocalClearance(D_PAD self, int aClearance)

void
D_PAD::SetLocalClearance(int aClearance) 

Definition at line 19478 of file pcbnew.py.

def pcbnew.D_PAD.SetLocalCoord (   self)
SetLocalCoord(D_PAD self)

void
D_PAD::SetLocalCoord()

Set relative coordinates. 

Definition at line 20052 of file pcbnew.py.

def pcbnew.D_PAD.SetLocalSolderMaskMargin (   self,
  aMargin 
)
SetLocalSolderMaskMargin(D_PAD self, int aMargin)

void
D_PAD::SetLocalSolderMaskMargin(int aMargin) 

Definition at line 19458 of file pcbnew.py.

def pcbnew.D_PAD.SetLocalSolderPasteMargin (   self,
  aMargin 
)
SetLocalSolderPasteMargin(D_PAD self, int aMargin)

void
D_PAD::SetLocalSolderPasteMargin(int aMargin) 

Definition at line 19498 of file pcbnew.py.

def pcbnew.D_PAD.SetLocalSolderPasteMarginRatio (   self,
  aRatio 
)
SetLocalSolderPasteMarginRatio(D_PAD self, double aRatio)

void
D_PAD::SetLocalSolderPasteMarginRatio(double aRatio) 

Definition at line 19518 of file pcbnew.py.

def pcbnew.D_PAD.SetName (   self,
  aName 
)
SetName(D_PAD self, wxString aName)

void D_PAD::SetName(const
wxString &aName)

Set the pad name (sometimes called pad number, although it can be an
array reference like AA12). 

Definition at line 18812 of file pcbnew.py.

def pcbnew.D_PAD.SetOffset (   self,
  aOffset 
)
SetOffset(D_PAD self, wxPoint aOffset)

void D_PAD::SetOffset(const
wxPoint &aOffset) 

Definition at line 19096 of file pcbnew.py.

def pcbnew.D_PAD.SetOrientation (   self,
  aAngle 
)
SetOrientation(D_PAD self, double aAngle)

void
D_PAD::SetOrientation(double aAngle)

Function SetOrientation sets the rotation angle of the pad.

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

aAngle:  is tenths of degrees, but will soon be degrees. If it is
outside of 0 - 3600, then it will be normalized before being saved. 

Definition at line 19273 of file pcbnew.py.

def pcbnew.D_PAD.SetOrientationDegrees (   self,
  aOrientation 
)
SetOrientationDegrees(D_PAD self, double aOrientation)

void
D_PAD::SetOrientationDegrees(double aOrientation)

Set orientation in degrees. 

Definition at line 19291 of file pcbnew.py.

def pcbnew.D_PAD.SetPadName (   self,
  aName 
)

Definition at line 20329 of file pcbnew.py.

def pcbnew.D_PAD.SetPadToDieLength (   self,
  aLength 
)
SetPadToDieLength(D_PAD self, int aLength)

void
D_PAD::SetPadToDieLength(int aLength) 

Definition at line 19428 of file pcbnew.py.

def pcbnew.D_PAD.SetPos0 (   self,
  aPos 
)
SetPos0(D_PAD self, wxPoint aPos)

void D_PAD::SetPos0(const
wxPoint &aPos) 

Definition at line 18998 of file pcbnew.py.

def pcbnew.D_PAD.SetPosition (   self,
  aPos 
)
SetPosition(D_PAD self, wxPoint aPos)

void
D_PAD::SetPosition(const wxPoint &aPos) override 

Definition at line 18897 of file pcbnew.py.

def pcbnew.D_PAD.SetPrimitives (   self,
  aPrimitivesList 
)
SetPrimitives(D_PAD self, std::vector< PAD_CS_PRIMITIVE,std::allocator< PAD_CS_PRIMITIVE > > const & aPrimitivesList) -> bool

bool
D_PAD::SetPrimitives(const std::vector< PAD_CS_PRIMITIVE >
&aPrimitivesList)

Import to the basic shape list.

true if OK, false if issues (more than one polygon to build the
polygon shape list) 

Definition at line 19257 of file pcbnew.py.

def pcbnew.D_PAD.SetRoundRectRadiusRatio (   self,
  aRadiusScale 
)
SetRoundRectRadiusRatio(D_PAD self, double aRadiusScale)

void
D_PAD::SetRoundRectRadiusRatio(double aRadiusScale)

has meaning only for rounded rect pads Set the scaling factor between
the smaller Y or Y size and the radius of the rounded corners.

Cannot be < 0.5 and obviously must be > 0 the normalized IPC-7351C
value is 0.25 

Definition at line 19898 of file pcbnew.py.

def pcbnew.D_PAD.SetShape (   self,
  aShape 
)
SetShape(D_PAD self, PAD_SHAPE_T aShape)

void
D_PAD::SetShape(PAD_SHAPE_T aShape) 

Definition at line 18887 of file pcbnew.py.

def pcbnew.D_PAD.SetSize (   self,
  aSize 
)
SetSize(D_PAD self, wxSize aSize)

void D_PAD::SetSize(const
wxSize &aSize) 

Definition at line 19036 of file pcbnew.py.

def pcbnew.D_PAD.SetSubRatsnest (   self,
  aSubRatsnest 
)
SetSubRatsnest(D_PAD self, int aSubRatsnest)

void
D_PAD::SetSubRatsnest(int aSubRatsnest) 

Definition at line 19928 of file pcbnew.py.

def pcbnew.D_PAD.SetThermalGap (   self,
  aGap 
)
SetThermalGap(D_PAD self, int aGap)

void
D_PAD::SetThermalGap(int aGap) 

Definition at line 19654 of file pcbnew.py.

def pcbnew.D_PAD.SetThermalWidth (   self,
  aWidth 
)
SetThermalWidth(D_PAD self, int aWidth)

void
D_PAD::SetThermalWidth(int aWidth) 

Definition at line 19634 of file pcbnew.py.

def pcbnew.D_PAD.SetX (   self,
  x 
)
SetX(D_PAD self, int x)

void D_PAD::SetX(int x) 

Definition at line 18989 of file pcbnew.py.

def pcbnew.D_PAD.SetX0 (   self,
  x 
)
SetX0(D_PAD self, int x)

void D_PAD::SetX0(int x) 

Definition at line 19027 of file pcbnew.py.

def pcbnew.D_PAD.SetY (   self,
  y 
)
SetY(D_PAD self, int y)

void D_PAD::SetY(int y) 

Definition at line 18980 of file pcbnew.py.

def pcbnew.D_PAD.SetY0 (   self,
  y 
)
SetY0(D_PAD self, int y)

void D_PAD::SetY0(int y) 

Definition at line 19018 of file pcbnew.py.

def pcbnew.D_PAD.SetZoneConnection (   self,
  aType 
)
SetZoneConnection(D_PAD self, ZoneConnection aType)

void
D_PAD::SetZoneConnection(ZoneConnection aType) 

Definition at line 19614 of file pcbnew.py.

def pcbnew.D_PAD.ShapePos (   self)
ShapePos(D_PAD self) -> wxPoint

wxPoint D_PAD::ShapePos()
const 

Definition at line 19872 of file pcbnew.py.

def pcbnew.D_PAD.ShowPadAttr (   self)
ShowPadAttr(D_PAD self) -> wxString

wxString
D_PAD::ShowPadAttr() const

Function ShowPadAttr.

the name of the pad type (attribute) : STD, SMD ... 

Definition at line 20143 of file pcbnew.py.

def pcbnew.D_PAD.ShowPadShape (   self)
ShowPadShape(D_PAD self) -> wxString

wxString
D_PAD::ShowPadShape() const

Function ShowPadShape.

the name of the shape 

Definition at line 20129 of file pcbnew.py.

def pcbnew.D_PAD.SMDMask ( )
SMDMask() -> LSET

Definition at line 18728 of file pcbnew.py.

def pcbnew.D_PAD.StandardMask ( )
StandardMask() -> LSET

Definition at line 18720 of file pcbnew.py.

def pcbnew.D_PAD.SwapData (   self,
  aImage 
)
SwapData(D_PAD self, BOARD_ITEM aImage)

void
D_PAD::SwapData(BOARD_ITEM *aImage) override

Swap data between aItem and aImage.

aItem and aImage should have the same type Used in undo redo command
to swap values between an item and its copy Only values like layer,
size .. which are modified by edition are swapped, not the pointers
like Pnext and Pback because aItem is not changed in the linked list

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

aImage:  = the item image which contains data to swap 

Definition at line 20304 of file pcbnew.py.

def pcbnew.D_PAD.TransformShapeWithClearanceToPolygon (   self,
  aCornerBuffer,
  aClearanceValue,
  aCircleToSegmentsCount,
  aCorrectionFactor 
)
TransformShapeWithClearanceToPolygon(D_PAD self, SHAPE_POLY_SET aCornerBuffer, int aClearanceValue, int aCircleToSegmentsCount, double aCorrectionFactor)

void D_PAD::TransformShapeWithClearanceToPolygon(SHAPE_POLY_SET
&aCornerBuffer, int aClearanceValue, int aCircleToSegmentsCount,
double aCorrectionFactor) const

Function TransformShapeWithClearanceToPolygon Convert the pad shape to
a closed polygon Used in filling zones calculations Circles and arcs
are approximated by segments.

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

aCornerBuffer:  = a buffer to store the polygon

aClearanceValue:  = the clearance around the pad

aCircleToSegmentsCount:  = the number of segments to approximate a
circle

aCorrectionFactor:  = the correction to apply to circles radius to
keep clearance when the circle is approximated by segment bigger or
equal to the real clearance value (usually near from 1.0) 

Definition at line 19528 of file pcbnew.py.

def pcbnew.D_PAD.UnplatedHoleMask ( )
UnplatedHoleMask() -> LSET

Definition at line 18744 of file pcbnew.py.

def pcbnew.D_PAD.ViewBBox (   self)
ViewBBox(D_PAD self) -> BOX2I const

const BOX2I D_PAD::ViewBBox()
const override

Function ViewBBox() returns the bounding box of the item covering all
its layers.

BOX2I - the current bounding box 

Definition at line 20259 of file pcbnew.py.

def pcbnew.D_PAD.ViewGetLayers (   self,
  aLayers,
  aCount 
)
ViewGetLayers(D_PAD self, int [] aLayers, int & aCount)

void
D_PAD::ViewGetLayers(int aLayers[], int &aCount) const override

Function ViewGetLayers() Returns the all the layers within the VIEW
the object is painted on.

For instance, a D_PAD spans zero or more copper layers and a few
technical layers. ViewDraw() or PAINTER::Draw() is repeatedly called
for each of the layers returned by ViewGetLayers(), depending on the
rendering order.

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

aLayers[]:  output layer index array

aCount:  number of layer indices in aLayers[] 

Definition at line 20209 of file pcbnew.py.

def pcbnew.D_PAD.ViewGetLOD (   self,
  aLayer,
  aView 
)
ViewGetLOD(D_PAD self, int aLayer, KIGFX::VIEW * aView) -> unsigned int

unsigned int
D_PAD::ViewGetLOD(int aLayer, KIGFX::VIEW *aView) const override

Function ViewGetLOD() Returns the level of detail (LOD) of the item.

A level of detail is the minimal VIEW scale that is sufficient for an
item to be shown on a given layer.

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

aLayer:  current drawing layer

aView:  pointer to the VIEW device we are drawing on

the level of detail. 0 always show the item, because the actual zoom
level (or VIEW scale) is always > 0 

Definition at line 20234 of file pcbnew.py.

Member Data Documentation

tuple pcbnew.D_PAD.ClassOf = staticmethod(ClassOf)
static

Definition at line 18757 of file pcbnew.py.

tuple pcbnew.D_PAD.Compare = staticmethod(Compare)
static

Definition at line 20069 of file pcbnew.py.

tuple pcbnew.D_PAD.ConnSMDMask = staticmethod(ConnSMDMask)
static

Definition at line 18741 of file pcbnew.py.

tuple pcbnew.D_PAD.SMDMask = staticmethod(SMDMask)
static

Definition at line 18733 of file pcbnew.py.

tuple pcbnew.D_PAD.StandardMask = staticmethod(StandardMask)
static

Definition at line 18725 of file pcbnew.py.

pcbnew.D_PAD.this

Definition at line 18718 of file pcbnew.py.

tuple pcbnew.D_PAD.UnplatedHoleMask = staticmethod(UnplatedHoleMask)
static

Definition at line 18749 of file pcbnew.py.


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