![]() |
KiCad Pcbnew Python Scripting
|

Public Member Functions | |
| def | __init__ (self, *args, **kwargs) |
| "SHAPE *" | Clone (self) |
| "bool" | IsNull (self) |
| "bool" | Collide (self, *args) |
| "BOX2I const" | BBox (self, "int" aClearance=0) |
| "VECTOR2I" | Centre (self) |
| "void" | Rotate (self, *args) |
| "void" | Move (self, "VECTOR2I" aVector) |
| "bool" | IsSolid (self) |
| "bool" | Parse (self, "std::stringstream &" aStream) |
| "std::string const" | Format (self) |
Public Member Functions inherited from pcbnew.SHAPE_BASE | |
| def | __init__ (self, "SHAPE_TYPE" aType) |
| "SHAPE_TYPE" | Type (self) |
| "wxString" | TypeName (self) |
| "bool" | HasIndexableSubshapes (self) |
| "size_t" | GetIndexableSubshapeCount (self) |
| "void" | GetIndexableSubshapes (self, "std::vector< SHAPE *,std::allocator< SHAPE * > > &" 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_LINE_CHAIN, pcbnew.SHAPE_POLY_SET, and pcbnew.SHAPE_LINE_CHAIN_BASE.
| "BOX2I const" pcbnew.SHAPE.BBox | ( | self, | |
| "int" | aClearance = 0 |
||
| ) |
BBox(SHAPE self, int aClearance=0) -> BOX2I const
Reimplemented in pcbnew.SHAPE_LINE_CHAIN, and pcbnew.SHAPE_POLY_SET.
| "VECTOR2I" pcbnew.SHAPE.Centre | ( | self | ) |
| "SHAPE *" pcbnew.SHAPE.Clone | ( | self | ) |
Clone(SHAPE self) -> SHAPE
Reimplemented in pcbnew.SHAPE_LINE_CHAIN, and pcbnew.SHAPE_POLY_SET.
Definition at line 4243 of file pcbnew.py.

| "bool" 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 const & aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
Reimplemented in pcbnew.SHAPE_LINE_CHAIN_BASE, pcbnew.SHAPE_LINE_CHAIN, and pcbnew.SHAPE_POLY_SET.
Definition at line 4251 of file pcbnew.py.

| "std.string const" pcbnew.SHAPE.Format | ( | self | ) |
Format(SHAPE self) -> string
Reimplemented in pcbnew.SHAPE_LINE_CHAIN, and pcbnew.SHAPE_POLY_SET.
| "bool" pcbnew.SHAPE.IsNull | ( | self | ) |
| "bool" pcbnew.SHAPE.IsSolid | ( | self | ) |
IsSolid(SHAPE self) -> bool
Reimplemented in pcbnew.SHAPE_LINE_CHAIN, and pcbnew.SHAPE_POLY_SET.
| "void" pcbnew.SHAPE.Move | ( | self, | |
| "VECTOR2I" | aVector | ||
| ) |
Move(SHAPE self, VECTOR2I aVector)
Reimplemented in pcbnew.SHAPE_LINE_CHAIN, and pcbnew.SHAPE_POLY_SET.
| "bool" pcbnew.SHAPE.Parse | ( | self, | |
| "std::stringstream &" | aStream | ||
| ) |
Parse(SHAPE self, std::stringstream & aStream) -> bool
Reimplemented in pcbnew.SHAPE_LINE_CHAIN, and pcbnew.SHAPE_POLY_SET.
| "void" pcbnew.SHAPE.Rotate | ( | self, | |
| * | args | ||
| ) |
Rotate(SHAPE self, double aAngle, VECTOR2I aCenter={ 0, 0 })
Reimplemented in pcbnew.SHAPE_LINE_CHAIN, and pcbnew.SHAPE_POLY_SET.
|
static |
|
static |