KiCad Pcbnew Python Scripting
|
Public Member Functions | |
__init__ (self, *args, **kwargs) | |
Clone (self) | |
GetClearance (self, aOther) | |
IsNull (self) | |
Collide (self, *args) | |
BBox (self, aClearance=0) | |
Centre (self) | |
Distance (self, aP) | |
SquaredDistance (self, aP, aOutlineOnly=False) | |
NearestPoints (self, aOther, aPtThis, aPtOther) | |
PointInside (self, aPt, aAccuracy=0, aUseBBoxCache=False) | |
TransformToPolygon (self, aBuffer, aError, aErrorLoc) | |
Rotate (self, *args) | |
GetStart (self) | |
GetEnd (self) | |
GetWidth (self) | |
SetWidth (self, aWidth) | |
Move (self, aVector) | |
IsSolid (self) | |
Parse (self, aStream) | |
Format (self, aCplusPlus=True) | |
Cast (self) | |
![]() | |
__init__ (self, aType) | |
Type (self) | |
TypeName (self) | |
HasIndexableSubshapes (self) | |
GetIndexableSubshapeCount (self) | |
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") | |
![]() | |
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
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.
pcbnew.SHAPE.Centre | ( | self | ) |
pcbnew.SHAPE.Clone | ( | self | ) |
Clone(SHAPE self) -> SHAPE
Reimplemented in pcbnew.SHAPE_COMPOUND.
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_ARC, pcbnew.SHAPE_CIRCLE, pcbnew.SHAPE_COMPOUND, pcbnew.SHAPE_LINE_CHAIN, pcbnew.SHAPE_LINE_CHAIN_BASE, pcbnew.SHAPE_POLY_SET, pcbnew.SHAPE_RECT, pcbnew.SHAPE_SEGMENT, and pcbnew.SHAPE_SIMPLE.
pcbnew.SHAPE.Distance | ( | self, | |
aP ) |
Distance(SHAPE self, VECTOR2I aP) -> int
Reimplemented in pcbnew.SHAPE_COMPOUND, and pcbnew.SHAPE_LINE_CHAIN.
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.
pcbnew.SHAPE.GetClearance | ( | self, | |
aOther ) |
pcbnew.SHAPE.GetEnd | ( | self | ) |
pcbnew.SHAPE.GetStart | ( | self | ) |
pcbnew.SHAPE.GetWidth | ( | self | ) |
pcbnew.SHAPE.Move | ( | self, | |
aVector ) |
pcbnew.SHAPE.NearestPoints | ( | self, | |
aOther, | |||
aPtThis, | |||
aPtOther ) |
NearestPoints(SHAPE self, SHAPE aOther, VECTOR2I aPtThis, VECTOR2I aPtOther) -> bool
Reimplemented in pcbnew.SHAPE_ARC.
pcbnew.SHAPE.Parse | ( | self, | |
aStream ) |
pcbnew.SHAPE.PointInside | ( | self, | |
aPt, | |||
aAccuracy = 0, | |||
aUseBBoxCache = False ) |
PointInside(SHAPE self, VECTOR2I aPt, int aAccuracy=0, bool aUseBBoxCache=False) -> bool
Reimplemented in pcbnew.SHAPE_LINE_CHAIN_BASE, and pcbnew.SHAPE_POLY_SET.
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.
pcbnew.SHAPE.SetWidth | ( | self, | |
aWidth ) |
pcbnew.SHAPE.SquaredDistance | ( | self, | |
aP, | |||
aOutlineOnly = False ) |
SquaredDistance(SHAPE self, VECTOR2I aP, bool aOutlineOnly=False) -> SEG::ecoord
Reimplemented in pcbnew.SHAPE_LINE_CHAIN_BASE, and pcbnew.SHAPE_POLY_SET.
pcbnew.SHAPE.TransformToPolygon | ( | self, | |
aBuffer, | |||
aError, | |||
aErrorLoc ) |
|
static |
|
static |