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

Public Member Functions

def __init__ (self, aParent)
 
def GetNetItem (self, args)
 
def GetNetCount (self)
 
def AppendNet (self, aNewElement)
 
def RemoveNet (self, aNet)
 
def NetsByName (self)
 
def NetsByNetcode (self)
 
def GetParent (self)
 

Public Attributes

 this
 

Static Public Attributes

tuple ORPHANED_ITEM = _swig_property(_pcbnew.NETINFO_LIST_ORPHANED_ITEM_get, _pcbnew.NETINFO_LIST_ORPHANED_ITEM_set)
 

Detailed Description

Class NETINFO_LIST is a container class for NETINFO_ITEM elements,
which are the nets.

That makes this class a container for the nets.

C++ includes: class_netinfo.h 

Definition at line 31677 of file pcbnew.py.

Constructor & Destructor Documentation

def pcbnew.NETINFO_LIST.__init__ (   self,
  aParent 
)
__init__(NETINFO_LIST self, BOARD aParent) -> NETINFO_LIST

NETINFO_LIST::NETINFO_LIST(BOARD *aParent) 

Definition at line 31694 of file pcbnew.py.

Member Function Documentation

def pcbnew.NETINFO_LIST.AppendNet (   self,
  aNewElement 
)
AppendNet(NETINFO_LIST self, NETINFO_ITEM aNewElement)

void
NETINFO_LIST::AppendNet(NETINFO_ITEM *aNewElement)

Function AppendNet adds aNewElement to the end of the net list.

Negative net code means it is going to be auto-assigned. 

Definition at line 31743 of file pcbnew.py.

def pcbnew.NETINFO_LIST.GetNetCount (   self)
GetNetCount(NETINFO_LIST self) -> unsigned int

unsigned
NETINFO_LIST::GetNetCount() const

Function GetNetCount.

the number of nets ( always >= 1 ) because the first net is the "not
connected" net and always exists 

Definition at line 31728 of file pcbnew.py.

def pcbnew.NETINFO_LIST.GetNetItem (   self,
  args 
)
GetNetItem(NETINFO_LIST self, int aNetCode) -> NETINFO_ITEM
GetNetItem(NETINFO_LIST self, wxString aNetName) -> NETINFO_ITEM

NETINFO_ITEM *
NETINFO_LIST::GetNetItem(const wxString &aNetName) const

Function GetItem.

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

aNetName:  = net name to identify a given NETINFO_ITEM

NETINFO_ITEM* - by aNetName, or NULL if not found 

Definition at line 31708 of file pcbnew.py.

def pcbnew.NETINFO_LIST.GetParent (   self)
GetParent(NETINFO_LIST self) -> BOARD

BOARD*
NETINFO_LIST::GetParent() const 

Definition at line 31800 of file pcbnew.py.

def pcbnew.NETINFO_LIST.NetsByName (   self)
NetsByName(NETINFO_LIST self) -> NETNAMES_MAP

const NETNAMES_MAP&
NETINFO_LIST::NetsByName() const

Function GetPadCount.

the number of pads in boardReturn the name map, at least for python.

Definition at line 31769 of file pcbnew.py.

def pcbnew.NETINFO_LIST.NetsByNetcode (   self)
NetsByNetcode(NETINFO_LIST self) -> NETCODES_MAP

const
NETCODES_MAP& NETINFO_LIST::NetsByNetcode() const

Return the netcode map, at least for python. 

Definition at line 31784 of file pcbnew.py.

def pcbnew.NETINFO_LIST.RemoveNet (   self,
  aNet 
)
RemoveNet(NETINFO_LIST self, NETINFO_ITEM aNet)

void
NETINFO_LIST::RemoveNet(NETINFO_ITEM *aNet)

Function RemoveNet Removes a new from the net list. 

Definition at line 31757 of file pcbnew.py.

Member Data Documentation

tuple pcbnew.NETINFO_LIST.ORPHANED_ITEM = _swig_property(_pcbnew.NETINFO_LIST_ORPHANED_ITEM_get, _pcbnew.NETINFO_LIST_ORPHANED_ITEM_set)
static

Definition at line 31798 of file pcbnew.py.

pcbnew.NETINFO_LIST.this

Definition at line 31704 of file pcbnew.py.


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