33 using namespace std::placeholders;
53 if( ( aNetCode >= 0 ) && board )
97 *aSource = constraint.
GetName();
122 return wxEmptyString;
129 return wxT(
"[** NO BOARD DEFINED **]" );
133 if( !netname.length() )
134 return wxT(
"[<no net>]" );
136 return wxT(
"[" +
UnescapeString( netname ) +
"](" +
_(
"Not Found" ) +
")" );
148 if( layerEnum.
Choices().GetCount() == 0 )
NETINFO_ITEM * FindNet(int aNetcode) const
Search for a net with the given netcode.
static PROPERTY_MANAGER & Instance()
static NETINFO_ITEM * OrphanedItem()
Wrapper class, so you can iterate through NETINFO_ITEM*s, not std::pair<int/wxString,...
virtual void SetLayer(PCB_LAYER_ID aLayer)
Set the layer this item is on.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
wxString GetNetClassName() const
MINOPTMAX< int > & Value()
BOARD_CONNECTED_ITEM_DESC()
ENUM_MAP & Undefined(T aValue)
virtual NETCLASS * GetNetClass() const
Return the NETCLASS for this item.
BOARD_CONNECTED_ITEM(BOARD_ITEM *aParent, KICAD_T idtype)
bool m_localRatsnestVisible
static ENUM_MAP< T > & Instance()
bool SetNetCode(int aNetCode, bool aNoAssert)
Set net using a net code.
wxString GetNetname() const
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
static struct BOARD_CONNECTED_ITEM_DESC _BOARD_CONNECTED_ITEM_DESC
#define NO_SETTER(owner, type)
A base class derived from BOARD_ITEM for items that can be connected and have a net,...
virtual wxString GetNetClassName() const
Returns the netclass of the zone.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
PCB_LAYER_ID
A quick note on layer IDs:
static const wxChar * Name(PCB_LAYER_ID aLayerId)
Return the fixed name association with aLayerId.
Container for NETINFO_ITEM elements, which are the nets.
A collection of nets and the parameters used to route or test these nets.
virtual BOARD * GetBoard() const
Return the BOARD in which this BOARD_ITEM resides, or NULL if none.
void InheritsAfter(TYPE_ID aDerived, TYPE_ID aBase)
Declare an inheritance relationship between types.
static LSET AllLayersMask()
LSEQ is a sequence (and therefore also a set) of PCB_LAYER_IDs.
wxString GetNetnameMsg() const
Some functions to handle hotkeys in KiCad.
Information pertinent to a Pcbnew printed circuit board.
NETINFO_ITEM * m_netinfo
Store all information about the net that item belongs to.
wxString UnescapeString(const wxString &aSource)
void AddProperty(PROPERTY_BASE *aProperty)
Register a property.
NETCLASS * GetDefault() const
virtual int GetOwnClearance(PCB_LAYER_ID aLayer, wxString *aSource=nullptr) const
Return an item's "own" clearance in internal units.
void ReplaceProperty(size_t aBase, const wxString &aName, PROPERTY_BASE *aNew)
Replace an existing property for a specific type.
Provide class metadata.Helper macro to map type hashes to names.
virtual NETCLASS * GetEffectiveNetclass() const
Return the NETCLASS for this item, or the default netclass if none is defined.
ENUM_MAP & Map(T aValue, const wxString &aName)
virtual PCB_LAYER_ID GetLayer() const
Return the primary layer this item is on.
std::shared_ptr< DRC_ENGINE > m_DRCEngine
virtual bool IsOnCopperLayer() const
Container for design settings for a BOARD object.