KiCAD pcbnew scripting
Public Member Functions | List of all members
pcbnew.BOARD_ITEM_CONTAINER Class Reference
Inheritance diagram for pcbnew.BOARD_ITEM_CONTAINER:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, args, kwargs)
 
def AddNative
 
def RemoveNative (self, aItem)
 
def DeleteNative (self, aItem)
 
def Add (self, item)
 
def Remove (self, item)
 
def Delete (self, item)
 
- Public Member Functions inherited from pcbnew.BOARD_ITEM
def __init__ (self, args, kwargs)
 
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 (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 FormatAngle (aAngle)
 
def FormatInternalUnits (args)
 
def ViewGetLayers (self, aLayers, aCount)
 
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 SetTimeStamp (self, aNewTimeStamp)
 
def GetTimeStamp (self)
 
def Next (self)
 
def Back (self)
 
def GetParent (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 HitTest (self, aPosition)
 
def GetBoundingBox (self)
 
def Clone (self)
 
def IterateForward (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 (aLeft, aRight)
 
def ViewBBox (self)
 
def ViewGetLayers (self, aLayers, aCount)
 

Additional Inherited Members

- Static Public Attributes inherited from pcbnew.BOARD_ITEM
tuple ShowShape = staticmethod(ShowShape)
 
tuple FormatAngle = staticmethod(FormatAngle)
 
tuple FormatInternalUnits = staticmethod(FormatInternalUnits)
 
- Static Public Attributes inherited from pcbnew.EDA_ITEM
tuple IterateForward = staticmethod(IterateForward)
 
tuple Sort = staticmethod(Sort)
 

Detailed Description

Abstract interface for BOARD_ITEMs capable of storing other items
inside.

See:   MODULE

See:   BOARD

C++ includes: board_item_container.h 

Definition at line 16553 of file pcbnew.py.

Constructor & Destructor Documentation

def pcbnew.BOARD_ITEM_CONTAINER.__init__ (   self,
  args,
  kwargs 
)

Definition at line 16575 of file pcbnew.py.

Member Function Documentation

def pcbnew.BOARD_ITEM_CONTAINER.Add (   self,
  item 
)
Add a BOARD_ITEM to this BOARD_ITEM_CONTAINER, clear the thisown to prevent
python from deleting the object in the garbage collector
Add(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, ADD_MODE aMode=ADD_INSERT)
Add(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem)

Definition at line 16637 of file pcbnew.py.

Here is the caller graph for this function:

def pcbnew.BOARD_ITEM_CONTAINER.AddNative (   self,
  aItem,
  aMode = ADD_INSERT 
)
AddNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, ADD_MODE aMode=ADD_INSERT)
AddNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem)

virtual void
BOARD_ITEM_CONTAINER::Add(BOARD_ITEM *aItem, ADD_MODE
aMode=ADD_INSERT)=0

Adds an item to the container.

Parameters:
-----------

aItem:  is an item to be added.

aMode:  decides whether the item is added in the beginning or at the
end of the list. 

Definition at line 16581 of file pcbnew.py.

def pcbnew.BOARD_ITEM_CONTAINER.Delete (   self,
  item 
)
Remove a BOARD_ITEM from this BOARD_ITEM_CONTAINER, set the thisdown flag so that
the python wrapper does not owns the C++ BOARD_ITEM
Delete(self, BOARD_ITEM)

Definition at line 16656 of file pcbnew.py.

Here is the caller graph for this function:

def pcbnew.BOARD_ITEM_CONTAINER.DeleteNative (   self,
  aItem 
)
DeleteNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem)

virtual void
BOARD_ITEM_CONTAINER::Delete(BOARD_ITEM *aItem)

Removes an item from the containter and deletes it.

Parameters:
-----------

aItem:  is an item to be deleted. 

Definition at line 16620 of file pcbnew.py.

def pcbnew.BOARD_ITEM_CONTAINER.Remove (   self,
  item 
)
Remove a BOARD_ITEM from this BOARD_ITEM_CONTAINER, set the thisdown flag so that
the python wrapper owns the C++ BOARD_ITEM
Remove(self, BOARD_ITEM)

Definition at line 16647 of file pcbnew.py.

Here is the caller graph for this function:

def pcbnew.BOARD_ITEM_CONTAINER.RemoveNative (   self,
  aItem 
)
RemoveNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem)

virtual void
BOARD_ITEM_CONTAINER::Remove(BOARD_ITEM *aItem)=0

Removes an item from the container.

Parameters:
-----------

aItem:  is an item to be removed. 

Definition at line 16603 of file pcbnew.py.


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