KiCAD pcbnew scripting
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
pcbnew.BOARD_ITEM_List Class Reference
Inheritance diagram for pcbnew.BOARD_ITEM_List:
Inheritance graph


class  DLISTIter

Public Member Functions

def Get (self)
def __deref__ (self)
def GetFirst (self)
def GetLast (self)
def Append (self, args)
def Insert (self, aNewElement, aElementAfterMe)
def Remove (self, aElement)
def begin (self)
def end (self)
def PopFront (self)
def PopBack (self)
def PushFront (self, aNewElement)
def PushBack (self, aNewElement)
def __iter__ (self)
def __init__ (self)
def GetPosition (self)
def GetCenter (self)
def SetPosition (self, aPos)
def IsConnected (self)
def Next (self)
def Back (self)
def GetParent (self)
def GetLayer (self)
def GetLayerSet (self)
def SetLayer (self, aLayer)
def Draw (self, args)
def SwapData (self, aImage)
def IsOnLayer (self, aLayer)
def IsTrack (self)
def IsLocked (self)
def SetLocked (self, aLocked)
def UnLink (self)
def DeleteStructure (self)
def ShowShape (self, aShape)
def Move (self, aMoveVector)
def Rotate (self, aRotCentre, aAngle)
def Flip (self, aCentre)
def GetBoard (self)
def GetLayerName (self)
def HitTest (self, args)
def FormatInternalUnits (self, args)
def FormatAngle (self, aAngle)
def ViewGetLayers (self, aLayers, aCount)
def Type (self)
def SetTimeStamp (self, aNewTimeStamp)
def GetTimeStamp (self)
def GetList (self)
def SetParent (self, aParent)
def SetList (self, aList)
def IsNew (self)
def IsModified (self)
def IsMoving (self)
def IsDragging (self)
def IsWireImage (self)
def IsSelected (self)
def IsResized (self)
def IsHighlighted (self)
def IsBrightened (self)
def SetWireImage (self)
def SetSelected (self)
def SetHighlighted (self)
def SetBrightened (self)
def ClearSelected (self)
def ClearHighlighted (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 ClearFlags
def GetFlags (self)
def SetForceVisible (self, aEnable)
def GetMsgPanelInfo (self, aList)
def GetBoundingBox (self)
def Clone (self)
def IterateForward (self, listStart, inspector, testData, scanTypes)
def Visit (self, inspector, testData, scanTypes)
def GetClass (self)
def GetSelectMenuText (self)
def GetMenuImage (self)
def Matches (self, aSearchData, aAuxData, aFindLocation)
def Replace (self, args)
def IsReplaceable (self)
def __lt__ (self, aItem)
def Sort (self, aLeft, aRight)
def ViewBBox (self)
- Public Member Functions inherited from pcbnew.DHEAD
def __init__ (self, args, kwargs)
def DeleteAll (self)
def SetOwnership (self, Iown)
def GetCount (self)

Public Attributes


Static Public Attributes

tuple ret = self.last.Get()
 ret = self.last

Detailed Description

Proxy of C++ DLIST<(BOARD_ITEM)> class

Definition at line 15443 of file

Constructor & Destructor Documentation

def pcbnew.BOARD_ITEM_List.__init__ (   self)
__init__(DLIST<(BOARD_ITEM)> self) -> BOARD_ITEM_List

Definition at line 15560 of file

Member Function Documentation

def pcbnew.BOARD_ITEM_List.__deref__ (   self)
__deref__(BOARD_ITEM_List self) -> BOARD_ITEM

Definition at line 15460 of file

def pcbnew.BOARD_ITEM_List.__iter__ (   self)

Definition at line 15555 of file

def pcbnew.BOARD_ITEM_List.__lt__ (   self,
__lt__(BOARD_ITEM_List self, EDA_ITEM aItem) -> bool

Definition at line 16532 of file

def pcbnew.BOARD_ITEM_List.Append (   self,
Append(BOARD_ITEM_List self, BOARD_ITEM aNewElement)
Append(BOARD_ITEM_List self, BOARD_ITEM_List aList)

Definition at line 15475 of file

def pcbnew.BOARD_ITEM_List.Back (   self)
Back(BOARD_ITEM_List self) -> BOARD_ITEM

BOARD_ITEM::Back() const 

Definition at line 15633 of file

def pcbnew.BOARD_ITEM_List.begin (   self)
begin(BOARD_ITEM_List self) -> BOARD_ITEM

Definition at line 15493 of file

def pcbnew.BOARD_ITEM_List.ClearBrightened (   self)
ClearBrightened(BOARD_ITEM_List self)


Definition at line 16195 of file

def pcbnew.BOARD_ITEM_List.ClearFlags (   self,
  aMask = -1 
ClearFlags(BOARD_ITEM_List self, STATUS_FLAGS aMask=-1)
ClearFlags(BOARD_ITEM_List self)


Definition at line 16265 of file

def pcbnew.BOARD_ITEM_List.ClearHighlighted (   self)
ClearHighlighted(BOARD_ITEM_List self)


Definition at line 16185 of file

def pcbnew.BOARD_ITEM_List.ClearSelected (   self)
ClearSelected(BOARD_ITEM_List self)


Definition at line 16175 of file

def pcbnew.BOARD_ITEM_List.Clone (   self)
Clone(BOARD_ITEM_List self) -> EDA_ITEM


Function Clone creates a duplicate of this item with linked list
members set to NULL.

The default version will return NULL in release builds and likely
crash the program. In debug builds, a warning message indicating the
derived class has not implemented cloning. This really should be a
pure virtual function. Due to the fact that there are so many objects
derived from EDA_ITEM, the decision was made to return NULL until all
the objects derived from EDA_ITEM implement cloning. Once that
happens, this function should be made pure.

A clone of the item. 

Definition at line 16345 of file

def pcbnew.BOARD_ITEM_List.DeleteStructure (   self)
DeleteStructure(BOARD_ITEM_List self)


Function DeleteStructure deletes this object after UnLink()ing it from
its owner if it has one. 

Definition at line 15811 of file

def pcbnew.BOARD_ITEM_List.Draw (   self,
Draw(BOARD_ITEM_List self, EDA_DRAW_PANEL * panel, wxDC * DC, GR_DRAWMODE aDrawMode, wxPoint offset)
Draw(BOARD_ITEM_List self, EDA_DRAW_PANEL * panel, wxDC * DC, GR_DRAWMODE aDrawMode)

virtual void
aDrawMode, const wxPoint &offset=ZeroOffset)=0

Function Draw BOARD_ITEMs have their own color information. 

Definition at line 15698 of file

Here is the caller graph for this function:

def pcbnew.BOARD_ITEM_List.end (   self)
end(BOARD_ITEM_List self) -> BOARD_ITEM

Definition at line 15498 of file

def pcbnew.BOARD_ITEM_List.Flip (   self,
Flip(BOARD_ITEM_List self, wxPoint aCentre)

virtual void
BOARD_ITEM::Flip(const wxPoint &aCentre)

Function Flip Flip this object, i.e.

change the board side for this object


aCentre:  - the rotation point. 

Definition at line 15865 of file

def pcbnew.BOARD_ITEM_List.FormatAngle (   self,
FormatAngle(BOARD_ITEM_List self, double aAngle) -> string

Definition at line 15950 of file

def pcbnew.BOARD_ITEM_List.FormatInternalUnits (   self,
FormatInternalUnits(BOARD_ITEM_List self, int aValue) -> string
FormatInternalUnits(BOARD_ITEM_List self, wxPoint aPoint) -> string
FormatInternalUnits(BOARD_ITEM_List self, wxSize aSize) -> string

Definition at line 15941 of file

def pcbnew.BOARD_ITEM_List.Get (   self)

Definition at line 15455 of file

def pcbnew.BOARD_ITEM_List.GetBoard (   self)
GetBoard(BOARD_ITEM_List self) -> BOARD

BOARD_ITEM::GetBoard() const

Function GetBoard returns the BOARD in which this BOARD_ITEM resides,
or NULL if none. 

Definition at line 15884 of file

def pcbnew.BOARD_ITEM_List.GetBoundingBox (   self)
GetBoundingBox(BOARD_ITEM_List self) -> EDA_RECT

const EDA_RECT
EDA_ITEM::GetBoundingBox() const

Function GetBoundingBox returns the orthogonal, bounding box of this
object for display purposes.

This box should be an enclosing perimeter for visible components of
this object, and the units should be in the pcb or schematic
coordinate system. It is OK to overestimate the size by a few counts.

Definition at line 16327 of file

def pcbnew.BOARD_ITEM_List.GetCenter (   self)
GetCenter(BOARD_ITEM_List self) -> wxPoint

virtual const wxPoint
BOARD_ITEM::GetCenter() const

Function GetCenter()

This defaults to the same point as returned by GetPosition(), unless

centre point of the item 

Definition at line 15580 of file

def pcbnew.BOARD_ITEM_List.GetClass (   self)
GetClass(BOARD_ITEM_List self) -> wxString

virtual wxString
EDA_ITEM::GetClass() const =0

Function GetClass returns the class name.


Definition at line 16404 of file

def pcbnew.BOARD_ITEM_List.GetFirst (   self)
GetFirst(BOARD_ITEM_List self) -> BOARD_ITEM

Definition at line 15465 of file

def pcbnew.BOARD_ITEM_List.GetFlags (   self)
GetFlags(BOARD_ITEM_List self) -> STATUS_FLAGS

EDA_ITEM::GetFlags() const 

Definition at line 16276 of file

def pcbnew.BOARD_ITEM_List.GetLast (   self)
GetLast(BOARD_ITEM_List self) -> BOARD_ITEM

Definition at line 15470 of file

def pcbnew.BOARD_ITEM_List.GetLayer (   self)
GetLayer(BOARD_ITEM_List self) -> PCB_LAYER_ID

BOARD_ITEM::GetLayer() const

Function GetLayer returns the primary layer this item is on. 

Definition at line 15653 of file

def pcbnew.BOARD_ITEM_List.GetLayerName (   self)
GetLayerName(BOARD_ITEM_List self) -> wxString

BOARD_ITEM::GetLayerName() const

Function GetLayerName returns the name of the PCB layer on which the
item resides.

wxString containing the layer name associated with this item. 

Definition at line 15897 of file

def pcbnew.BOARD_ITEM_List.GetLayerSet (   self)
GetLayerSet(BOARD_ITEM_List self) -> LSET

virtual LSET
BOARD_ITEM::GetLayerSet() const

Function GetLayerSet returns a "layer mask", which is a bitmap of
all layers on which the TRACK segment or VIA physically resides.

int - a layer mask, see layers_id_colors_visibility.h. 

Definition at line 15665 of file

def pcbnew.BOARD_ITEM_List.GetList (   self)
GetList(BOARD_ITEM_List self) -> DHEAD


Definition at line 16015 of file

def pcbnew.BOARD_ITEM_List.GetMenuImage (   self)
GetMenuImage(BOARD_ITEM_List self) -> BITMAP_DEF

EDA_ITEM::GetMenuImage() const

Function GetMenuImage returns a pointer to an image to be used in

The default version returns the right arrow image. Override this
function to provide object specific menu images. The menu image
associated with the item. 

Definition at line 16438 of file

def pcbnew.BOARD_ITEM_List.GetMsgPanelInfo (   self,
GetMsgPanelInfo(BOARD_ITEM_List self, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)

virtual void
EDA_ITEM::GetMsgPanelInfo(std::vector< MSG_PANEL_ITEM > &aList)

Function GetMsgPanelInfo populates aList of MSG_PANEL_ITEM objects
with it's internal state for display purposes.

This method replaces DisplayInfo() so that KiCad objects no longer
have any knowledge of wxWidgets UI objects.


aList:  is the list to populate. 

Definition at line 16306 of file

def pcbnew.BOARD_ITEM_List.GetParent (   self)

BOARD_ITEM::GetParent() const 

Definition at line 15643 of file

def pcbnew.BOARD_ITEM_List.GetPosition (   self)
GetPosition(BOARD_ITEM_List self) -> wxPoint

virtual const
wxPoint& BOARD_ITEM::GetPosition() const =0 

Definition at line 15570 of file

Here is the caller graph for this function:

def pcbnew.BOARD_ITEM_List.GetSelectMenuText (   self)
GetSelectMenuText(BOARD_ITEM_List self) -> wxString

EDA_ITEM::GetSelectMenuText() const

Function GetSelectMenuText returns the text to display to be used in
the selection clarification context menu when multiple items are found
at the current cursor position.

The default version of this function raises an assertion in the debug
mode and returns a string to indicate that it was not overridden to
provide the object specific text.

The menu text string. 

Definition at line 16418 of file

def pcbnew.BOARD_ITEM_List.GetState (   self,
GetState(BOARD_ITEM_List self, int type) -> int

int EDA_ITEM::GetState(int
type) const 

Definition at line 16215 of file

def pcbnew.BOARD_ITEM_List.GetStatus (   self)
GetStatus(BOARD_ITEM_List self) -> STATUS_FLAGS

EDA_ITEM::GetStatus() const 

Definition at line 16235 of file

def pcbnew.BOARD_ITEM_List.GetTimeStamp (   self)
GetTimeStamp(BOARD_ITEM_List self) -> time_t

EDA_ITEM::GetTimeStamp() const 

Definition at line 16005 of file

def pcbnew.BOARD_ITEM_List.HitTest (   self,
HitTest(BOARD_ITEM_List self, wxPoint aPosition) -> bool
HitTest(BOARD_ITEM_List self, EDA_RECT aRect, bool aContained=True, int aAccuracy=0) -> bool
HitTest(BOARD_ITEM_List self, EDA_RECT aRect, bool aContained=True) -> bool
HitTest(BOARD_ITEM_List self, EDA_RECT aRect) -> bool

virtual bool
BOARD_ITEM::HitTest(const EDA_RECT &aRect, bool aContained=true, int
aAccuracy=0) const

Function HitTest tests if the aRect intersects or contains this object
(depending on aContained).


aRect:  A reference to an EDA_RECT object containg the area to test.

aContained:  Test if aRect contains this object completly.

aAccuracy:  Increase the item bounding box by this amount.

bool - True if aRect contains this object completly or if aRect
intersects the object and aContained is False, otherwise false. 

Definition at line 15912 of file

def pcbnew.BOARD_ITEM_List.Insert (   self,
Insert(BOARD_ITEM_List self, BOARD_ITEM aNewElement, BOARD_ITEM aElementAfterMe)

Definition at line 15483 of file

def pcbnew.BOARD_ITEM_List.IsBrightened (   self)
IsBrightened(BOARD_ITEM_List self) -> bool

EDA_ITEM::IsBrightened() const 

Definition at line 16125 of file

def pcbnew.BOARD_ITEM_List.IsConnected (   self)
IsConnected(BOARD_ITEM_List self) -> bool

virtual bool
BOARD_ITEM::IsConnected() const

Function IsConnected() Returns information if the object is derived

True if the object is of BOARD_CONNECTED_ITEM type, false otherwise.

Definition at line 15607 of file

def pcbnew.BOARD_ITEM_List.IsDragging (   self)
IsDragging(BOARD_ITEM_List self) -> bool

EDA_ITEM::IsDragging() const 

Definition at line 16075 of file

def pcbnew.BOARD_ITEM_List.IsHighlighted (   self)
IsHighlighted(BOARD_ITEM_List self) -> bool

EDA_ITEM::IsHighlighted() const 

Definition at line 16115 of file

def pcbnew.BOARD_ITEM_List.IsLocked (   self)
IsLocked(BOARD_ITEM_List self) -> bool

virtual bool
BOARD_ITEM::IsLocked() const

Function IsLocked.

bool - true if the object is locked, else false 

Definition at line 15771 of file

def pcbnew.BOARD_ITEM_List.IsModified (   self)
IsModified(BOARD_ITEM_List self) -> bool

EDA_ITEM::IsModified() const 

Definition at line 16055 of file

def pcbnew.BOARD_ITEM_List.IsMoving (   self)
IsMoving(BOARD_ITEM_List self) -> bool

bool EDA_ITEM::IsMoving()

Definition at line 16065 of file

def pcbnew.BOARD_ITEM_List.IsNew (   self)
IsNew(BOARD_ITEM_List self) -> bool

bool EDA_ITEM::IsNew() const

Definition at line 16045 of file

def pcbnew.BOARD_ITEM_List.IsOnLayer (   self,
IsOnLayer(BOARD_ITEM_List self, PCB_LAYER_ID aLayer) -> bool

virtual bool
BOARD_ITEM::IsOnLayer(PCB_LAYER_ID aLayer) const

Function IsOnLayer tests to see if this object is on the given layer.

Is virtual so objects like D_PAD, which reside on multiple layers can
do their own form of testing.


aLayer:  The layer to test for.

bool - true if on given layer, else false. 

Definition at line 15734 of file

def pcbnew.BOARD_ITEM_List.IsReplaceable (   self)
IsReplaceable(BOARD_ITEM_List self) -> bool

virtual bool
EDA_ITEM::IsReplaceable() const

Function IsReplaceable.

Override this method in any derived object that supports test find and

True if the item has replaceable text that can be modified using the
find and replace dialog. 

Definition at line 16514 of file

def pcbnew.BOARD_ITEM_List.IsResized (   self)
IsResized(BOARD_ITEM_List self) -> bool

EDA_ITEM::IsResized() const 

Definition at line 16105 of file

def pcbnew.BOARD_ITEM_List.IsSelected (   self)
IsSelected(BOARD_ITEM_List self) -> bool

EDA_ITEM::IsSelected() const 

Definition at line 16095 of file

def pcbnew.BOARD_ITEM_List.IsTrack (   self)
IsTrack(BOARD_ITEM_List self) -> bool

BOARD_ITEM::IsTrack() const

Function IsTrack tests to see if this object is a track or via (or

form of testing. bool - true if a track or via, else false. 

Definition at line 15756 of file

def pcbnew.BOARD_ITEM_List.IsWireImage (   self)
IsWireImage(BOARD_ITEM_List self) -> bool

EDA_ITEM::IsWireImage() const 

Definition at line 16085 of file

def pcbnew.BOARD_ITEM_List.IterateForward (   self,
IterateForward(BOARD_ITEM_List self, EDA_ITEM listStart, INSPECTOR inspector, void * testData, KICAD_T const [] scanTypes) -> SEARCH_RESULT

Definition at line 16368 of file

Here is the caller graph for this function:

def pcbnew.BOARD_ITEM_List.Matches (   self,
Matches(BOARD_ITEM_List self, wxFindReplaceData & aSearchData, void * aAuxData, wxPoint aFindLocation) -> bool

virtual bool
EDA_ITEM::Matches(wxFindReplaceData &aSearchData, void *aAuxData,
wxPoint *aFindLocation)

Function Matches compares the item against the search criteria in

The base class returns false since many of the objects derived from
EDA_ITEM do not have any text to search.


aSearchData:  A reference to a wxFindReplaceData object containing the
search criteria.

aAuxData:  A pointer to optional data required for the search or NULL
if not used.

aFindLocation:  A pointer to a wxPoint object to store the location of
matched item. The pointer can be NULL if it is not used.

True if the item's text matches the search criteria in aSearchData. 

Definition at line 16455 of file

def pcbnew.BOARD_ITEM_List.Move (   self,
Move(BOARD_ITEM_List self, wxPoint aMoveVector)

virtual void
BOARD_ITEM::Move(const wxPoint &aMoveVector)

Function Move move this object.


aMoveVector:  - the move vector for this object. 

Definition at line 15829 of file

def pcbnew.BOARD_ITEM_List.Next (   self)
Next(BOARD_ITEM_List self) -> BOARD_ITEM

BOARD_ITEM::Next() const 

Definition at line 15623 of file

def pcbnew.BOARD_ITEM_List.PopBack (   self)
PopBack(BOARD_ITEM_List self) -> BOARD_ITEM

Definition at line 15508 of file

def pcbnew.BOARD_ITEM_List.PopFront (   self)
PopFront(BOARD_ITEM_List self) -> BOARD_ITEM

Definition at line 15503 of file

def pcbnew.BOARD_ITEM_List.PushBack (   self,
PushBack(BOARD_ITEM_List self, BOARD_ITEM aNewElement)

Definition at line 15518 of file

def pcbnew.BOARD_ITEM_List.PushFront (   self,
PushFront(BOARD_ITEM_List self, BOARD_ITEM aNewElement)

Definition at line 15513 of file

def pcbnew.BOARD_ITEM_List.Remove (   self,
Remove(BOARD_ITEM_List self, BOARD_ITEM aElement) -> BOARD_ITEM

Definition at line 15488 of file

def pcbnew.BOARD_ITEM_List.Replace (   self,
Replace(BOARD_ITEM_List self, wxFindReplaceData & aSearchData, wxString aText) -> bool
Replace(BOARD_ITEM_List self, wxFindReplaceData & aSearchData, void * aAuxData=None) -> bool
Replace(BOARD_ITEM_List self, wxFindReplaceData & aSearchData) -> bool

virtual bool
EDA_ITEM::Replace(wxFindReplaceData &aSearchData, void *aAuxData=NULL)

Function Replace performs a text replace using the find and replace
criteria in aSearchData on items that support text find and replace.

This function must be overridden for items that support text replace.


aSearchData:  A reference to a wxFindReplaceData object containing the
search and replace criteria.

aAuxData:  A pointer to optional data required for the search or NULL
if not used.

True if the item text was modified, otherwise false. 

Definition at line 16486 of file

def pcbnew.BOARD_ITEM_List.Rotate (   self,
Rotate(BOARD_ITEM_List self, wxPoint aRotCentre, double aAngle)

virtual void
BOARD_ITEM::Rotate(const wxPoint &aRotCentre, double aAngle)

Function Rotate Rotate this object.


aRotCentre:  - the rotation point.

aAngle:  - the rotation angle in 0.1 degree. 

Definition at line 15846 of file

def pcbnew.BOARD_ITEM_List.SetBrightened (   self)
SetBrightened(BOARD_ITEM_List self)


Definition at line 16165 of file

def pcbnew.BOARD_ITEM_List.SetFlags (   self,
SetFlags(BOARD_ITEM_List self, STATUS_FLAGS aMask)


Definition at line 16255 of file

def pcbnew.BOARD_ITEM_List.SetForceVisible (   self,
SetForceVisible(BOARD_ITEM_List self, bool aEnable)

EDA_ITEM::SetForceVisible(bool aEnable)

Function SetForceVisible is used to set and cleag force visible flag
used to force the item to be drawn even if it's draw attribute is set
to not visible.


aEnable:  True forces the item to be drawn. False uses the item's
visibility setting to determine if the item is to be drawn. 

Definition at line 16286 of file

def pcbnew.BOARD_ITEM_List.SetHighlighted (   self)
SetHighlighted(BOARD_ITEM_List self)


Definition at line 16155 of file

def pcbnew.BOARD_ITEM_List.SetLayer (   self,
SetLayer(BOARD_ITEM_List self, PCB_LAYER_ID aLayer)

virtual void

Function SetLayer sets the layer this item is on.


aLayer:  The layer number. is virtual because some items (in fact:
class DIMENSION) have a slightly different initialization 

Definition at line 15680 of file

def pcbnew.BOARD_ITEM_List.SetList (   self,
SetList(BOARD_ITEM_List self, DHEAD aList)

EDA_ITEM::SetList(DHEAD *aList) 

Definition at line 16035 of file

def pcbnew.BOARD_ITEM_List.SetLocked (   self,
SetLocked(BOARD_ITEM_List self, bool aLocked)

virtual void
BOARD_ITEM::SetLocked(bool aLocked)

Function SetLocked modifies 'lock' status for of the item. 

Definition at line 15785 of file

def pcbnew.BOARD_ITEM_List.SetModified (   self)
SetModified(BOARD_ITEM_List self)


Definition at line 16205 of file

def pcbnew.BOARD_ITEM_List.SetParent (   self,
SetParent(BOARD_ITEM_List self, EDA_ITEM aParent)

EDA_ITEM::SetParent(EDA_ITEM *aParent) 

Definition at line 16025 of file

def pcbnew.BOARD_ITEM_List.SetPosition (   self,
SetPosition(BOARD_ITEM_List self, wxPoint aPos)

virtual void
BOARD_ITEM::SetPosition(const wxPoint &aPos)=0 

Definition at line 15597 of file

def pcbnew.BOARD_ITEM_List.SetSelected (   self)
SetSelected(BOARD_ITEM_List self)


Definition at line 16145 of file

def pcbnew.BOARD_ITEM_List.SetState (   self,
SetState(BOARD_ITEM_List self, int type, int state)

EDA_ITEM::SetState(int type, int state) 

Definition at line 16225 of file

def pcbnew.BOARD_ITEM_List.SetStatus (   self,
SetStatus(BOARD_ITEM_List self, STATUS_FLAGS aStatus)

EDA_ITEM::SetStatus(STATUS_FLAGS aStatus) 

Definition at line 16245 of file

def pcbnew.BOARD_ITEM_List.SetTimeStamp (   self,
SetTimeStamp(BOARD_ITEM_List self, time_t aNewTimeStamp)

EDA_ITEM::SetTimeStamp(time_t aNewTimeStamp) 

Definition at line 15995 of file

def pcbnew.BOARD_ITEM_List.SetWireImage (   self)
SetWireImage(BOARD_ITEM_List self)


Definition at line 16135 of file

def pcbnew.BOARD_ITEM_List.ShowShape (   self,
ShowShape(BOARD_ITEM_List self, STROKE_T aShape) -> wxString

Definition at line 15824 of file

def pcbnew.BOARD_ITEM_List.Sort (   self,
Sort(BOARD_ITEM_List self, EDA_ITEM aLeft, EDA_ITEM aRight) -> bool

Definition at line 16537 of file

def pcbnew.BOARD_ITEM_List.SwapData (   self,
SwapData(BOARD_ITEM_List self, BOARD_ITEM aImage)


Swap data between aItem and aImage.

aItem and aImage should have the same type Used in undo redo command
to swap values between an item and its copy Only values like layer,
size .. which are modified by edition are swapped, not the pointers
like Pnext and Pback because aItem is not changed in the linked list


aImage:  = the item image which contains data to swap 

Definition at line 15712 of file

def pcbnew.BOARD_ITEM_List.Type (   self)
Type(BOARD_ITEM_List self) -> KICAD_T

KICAD_T EDA_ITEM::Type() const

Function Type()

returns the type of object. This attribute should never be changed
after a constructor sets it, so there is no public "setter" method.
KICAD_T - the type of object. 

Definition at line 15980 of file

def pcbnew.BOARD_ITEM_List.UnLink (   self)
UnLink(BOARD_ITEM_List self)

void BOARD_ITEM::UnLink()

Function UnLink detaches this object from its owner.

This base class implementation should work for all derived classes
which are held in a DLIST<>. 

Definition at line 15797 of file

Here is the caller graph for this function:

def pcbnew.BOARD_ITEM_List.ViewBBox (   self)
ViewBBox(BOARD_ITEM_List self) -> BOX2I const

const BOX2I
EDA_ITEM::ViewBBox() const override

Function ViewBBox() returns the bounding box of the item covering all
its layers.

BOX2I - the current bounding box 

Definition at line 16542 of file

def pcbnew.BOARD_ITEM_List.ViewGetLayers (   self,
ViewGetLayers(BOARD_ITEM_List self, int [] aLayers, int & aCount)

BOARD_ITEM::ViewGetLayers(int aLayers[], int &aCount) const override

Function ViewGetLayers() Returns the all the layers within the VIEW
the object is painted on.

For instance, a D_PAD spans zero or more copper layers and a few
technical layers. ViewDraw() or PAINTER::Draw() is repeatedly called
for each of the layers returned by ViewGetLayers(), depending on the
rendering order.


aLayers[]:  output layer index array

aCount:  number of layer indices in aLayers[] 

Definition at line 15955 of file

def pcbnew.BOARD_ITEM_List.Visit (   self,
Visit(BOARD_ITEM_List self, INSPECTOR inspector, void * testData, KICAD_T const [] scanTypes) -> SEARCH_RESULT

EDA_ITEM::Visit(INSPECTOR inspector, void *testData, const KICAD_T

Function Visit may be re-implemented for each derived class in order
to handle all the types given by its member data.

Implementations should call inspector->Inspect() on types in
scanTypes[], and may use IterateForward() to do so on lists of such


inspector:  An INSPECTOR instance to use in the inspection.

testData:  Arbitrary data used by the inspector.

scanTypes:  Which KICAD_T types are of interest and the order is
significant too, terminated by EOT.

SEARCH_RESULT SEARCH_QUIT if the Iterator is to stop the scan, else
SCAN_CONTINUE, and determined by the inspector. 

Definition at line 16373 of file

Member Data Documentation

tuple pcbnew.BOARD_ITEM_List.ret = self.last.Get()

Definition at line 15542 of file

pcbnew.BOARD_ITEM_List.ret = self.last

Definition at line 15544 of file


Definition at line 15566 of file

The documentation for this class was generated from the following file: