KiCad Pcbnew Python Scripting
|
Public Member Functions | |
def | __init__ (self, *args) |
"void" | SetPosition (self, "wxPoint" aPos) |
"wxPoint" | GetPosition (self) |
"void" | SetShape (self, "int" aShape) |
"int" | GetShape (self) |
"void" | SetSize (self, "int" aSize) |
"int" | GetSize (self) |
"void" | SetWidth (self, "int" aWidth) |
"int" | GetWidth (self) |
"void" | Move (self, "wxPoint" aMoveVector) |
"void" | Rotate (self, "wxPoint" aRotCentre, "double" aAngle) |
"void" | Flip (self, "wxPoint" aCentre, "bool" aFlipLeftRight) |
"wxString" | GetClass (self) |
"bool" | HitTest (self, *args) |
"EDA_RECT const" | GetBoundingBox (self) |
"std::shared_ptr< SHAPE >" | GetEffectiveShape (self, *args) |
"wxString" | GetSelectMenuText (self, "EDA_UNITS" aUnits) |
"BITMAPS" | GetMenuImage (self) |
"EDA_ITEM *" | Clone (self) |
"void" | SwapData (self, "BOARD_ITEM" aImage) |
"void" | GetMsgPanelInfo (self, "EDA_DRAW_FRAME *" aFrame, "std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > &" aList) |
"void" | TransformShapeWithClearanceToPolygon (self, "SHAPE_POLY_SET" aCornerBuffer, "PCB_LAYER_ID" aLayer, "int" aClearanceValue, "int" aError, "ERROR_LOC" aErrorLoc, "bool" ignoreLineWidth=False) |
Public Member Functions inherited from pcbnew.BOARD_ITEM | |
def | __init__ (self, *args, **kwargs) |
"void" | SetParentGroup (self, "PCB_GROUP" aGroup) |
"PCB_GROUP *" | GetParentGroup (self) |
"int" | GetX (self) |
"int" | GetY (self) |
"wxPoint" | GetCenter (self) |
"void" | SetX (self, "int" aX) |
"void" | SetY (self, "int" aY) |
"bool" | IsConnected (self) |
"bool" | IsOnCopperLayer (self) |
"std::shared_ptr< SHAPE >" | GetEffectiveShape (self, *args) |
"BOARD_ITEM_CONTAINER *" | GetParent (self) |
"BOARD_ITEM_CONTAINER *" | GetParentFootprint (self) |
"PCB_LAYER_ID" | GetLayer (self) |
"LSET" | GetLayerSet (self) |
"void" | SetLayerSet (self, "LSET" aLayers) |
"void" | SetLayer (self, "PCB_LAYER_ID" aLayer) |
"BOARD_ITEM *" | Duplicate (self) |
"void" | SwapData (self, "BOARD_ITEM" aImage) |
"bool" | IsOnLayer (self, "PCB_LAYER_ID" aLayer) |
"bool" | IsTrack (self) |
"bool" | IsLocked (self) |
"void" | SetLocked (self, "bool" aLocked) |
"void" | DeleteStructure (self) |
"void" | Move (self, *args) |
"void" | Rotate (self, *args) |
"void" | Flip (self, *args) |
"BOARD *" | GetBoard (self, *args) |
"wxString" | GetLayerName (self) |
"void" | ViewGetLayers (self, "int []" aLayers, "int &" aCount) |
"void" | TransformShapeWithClearanceToPolygon (self, "SHAPE_POLY_SET" aCornerBuffer, "PCB_LAYER_ID" aLayer, "int" aClearanceValue, "int" aError, "ERROR_LOC" aErrorLoc, "bool" 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) |
"KICAD_T" | Type (self) |
"EDA_ITEM *" | GetParent (self) |
"void" | SetParent (self, "EDA_ITEM" aParent) |
"bool" | IsModified (self) |
"bool" | IsNew (self) |
"bool" | IsMoving (self) |
"bool" | IsDragging (self) |
"bool" | IsWireImage (self) |
"bool" | IsSelected (self) |
"bool" | IsEntered (self) |
"bool" | IsResized (self) |
"bool" | IsBrightened (self) |
"void" | SetWireImage (self) |
"void" | SetSelected (self) |
"void" | SetBrightened (self) |
"void" | ClearSelected (self) |
"void" | ClearBrightened (self) |
"void" | SetModified (self) |
"int" | GetState (self, "EDA_ITEM_FLAGS" type) |
"void" | SetState (self, "EDA_ITEM_FLAGS" type, "bool" state) |
"EDA_ITEM_FLAGS" | GetStatus (self) |
"void" | SetStatus (self, "EDA_ITEM_FLAGS" aStatus) |
"void" | SetFlags (self, "EDA_ITEM_FLAGS" aMask) |
"void" | ClearFlags (self, *args) |
"EDA_ITEM_FLAGS" | GetFlags (self) |
"bool" | HasFlag (self, "EDA_ITEM_FLAGS" aFlag) |
"EDA_ITEM_FLAGS" | GetEditFlags (self) |
"void" | ClearTempFlags (self) |
"void" | ClearEditFlags (self) |
"bool" | IsType (self, "KICAD_T const []" aScanTypes) |
"void" | SetForceVisible (self, "bool" aEnable) |
"bool" | IsForceVisible (self) |
"void" | GetMsgPanelInfo (self, "EDA_DRAW_FRAME *" aFrame, "std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > &" aList) |
"bool" | HitTest (self, *args) |
"EDA_RECT const" | GetBoundingBox (self) |
"wxPoint" | GetPosition (self) |
"void" | SetPosition (self, "wxPoint" aPos) |
"wxPoint const" | GetFocusPosition (self) |
"EDA_ITEM *" | Clone (self) |
"SEARCH_RESULT" | Visit (self, "INSPECTOR" inspector, "void *" testData, "KICAD_T const []" scanTypes) |
"wxString" | GetClass (self) |
"wxString" | GetSelectMenuText (self, "EDA_UNITS" aUnits) |
"BITMAPS" | GetMenuImage (self) |
"bool" | Matches (self, "wxFindReplaceData const &" aSearchData, "void *" aAuxData) |
"bool" | Replace (self, *args) |
"bool" | IsReplaceable (self) |
"bool" | __lt__ (self, "EDA_ITEM" aItem) |
"BOX2I const" | ViewBBox (self) |
"void" | ViewGetLayers (self, "int []" aLayers, "int &" aCount) |
Static Public Member Functions | |
"bool" | ClassOf ("EDA_ITEM" aItem) |
Static Public Member Functions inherited from pcbnew.EDA_ITEM | |
"bool" | Sort ("EDA_ITEM" aLeft, "EDA_ITEM" aRight) |
Properties | |
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
Properties inherited from pcbnew.BOARD_ITEM | |
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=) | |
def pcbnew.PCB_TARGET.__init__ | ( | self, | |
* | args | ||
) |
__init__(PCB_TARGET self, BOARD_ITEM aParent) -> PCB_TARGET __init__(PCB_TARGET self, BOARD_ITEM aParent, int aShape, PCB_LAYER_ID aLayer, wxPoint aPos, int aSize, int aWidth) -> PCB_TARGET
Reimplemented from pcbnew.BOARD_ITEM.
Definition at line 14256 of file pcbnew.py.
|
static |
"EDA_ITEM *" pcbnew.PCB_TARGET.Clone | ( | self | ) |
Clone(PCB_TARGET self) -> EDA_ITEM
Reimplemented from pcbnew.EDA_ITEM.
Definition at line 14340 of file pcbnew.py.
"void" pcbnew.PCB_TARGET.Flip | ( | self, | |
"wxPoint" | aCentre, | ||
"bool" | aFlipLeftRight | ||
) |
Flip(PCB_TARGET self, wxPoint aCentre, bool aFlipLeftRight)
Reimplemented from pcbnew.BOARD_ITEM.
"EDA_RECT const" pcbnew.PCB_TARGET.GetBoundingBox | ( | self | ) |
GetBoundingBox(PCB_TARGET self) -> EDA_RECT
Reimplemented from pcbnew.EDA_ITEM.
"wxString" pcbnew.PCB_TARGET.GetClass | ( | self | ) |
GetClass(PCB_TARGET self) -> wxString
Reimplemented from pcbnew.EDA_ITEM.
Definition at line 14313 of file pcbnew.py.
"std.shared_ptr< SHAPE >" pcbnew.PCB_TARGET.GetEffectiveShape | ( | self, | |
* | args | ||
) |
GetEffectiveShape(PCB_TARGET self, PCB_LAYER_ID aLayer, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >
Reimplemented from pcbnew.BOARD_ITEM.
"BITMAPS" pcbnew.PCB_TARGET.GetMenuImage | ( | self | ) |
GetMenuImage(PCB_TARGET self) -> BITMAPS
Reimplemented from pcbnew.EDA_ITEM.
"void" pcbnew.PCB_TARGET.GetMsgPanelInfo | ( | self, | |
"EDA_DRAW_FRAME *" | aFrame, | ||
"std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > &" | aList | ||
) |
GetMsgPanelInfo(PCB_TARGET self, EDA_DRAW_FRAME * aFrame, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)
Reimplemented from pcbnew.EDA_ITEM.
"wxPoint" pcbnew.PCB_TARGET.GetPosition | ( | self | ) |
GetPosition(PCB_TARGET self) -> wxPoint
Reimplemented from pcbnew.EDA_ITEM.
"wxString" pcbnew.PCB_TARGET.GetSelectMenuText | ( | self, | |
"EDA_UNITS" | aUnits | ||
) |
GetSelectMenuText(PCB_TARGET self, EDA_UNITS aUnits) -> wxString
Reimplemented from pcbnew.EDA_ITEM.
"int" pcbnew.PCB_TARGET.GetShape | ( | self | ) |
"int" pcbnew.PCB_TARGET.GetSize | ( | self | ) |
"int" pcbnew.PCB_TARGET.GetWidth | ( | self | ) |
"bool" pcbnew.PCB_TARGET.HitTest | ( | self, | |
* | args | ||
) |
HitTest(PCB_TARGET self, wxPoint aPosition, int aAccuracy=0) -> bool HitTest(PCB_TARGET self, EDA_RECT aRect, bool aContained, int aAccuracy=0) -> bool
Reimplemented from pcbnew.EDA_ITEM.
Definition at line 14317 of file pcbnew.py.
"void" pcbnew.PCB_TARGET.Move | ( | self, | |
"wxPoint" | aMoveVector | ||
) |
Move(PCB_TARGET self, wxPoint aMoveVector)
Reimplemented from pcbnew.BOARD_ITEM.
"void" pcbnew.PCB_TARGET.Rotate | ( | self, | |
"wxPoint" | aRotCentre, | ||
"double" | aAngle | ||
) |
Rotate(PCB_TARGET self, wxPoint aRotCentre, double aAngle)
Reimplemented from pcbnew.BOARD_ITEM.
"void" pcbnew.PCB_TARGET.SetPosition | ( | self, | |
"wxPoint" | aPos | ||
) |
SetPosition(PCB_TARGET self, wxPoint aPos)
Reimplemented from pcbnew.EDA_ITEM.
Definition at line 14269 of file pcbnew.py.
"void" pcbnew.PCB_TARGET.SetShape | ( | self, | |
"int" | aShape | ||
) |
"void" pcbnew.PCB_TARGET.SetSize | ( | self, | |
"int" | aSize | ||
) |
"void" pcbnew.PCB_TARGET.SetWidth | ( | self, | |
"int" | aWidth | ||
) |
"void" pcbnew.PCB_TARGET.SwapData | ( | self, | |
"BOARD_ITEM" | aImage | ||
) |
SwapData(PCB_TARGET self, BOARD_ITEM aImage)
Reimplemented from pcbnew.BOARD_ITEM.
"void" pcbnew.PCB_TARGET.TransformShapeWithClearanceToPolygon | ( | self, | |
"SHAPE_POLY_SET" | aCornerBuffer, | ||
"PCB_LAYER_ID" | aLayer, | ||
"int" | aClearanceValue, | ||
"int" | aError, | ||
"ERROR_LOC" | aErrorLoc, | ||
"bool" | ignoreLineWidth = False |
||
) |
TransformShapeWithClearanceToPolygon(PCB_TARGET self, SHAPE_POLY_SET aCornerBuffer, PCB_LAYER_ID aLayer, int aClearanceValue, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)
Reimplemented from pcbnew.BOARD_ITEM.
|
static |