|
KiCad Pcbnew Python Scripting
|

Public Member Functions | |
| def | __init__ (self, *args, **kwargs) |
| def | Clone (self) |
| def | GetClearance (self, aOther) |
| def | IsNull (self) |
| def | Collide (self, *args) |
| def | BBox (self, aClearance=0) |
| def | Centre (self) |
| def | Rotate (self, *args) |
| def | Move (self, aVector) |
| def | IsSolid (self) |
| def | Parse (self, aStream) |
| def | Format (self, aCplusPlus=True) |
| def | Cast (self) |
Public Member Functions inherited from pcbnew.SHAPE_BASE | |
| def | __init__ (self, aType) |
| def | Type (self) |
| def | TypeName (self) |
| def | HasIndexableSubshapes (self) |
| def | GetIndexableSubshapeCount (self) |
| def | GetIndexableSubshapes (self, aSubshapes) |
Static Public Attributes | |
| MIN_PRECISION_IU = _pcbnew.SHAPE_MIN_PRECISION_IU | |
Properties | |
| thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
Properties inherited from pcbnew.SHAPE_BASE | |
| thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
| def pcbnew.SHAPE.__init__ | ( | self, | |
| * | aType, | ||
| ** | kwargs | ||
| ) |
__init__(SHAPE_BASE self, SHAPE_TYPE aType) -> SHAPE_BASE
Reimplemented from pcbnew.SHAPE_BASE.
Reimplemented in pcbnew.SHAPE_CIRCLE, pcbnew.SHAPE_COMPOUND, pcbnew.SHAPE_LINE_CHAIN, pcbnew.SHAPE_POLY_SET, pcbnew.SHAPE_RECT, pcbnew.SHAPE_SEGMENT, pcbnew.SHAPE_SIMPLE, pcbnew.SHAPE_LINE_CHAIN_BASE, and pcbnew.SHAPE_ARC.
| def pcbnew.SHAPE.BBox | ( | self, | |
aClearance = 0 |
|||
| ) |
BBox(SHAPE self, int aClearance=0) -> BOX2I
Reimplemented in pcbnew.SHAPE_ARC, pcbnew.SHAPE_CIRCLE, pcbnew.SHAPE_COMPOUND, pcbnew.SHAPE_LINE_CHAIN, pcbnew.SHAPE_POLY_SET, pcbnew.SHAPE_RECT, pcbnew.SHAPE_SEGMENT, and pcbnew.SHAPE_SIMPLE.
| def pcbnew.SHAPE.Centre | ( | self | ) |
| def pcbnew.SHAPE.Clone | ( | self | ) |
Clone(SHAPE self) -> SHAPE
Reimplemented in pcbnew.SHAPE_COMPOUND.
| def pcbnew.SHAPE.Collide | ( | self, | |
| * | args | ||
| ) |
Collide(SHAPE self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
Collide(SHAPE self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
Collide(SHAPE self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
Collide(SHAPE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
Reimplemented in pcbnew.SHAPE_LINE_CHAIN_BASE, pcbnew.SHAPE_ARC, pcbnew.SHAPE_COMPOUND, pcbnew.SHAPE_LINE_CHAIN, pcbnew.SHAPE_POLY_SET, pcbnew.SHAPE_RECT, pcbnew.SHAPE_SEGMENT, pcbnew.SHAPE_CIRCLE, and pcbnew.SHAPE_SIMPLE.
Definition at line 5907 of file pcbnew.py.

| def pcbnew.SHAPE.Format | ( | self, | |
aCplusPlus = True |
|||
| ) |
Format(SHAPE self, bool aCplusPlus=True) -> string
Reimplemented in pcbnew.SHAPE_CIRCLE, pcbnew.SHAPE_COMPOUND, pcbnew.SHAPE_LINE_CHAIN, pcbnew.SHAPE_POLY_SET, pcbnew.SHAPE_RECT, and pcbnew.SHAPE_SEGMENT.
| def pcbnew.SHAPE.GetClearance | ( | self, | |
| aOther | |||
| ) |
| def pcbnew.SHAPE.IsNull | ( | self | ) |
| def pcbnew.SHAPE.IsSolid | ( | self | ) |
| def pcbnew.SHAPE.Move | ( | self, | |
| aVector | |||
| ) |
| def pcbnew.SHAPE.Parse | ( | self, | |
| aStream | |||
| ) |
| def pcbnew.SHAPE.Rotate | ( | self, | |
| * | args | ||
| ) |
Rotate(SHAPE self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })
Reimplemented in pcbnew.SHAPE_CIRCLE, pcbnew.SHAPE_COMPOUND, pcbnew.SHAPE_LINE_CHAIN, pcbnew.SHAPE_POLY_SET, pcbnew.SHAPE_RECT, pcbnew.SHAPE_SEGMENT, and pcbnew.SHAPE_SIMPLE.
|
static |
|
static |