62 if( aInitWithDefaults )
146 return nc->GetName() == netclass;
constexpr EDA_IU_SCALE schIUScale
constexpr EDA_IU_SCALE pcbIUScale
A collection of nets and the parameters used to route or test these nets.
void SetViaDiameter(int aDia)
void SetViaDrill(int aSize)
void SetWireWidthParent(NETCLASS *parent)
static const char Default[]
the name of the default NETCLASS
void SetuViaDrillParent(NETCLASS *parent)
void SetPriority(int aPriority)
void SetDiffPairWidthParent(NETCLASS *parent)
void SetuViaDiameter(int aSize)
void SetDiffPairWidth(int aSize)
void SetViaDrillParent(NETCLASS *parent)
void SetDiffPairGapParent(NETCLASS *parent)
bool ContainsNetclassWithName(const wxString &netclass) const
Determines if the given netclass name is a constituent of this (maybe aggregate) netclass.
void ResetParents()
Resets all parent fields to point to this netclass.
void SetLineStyle(int aStyle)
NETCLASS(const wxString &aName, bool aInitWithDefaults=true)
Create a NETCLASS instance with aName.
void SetSchematicColor(COLOR4D aColor)
const wxString GetName() const
Gets the consolidated name of this netclass (which may be an aggregate)
void SetConstituentNetclasses(std::vector< NETCLASS * > &&constituents)
Sets the netclasses which make up this netclass.
void SetLineStyleParent(NETCLASS *parent)
void SetDiffPairViaGap(int aSize)
void ResetParameters()
Resets all parameters (except Name and Description)
void SetTrackWidthParent(NETCLASS *parent)
const std::vector< NETCLASS * > & GetConstituentNetclasses() const
Gets the netclasses which make up this netclass.
void SetViaDiameterParent(NETCLASS *parent)
void SetPcbColor(const COLOR4D &aColor)
void SetuViaDrill(int aSize)
const wxString GetVariableSubstitutionName() const
Gets the name of this (maybe aggregate) netclass in a format for label variable substitutions.
void SetDiffPairGap(int aSize)
void SetBusWidthParent(NETCLASS *parent)
void SetClearance(int aClearance)
bool operator==(const NETCLASS &other) const
void SetPcbColorParent(NETCLASS *parent)
void SetBusWidth(int aWidth)
void SetClearanceParent(NETCLASS *parent)
void SetWireWidth(int aWidth)
void SetDiffPairViaGapParent(NETCLASS *parent)
void SetuViaDiameterParent(NETCLASS *parent)
void SetSchematicColorParent(NETCLASS *parent)
void SetName(const wxString &aName)
void SetTrackWidth(int aWidth)
std::vector< NETCLASS * > m_constituents
NETCLASSes contributing to an aggregate.
wxString m_Name
Name of the net class.
This file contains miscellaneous commonly used macros and functions.
const int DEFAULT_UVIA_DIAMETER
const int DEFAULT_DIFF_PAIR_WIDTH
const int DEFAULT_DIFF_PAIR_GAP
const int DEFAULT_DIFF_PAIR_VIAGAP
const int DEFAULT_LINE_STYLE
const int DEFAULT_CLEARANCE
const int DEFAULT_UVIA_DRILL
const int DEFAULT_TRACK_WIDTH
const int DEFAULT_WIRE_WIDTH
const int DEFAULT_VIA_DRILL
const int DEFAULT_VIA_DIAMETER
const int DEFAULT_BUS_WIDTH
constexpr int MilsToIU(int mils) const
constexpr int mmToIU(double mm) const