26 #ifndef BOARD_CONNECTED_ITEM_H 27 #define BOARD_CONNECTED_ITEM_H 54 switch( aItem->
Type() )
109 bool SetNetCode(
int aNetCode,
bool aNoAssert );
208 #endif // BOARD_CONNECTED_ITEM_H
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
NETINFO_ITEM * GetNet() const
Return #NET_INFO object for a given item.
virtual NETCLASS * GetNetClass() const
Return the NETCLASS for this item.
BOARD_CONNECTED_ITEM(BOARD_ITEM *aParent, KICAD_T idtype)
bool m_localRatsnestVisible
bool SetNetCode(int aNetCode, bool aNoAssert)
Set net using a net code.
class ARC, an arc track segment on a copper layer
bool GetLocalRatsnestVisible() const
wxString GetNetname() const
class PAD, a pad in a footprint
void SetLocalRatsnestVisible(bool aVisible)
virtual int GetLocalClearanceOverrides(wxString *aSource) const
Return any local clearance overrides set in the "classic" (ie: pre-rule) system.
bool IsConnected() const override
Returns information if the object is derived from BOARD_CONNECTED_ITEM.
A base class derived from BOARD_ITEM for items that can be connected and have a net,...
const wxString & GetShortNetname() const
virtual wxString GetNetClassName() const
Returns the netclass of the zone.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
class TRACK, a track segment (segment on a copper layer)
PCB_LAYER_ID
A quick note on layer IDs:
wxString GetShortNetname() const
A collection of nets and the parameters used to route or test these nets.
const wxString & GetNetname() const
class ZONE, a copper pour area
static bool ClassOf(const EDA_ITEM *aItem)
Returns information if the object is derived from BOARD_CONNECTED_ITEM.
wxString GetNetnameMsg() const
Handle the data for a net.
void SetNet(NETINFO_ITEM *aNetInfo)
Set a NET_INFO object for the item.
NETINFO_ITEM * m_netinfo
Store all information about the net that item belongs to.
A base class for most all the KiCad significant classes used in schematics and boards.
virtual int GetOwnClearance(PCB_LAYER_ID aLayer, wxString *aSource=nullptr) const
Return an item's "own" clearance in internal units.
class VIA, a via (like a track segment on a copper layer)
virtual NETCLASS * GetEffectiveNetclass() const
Return the NETCLASS for this item, or the default netclass if none is defined.
virtual int GetLocalClearance(wxString *aSource) const
Return any local clearances set in the "classic" (ie: pre-rule) system.
KICAD_T Type() const
Returns the type of object.
void SetNetCode(int aNetCode)