KiCad Pcbnew Python Scripting
|
Public Member Functions | |
def | __init__ (self, "BOARD_ITEM" aParent) |
"wxString" | GetClass (self) |
"wxString" | GetName (self) |
"void" | SetName (self, "wxString" aName) |
"std::unordered_set< BOARD_ITEM * > const &" | GetItems (self, *args) |
"bool" | AddItem (self, "BOARD_ITEM" aItem) |
"bool" | RemoveItem (self, "BOARD_ITEM" aItem) |
"void" | RemoveAll (self) |
"wxPoint" | GetPosition (self) |
"void" | SetPosition (self, "wxPoint" aNewpos) |
"LSET" | GetLayerSet (self) |
"void" | SetLayer (self, "PCB_LAYER_ID" aLayer) |
"void" | SetLayerRecursive (self, "PCB_LAYER_ID" aLayer, "int" aDepth) |
"void" | SetLocked (self, "bool" aLocked) |
"EDA_ITEM *" | Clone (self) |
"PCB_GROUP *" | DeepClone (self) |
"PCB_GROUP *" | DeepDuplicate (self) |
"void" | SwapData (self, "BOARD_ITEM" aImage) |
"bool" | IsOnLayer (self, "PCB_LAYER_ID" aLayer) |
"bool" | HitTest (self, *args) |
"EDA_RECT const" | GetBoundingBox (self) |
"SEARCH_RESULT" | Visit (self, "INSPECTOR" aInspector, "void *" aTestData, "KICAD_T const []" aScanTypes) |
"void" | ViewGetLayers (self, "int []" aLayers, "int &" aCount) |
"double" | ViewGetLOD (self, "int" aLayer, "KIGFX::VIEW *" aView) |
"void" | Move (self, "wxPoint" aMoveVector) |
"void" | Rotate (self, "wxPoint" aRotCentre, "double" aAngle) |
"void" | Flip (self, "wxPoint" aCentre, "bool" aFlipLeftRight) |
"wxString" | GetSelectMenuText (self, "EDA_UNITS" aUnits) |
"BITMAPS" | GetMenuImage (self) |
"void" | AddChildrenToCommit (self, "BOARD_COMMIT &" aCommit) |
"void" | GetMsgPanelInfo (self, "EDA_DRAW_FRAME *" aFrame, "std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > &" aList) |
"void" | RunOnChildren (self, "std::function< void (BOARD_ITEM *) > const &" aFunction) |
"void" | RunOnDescendants (self, "std::function< void (BOARD_ITEM *) > const &" aFunction) |
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) |
"PCB_GROUP *" | TopLevelGroup ("BOARD_ITEM" aItem, "PCB_GROUP" aScope, "bool" isFootprintEditor) |
"bool" | WithinScope ("BOARD_ITEM" aItem, "PCB_GROUP" aScope, "bool" isFootprintEditor) |
"bool" | IsGroupableType ("KICAD_T" aType) |
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_GROUP.__init__ | ( | self, | |
"BOARD_ITEM" | aParent | ||
) |
__init__(PCB_GROUP self, BOARD_ITEM aParent) -> PCB_GROUP
Reimplemented from pcbnew.BOARD_ITEM.
"void" pcbnew.PCB_GROUP.AddChildrenToCommit | ( | self, | |
"BOARD_COMMIT &" | aCommit | ||
) |
"bool" pcbnew.PCB_GROUP.AddItem | ( | self, | |
"BOARD_ITEM" | aItem | ||
) |
|
static |
"EDA_ITEM *" pcbnew.PCB_GROUP.Clone | ( | self | ) |
Clone(PCB_GROUP self) -> EDA_ITEM
Reimplemented from pcbnew.EDA_ITEM.
Definition at line 15999 of file pcbnew.py.
"PCB_GROUP *" pcbnew.PCB_GROUP.DeepClone | ( | self | ) |
"PCB_GROUP *" pcbnew.PCB_GROUP.DeepDuplicate | ( | self | ) |
"void" pcbnew.PCB_GROUP.Flip | ( | self, | |
"wxPoint" | aCentre, | ||
"bool" | aFlipLeftRight | ||
) |
Flip(PCB_GROUP self, wxPoint aCentre, bool aFlipLeftRight)
Reimplemented from pcbnew.BOARD_ITEM.
"EDA_RECT const" pcbnew.PCB_GROUP.GetBoundingBox | ( | self | ) |
GetBoundingBox(PCB_GROUP self) -> EDA_RECT
Reimplemented from pcbnew.EDA_ITEM.
"wxString" pcbnew.PCB_GROUP.GetClass | ( | self | ) |
GetClass(PCB_GROUP self) -> wxString
Reimplemented from pcbnew.EDA_ITEM.
Definition at line 15934 of file pcbnew.py.
"std.unordered_set< BOARD_ITEM * > const &" pcbnew.PCB_GROUP.GetItems | ( | self, | |
* | args | ||
) |
"LSET" pcbnew.PCB_GROUP.GetLayerSet | ( | self | ) |
GetLayerSet(PCB_GROUP self) -> LSET
Reimplemented from pcbnew.BOARD_ITEM.
"BITMAPS" pcbnew.PCB_GROUP.GetMenuImage | ( | self | ) |
GetMenuImage(PCB_GROUP self) -> BITMAPS
Reimplemented from pcbnew.EDA_ITEM.
"void" pcbnew.PCB_GROUP.GetMsgPanelInfo | ( | self, | |
"EDA_DRAW_FRAME *" | aFrame, | ||
"std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > &" | aList | ||
) |
GetMsgPanelInfo(PCB_GROUP self, EDA_DRAW_FRAME * aFrame, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)
Reimplemented from pcbnew.EDA_ITEM.
"wxString" pcbnew.PCB_GROUP.GetName | ( | self | ) |
"wxPoint" pcbnew.PCB_GROUP.GetPosition | ( | self | ) |
GetPosition(PCB_GROUP self) -> wxPoint
Reimplemented from pcbnew.EDA_ITEM.
"wxString" pcbnew.PCB_GROUP.GetSelectMenuText | ( | self, | |
"EDA_UNITS" | aUnits | ||
) |
GetSelectMenuText(PCB_GROUP self, EDA_UNITS aUnits) -> wxString
Reimplemented from pcbnew.EDA_ITEM.
"bool" pcbnew.PCB_GROUP.HitTest | ( | self, | |
* | args | ||
) |
HitTest(PCB_GROUP self, wxPoint aPosition, int aAccuracy=0) -> bool HitTest(PCB_GROUP self, EDA_RECT aRect, bool aContained, int aAccuracy=0) -> bool
Reimplemented from pcbnew.EDA_ITEM.
Definition at line 16019 of file pcbnew.py.
|
static |
"bool" pcbnew.PCB_GROUP.IsOnLayer | ( | self, | |
"PCB_LAYER_ID" | aLayer | ||
) |
IsOnLayer(PCB_GROUP self, PCB_LAYER_ID aLayer) -> bool
Reimplemented from pcbnew.BOARD_ITEM.
"void" pcbnew.PCB_GROUP.Move | ( | self, | |
"wxPoint" | aMoveVector | ||
) |
Move(PCB_GROUP self, wxPoint aMoveVector)
Reimplemented from pcbnew.BOARD_ITEM.
"void" pcbnew.PCB_GROUP.RemoveAll | ( | self | ) |
"bool" pcbnew.PCB_GROUP.RemoveItem | ( | self, | |
"BOARD_ITEM" | aItem | ||
) |
"void" pcbnew.PCB_GROUP.Rotate | ( | self, | |
"wxPoint" | aRotCentre, | ||
"double" | aAngle | ||
) |
Rotate(PCB_GROUP self, wxPoint aRotCentre, double aAngle)
Reimplemented from pcbnew.BOARD_ITEM.
"void" pcbnew.PCB_GROUP.RunOnChildren | ( | self, | |
"std::function< void (BOARD_ITEM *) > const &" | aFunction | ||
) |
"void" pcbnew.PCB_GROUP.RunOnDescendants | ( | self, | |
"std::function< void (BOARD_ITEM *) > const &" | aFunction | ||
) |
"void" pcbnew.PCB_GROUP.SetLayer | ( | self, | |
"PCB_LAYER_ID" | aLayer | ||
) |
SetLayer(PCB_GROUP self, PCB_LAYER_ID aLayer)
Reimplemented from pcbnew.BOARD_ITEM.
"void" pcbnew.PCB_GROUP.SetLayerRecursive | ( | self, | |
"PCB_LAYER_ID" | aLayer, | ||
"int" | aDepth | ||
) |
"void" pcbnew.PCB_GROUP.SetLocked | ( | self, | |
"bool" | aLocked | ||
) |
SetLocked(PCB_GROUP self, bool aLocked)
Reimplemented from pcbnew.BOARD_ITEM.
"void" pcbnew.PCB_GROUP.SetName | ( | self, | |
"wxString" | aName | ||
) |
"void" pcbnew.PCB_GROUP.SetPosition | ( | self, | |
"wxPoint" | aNewpos | ||
) |
SetPosition(PCB_GROUP self, wxPoint aNewpos)
Reimplemented from pcbnew.EDA_ITEM.
Definition at line 15979 of file pcbnew.py.
"void" pcbnew.PCB_GROUP.SwapData | ( | self, | |
"BOARD_ITEM" | aImage | ||
) |
SwapData(PCB_GROUP self, BOARD_ITEM aImage)
Reimplemented from pcbnew.BOARD_ITEM.
|
static |
"void" pcbnew.PCB_GROUP.ViewGetLayers | ( | self, | |
"int []" | aLayers, | ||
"int &" | aCount | ||
) |
ViewGetLayers(PCB_GROUP self, int [] aLayers, int & aCount)
Reimplemented from pcbnew.BOARD_ITEM.
"double" pcbnew.PCB_GROUP.ViewGetLOD | ( | self, | |
"int" | aLayer, | ||
"KIGFX::VIEW *" | aView | ||
) |
"SEARCH_RESULT" pcbnew.PCB_GROUP.Visit | ( | self, | |
"INSPECTOR" | aInspector, | ||
"void *" | aTestData, | ||
"KICAD_T const []" | aScanTypes | ||
) |
Visit(PCB_GROUP self, INSPECTOR aInspector, void * aTestData, KICAD_T const [] aScanTypes) -> SEARCH_RESULT
Reimplemented from pcbnew.EDA_ITEM.
|
static |
|
static |