KiCad Pcbnew Python Scripting
|
Circular pad array. More...
Public Member Functions | |
def | __init__ (self, pad, n, r, angle_offset=0, centre=pcbnew.VECTOR2I(0, 0), clockwise=True, padRotationEnable=False, padRotationOffset=0) |
def | NamingFunction (self, n) |
Naming around the circle, CW or CCW according to the clockwise flag. More... | |
def | AddPadsToModule (self, dc) |
Create the pads and add them to the module in the correct positions. More... | |
Public Member Functions inherited from plugins.PadArray.PadArray | |
def | __init__ (self, pad) |
def | SetPinNames (self, pinNames) |
Set a name for all the pins. More... | |
def | SetFirstPadType (self, firstPad) |
If the array has a different first pad, this is the pad that is used. More... | |
def | SetFirstPadInArray (self, fpNum) |
Set the numbering for the first pad in the array. More... | |
def | AddPad (self, pad) |
Add a pad to the array, under the same moodule as the main prototype pad. More... | |
def | GetPad (self, is_first_pad, pos) |
Get a pad in the array with the given position. More... | |
def | GetName (self, *args, **kwargs) |
Get the pad name from the naming function, or the pre-set pinNames parameter (set with SetPinNames) More... | |
def | NamingFunction (self, *args, **kwargs) |
Implement this as needed for each array type. More... | |
Public Attributes | |
n | |
r | |
angle_offset | |
centre | |
clockwise | |
padRotationEnable | |
padRotationOffset | |
Public Attributes inherited from plugins.PadArray.PadArray | |
firstPadNum | |
pinNames | |
pad | |
firstPad | |
Circular pad array.
Definition at line 372 of file PadArray.py.
def plugins.PadArray.PadCircleArray.__init__ | ( | self, | |
pad, | |||
n, | |||
r, | |||
angle_offset = 0 , |
|||
centre = pcbnew.VECTOR2I(0, 0) , |
|||
clockwise = True , |
|||
padRotationEnable = False , |
|||
padRotationOffset = 0 |
|||
) |
pad | the prototypical pad |
n | number of pads in array |
r | the circle radius |
angle_offset | angle of the first pad |
centre | array centre point |
clockwise | array increases in a clockwise direction |
padRotationEnable | also rotate pads when placing |
padRotationOffset | rotation of first pad |
Reimplemented from plugins.PadArray.PadArray.
Definition at line 377 of file PadArray.py.
def plugins.PadArray.PadCircleArray.AddPadsToModule | ( | self, | |
dc | |||
) |
Create the pads and add them to the module in the correct positions.
dc | the drawing context |
Definition at line 406 of file PadArray.py.
def plugins.PadArray.PadCircleArray.NamingFunction | ( | self, | |
n | |||
) |
Naming around the circle, CW or CCW according to the clockwise flag.
Reimplemented from plugins.PadArray.PadArray.
Definition at line 400 of file PadArray.py.
plugins.PadArray.PadCircleArray.angle_offset |
Definition at line 394 of file PadArray.py.
plugins.PadArray.PadCircleArray.centre |
Definition at line 395 of file PadArray.py.
plugins.PadArray.PadCircleArray.clockwise |
Definition at line 396 of file PadArray.py.
plugins.PadArray.PadCircleArray.n |
Definition at line 392 of file PadArray.py.
plugins.PadArray.PadCircleArray.padRotationEnable |
Definition at line 397 of file PadArray.py.
plugins.PadArray.PadCircleArray.padRotationOffset |
Definition at line 398 of file PadArray.py.
plugins.PadArray.PadCircleArray.r |
Definition at line 393 of file PadArray.py.