|
KiCad Pcbnew Python Scripting
|

Public Member Functions | |
| def | __init__ (self, *args, **kwargs) |
| def | SetParentGroup (self, aGroup) |
| def | GetParentGroup (self) |
| def | GetX (self) |
| def | GetY (self) |
| def | GetCenter (self) |
| def | SetX (self, aX) |
| def | SetY (self, aY) |
| def | IsConnected (self) |
| def | IsOnCopperLayer (self) |
| def | HasHole (self) |
| def | IsTented (self) |
| def | GetEffectiveShape (self, *args) |
| def | GetEffectiveHoleShape (self) |
| def | GetParent (self) |
| def | GetParentFootprint (self) |
| def | HasLineStroke (self) |
| def | GetStroke (self) |
| def | SetStroke (self, aStroke) |
| def | GetLayer (self) |
| def | GetLayerSet (self) |
| def | SetLayerSet (self, aLayers) |
| def | SetLayer (self, aLayer) |
| def | Duplicate (self) |
| def | SwapItemData (self, aImage) |
| def | IsOnLayer (self, aLayer) |
| def | IsKnockout (self) |
| def | SetIsKnockout (self, aKnockout) |
| def | IsLocked (self) |
| def | SetLocked (self, aLocked) |
| def | DeleteStructure (self) |
| def | Move (self, aMoveVector) |
| def | Rotate (self, aRotCentre, aAngle) |
| def | Flip (self, aCentre, aFlipLeftRight) |
| def | GetBoard (self, *args) |
| def | GetLayerName (self) |
| def | TransformShapeToPolygon (self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False) |
| 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 | GetParent (self) |
| def | SetParent (self, aParent) |
| def | IsModified (self) |
| def | IsNew (self) |
| def | IsMoving (self) |
| def | IsSelected (self) |
| def | IsEntered (self) |
| def | IsBrightened (self) |
| def | IsRollover (self) |
| def | SetSelected (self) |
| def | SetBrightened (self) |
| def | ClearSelected (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 | XorFlags (self, aMask) |
| def | ClearFlags (self, *args) |
| def | GetFlags (self) |
| def | HasFlag (self, aFlag) |
| def | GetEditFlags (self) |
| def | ClearTempFlags (self) |
| def | ClearEditFlags (self) |
| def | RenderAsBitmap (self, aWorldScale) |
| def | SetIsShownAsBitmap (self, aBitmap) |
| def | IsShownAsBitmap (self) |
| def | IsType (self, aScanTypes) |
| def | SetForceVisible (self, aEnable) |
| def | IsForceVisible (self) |
| def | GetMsgPanelInfo (self, aFrame, aList) |
| def | GetFriendlyName (self) |
| def | HitTest (self, *args) |
| def | GetBoundingBox (self) |
| def | GetPosition (self) |
| def | SetPosition (self, aPos) |
| def | GetFocusPosition (self) |
| def | GetSortPosition (self) |
| def | Clone (self) |
| def | Visit (self, inspector, testData, aScanTypes) |
| def | GetClass (self) |
| def | GetTypeDesc (self) |
| def | GetItemDescription (self, aUnitsProvider) |
| def | GetMenuImage (self) |
| def | Matches (self, aSearchData, aAuxData) |
| def | Replace (self, *args) |
| def | IsReplaceable (self) |
| def | __lt__ (self, aItem) |
| def | ViewBBox (self) |
| def | ViewGetLayers (self, aLayers, aCount) |
Properties | |
| thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
Properties inherited from pcbnew.EDA_ITEM | |
| thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
| m_Uuid = property(_pcbnew.EDA_ITEM_m_Uuid_get, doc=) | |
Additional Inherited Members | |
Static Public Member Functions inherited from pcbnew.EDA_ITEM | |
| def | Sort (aLeft, aRight) |
| def pcbnew.BOARD_ITEM.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs | ||
| ) |
Reimplemented from pcbnew.EDA_ITEM.
Reimplemented in pcbnew.DELETED_BOARD_ITEM, pcbnew.PAD, pcbnew.PCB_ARC, pcbnew.PCB_VIA, pcbnew.ZONE, pcbnew.FP_ZONE, pcbnew.PCB_SHAPE, pcbnew.PCB_TARGET, pcbnew.FP_SHAPE, pcbnew.FP_TEXT, pcbnew.NETINFO_ITEM, pcbnew.PCB_BITMAP, pcbnew.BOARD, pcbnew.FOOTPRINT, pcbnew.BOARD_ITEM_CONTAINER, pcbnew.BOARD_CONNECTED_ITEM, pcbnew.PCB_DIMENSION_BASE, pcbnew.BOARD, pcbnew.PCB_MARKER, pcbnew.PCB_GROUP, pcbnew.PCB_DIM_ORTHOGONAL, pcbnew.PCB_DIM_RADIAL, pcbnew.PCB_DIM_LEADER, pcbnew.PCB_DIM_CENTER, pcbnew.PCB_DIM_ALIGNED, pcbnew.PCB_TRACK, pcbnew.FP_TEXTBOX, pcbnew.PCB_TEXTBOX, and pcbnew.PCB_TEXT.
| def pcbnew.BOARD_ITEM.Cast | ( | self | ) |
| def pcbnew.BOARD_ITEM.DeleteStructure | ( | self | ) |
| def pcbnew.BOARD_ITEM.Duplicate | ( | self | ) |
| def pcbnew.BOARD_ITEM.Flip | ( | self, | |
| aCentre, | |||
| aFlipLeftRight | |||
| ) |
| def pcbnew.BOARD_ITEM.GetBoard | ( | self, | |
| * | args | ||
| ) |
| def pcbnew.BOARD_ITEM.GetCenter | ( | self | ) |
| def pcbnew.BOARD_ITEM.GetEffectiveHoleShape | ( | self | ) |
| def pcbnew.BOARD_ITEM.GetEffectiveShape | ( | self, | |
| * | args | ||
| ) |
GetEffectiveShape(BOARD_ITEM self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >
Reimplemented in pcbnew.PAD, pcbnew.PCB_TRACK, pcbnew.PCB_ARC, pcbnew.PCB_VIA, pcbnew.ZONE, pcbnew.PCB_SHAPE, pcbnew.PCB_TEXT, pcbnew.PCB_TEXTBOX, pcbnew.PCB_DIMENSION_BASE, pcbnew.PCB_MARKER, pcbnew.PCB_TARGET, pcbnew.FP_TEXT, pcbnew.FP_TEXTBOX, pcbnew.PCB_GROUP, pcbnew.PCB_BITMAP, and pcbnew.FOOTPRINT.
| def pcbnew.BOARD_ITEM.GetLayer | ( | self | ) |
| def pcbnew.BOARD_ITEM.GetLayerName | ( | self | ) |
GetLayerName(BOARD_ITEM self) -> wxString
Reimplemented in pcbnew.BOARD.
| def pcbnew.BOARD_ITEM.GetLayerSet | ( | self | ) |
| def pcbnew.BOARD_ITEM.GetParent | ( | self | ) |
GetParent(BOARD_ITEM self) -> BOARD_ITEM_CONTAINER
Reimplemented from pcbnew.EDA_ITEM.
Reimplemented in pcbnew.PAD, and pcbnew.NETINFO_ITEM.
| def pcbnew.BOARD_ITEM.GetParentFootprint | ( | self | ) |
GetParentFootprint(BOARD_ITEM self) -> BOARD_ITEM_CONTAINER
Reimplemented in pcbnew.PCB_SHAPE.
| def pcbnew.BOARD_ITEM.GetParentGroup | ( | self | ) |
| def pcbnew.BOARD_ITEM.GetStroke | ( | self | ) |
| def pcbnew.BOARD_ITEM.GetX | ( | self | ) |
| def pcbnew.BOARD_ITEM.GetY | ( | self | ) |
| def pcbnew.BOARD_ITEM.HasHole | ( | self | ) |
| def pcbnew.BOARD_ITEM.HasLineStroke | ( | self | ) |
| def pcbnew.BOARD_ITEM.IsConnected | ( | self | ) |
| def pcbnew.BOARD_ITEM.IsKnockout | ( | self | ) |
| def pcbnew.BOARD_ITEM.IsLocked | ( | self | ) |
| def pcbnew.BOARD_ITEM.IsOnCopperLayer | ( | self | ) |
| def pcbnew.BOARD_ITEM.IsOnLayer | ( | self, | |
| aLayer | |||
| ) |
| def pcbnew.BOARD_ITEM.IsTented | ( | self | ) |
| def pcbnew.BOARD_ITEM.Move | ( | self, | |
| aMoveVector | |||
| ) |
| def pcbnew.BOARD_ITEM.Rotate | ( | self, | |
| aRotCentre, | |||
| aAngle | |||
| ) |
| def pcbnew.BOARD_ITEM.SetIsKnockout | ( | self, | |
| aKnockout | |||
| ) |
| def pcbnew.BOARD_ITEM.SetLayer | ( | self, | |
| aLayer | |||
| ) |
| def pcbnew.BOARD_ITEM.SetLayerSet | ( | self, | |
| aLayers | |||
| ) |
| def pcbnew.BOARD_ITEM.SetLocked | ( | self, | |
| aLocked | |||
| ) |
| def pcbnew.BOARD_ITEM.SetParentGroup | ( | self, | |
| aGroup | |||
| ) |
| def pcbnew.BOARD_ITEM.SetStroke | ( | self, | |
| aStroke | |||
| ) |
| def pcbnew.BOARD_ITEM.SetX | ( | self, | |
| aX | |||
| ) |
SetX(BOARD_ITEM self, int aX)
Reimplemented in pcbnew.PAD.
Definition at line 9454 of file pcbnew.py.

| def pcbnew.BOARD_ITEM.SetY | ( | self, | |
| aY | |||
| ) |
SetY(BOARD_ITEM self, int aY)
Reimplemented in pcbnew.PAD.
Definition at line 9458 of file pcbnew.py.

| def pcbnew.BOARD_ITEM.SwapItemData | ( | self, | |
| aImage | |||
| ) |
| def pcbnew.BOARD_ITEM.TransformShapeToPolygon | ( | self, | |
| aBuffer, | |||
| aLayer, | |||
| aClearance, | |||
| aError, | |||
| aErrorLoc, | |||
ignoreLineWidth = False |
|||
| ) |
TransformShapeToPolygon(BOARD_ITEM self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)
Reimplemented in pcbnew.PAD, pcbnew.PCB_TEXT, pcbnew.PCB_TEXTBOX, pcbnew.PCB_DIMENSION_BASE, pcbnew.FP_TEXTBOX, pcbnew.PCB_TRACK, pcbnew.ZONE, pcbnew.PCB_SHAPE, and pcbnew.PCB_TARGET.
|
static |