KiCad PCB EDA Suite
|
A collection of nets and the parameters used to route or test these nets. More...
#include <netclass.h>
Public Member Functions | |
NETCLASS (const wxString &aName, bool aInitWithDefaults=true) | |
Create a NETCLASS instance with aName. | |
~NETCLASS () | |
NETCLASS (const NETCLASS &)=delete | |
NETCLASS & | operator= (const NETCLASS &)=delete |
bool | operator== (const NETCLASS &other) const |
wxString | GetClass () const |
void | Serialize (google::protobuf::Any &aContainer) const override |
Serializes this object to the given Any message. | |
bool | Deserialize (const google::protobuf::Any &aContainer) override |
Deserializes the given protobuf message into this object. | |
void | ResetParents () |
Resets all parent fields to point to this netclass. | |
void | ResetParameters () |
Resets all parameters (except Name and Description) | |
const std::vector< NETCLASS * > & | GetConstituentNetclasses () const |
Gets the netclasses which make up this netclass. | |
void | SetConstituentNetclasses (std::vector< NETCLASS * > &&constituents) |
Sets the netclasses which make up this netclass. | |
bool | ContainsNetclassWithName (const wxString &netclass) const |
Determines if the given netclass name is a constituent of this (maybe aggregate) netclass. | |
bool | IsDefault () const |
@ brief Determines if this is marked as the default netclass | |
void | SetName (const wxString &aName) |
Set the name of this netclass. | |
const wxString | GetName () const |
Gets the name of this (maybe aggregate) netclass in a format for internal usage or for export to external tools / netlists. | |
const wxString | GetHumanReadableName () const |
Gets the consolidated name of this netclass (which may be an aggregate). | |
const wxString & | GetDescription () const |
void | SetDescription (const wxString &aDesc) |
bool | HasClearance () const |
int | GetClearance () const |
std::optional< int > | GetClearanceOpt () const |
void | SetClearance (int aClearance) |
void | SetClearance (std::optional< int > aClearance) |
void | SetClearanceParent (NETCLASS *parent) |
NETCLASS * | GetClearanceParent () const |
bool | HasTrackWidth () const |
int | GetTrackWidth () const |
std::optional< int > | GetTrackWidthOpt () const |
void | SetTrackWidth (int aWidth) |
void | SetTrackWidth (std::optional< int > aWidth) |
void | SetTrackWidthParent (NETCLASS *parent) |
NETCLASS * | GetTrackWidthParent () const |
bool | HasViaDiameter () const |
int | GetViaDiameter () const |
std::optional< int > | GetViaDiameterOpt () const |
void | SetViaDiameter (int aDia) |
void | SetViaDiameter (std::optional< int > aDia) |
void | SetViaDiameterParent (NETCLASS *parent) |
NETCLASS * | GetViaDiameterParent () const |
int | HasViaDrill () const |
int | GetViaDrill () const |
std::optional< int > | GetViaDrillOpt () const |
void | SetViaDrill (int aSize) |
void | SetViaDrill (std::optional< int > aSize) |
void | SetViaDrillParent (NETCLASS *parent) |
NETCLASS * | GetViaDrillParent () const |
bool | HasuViaDiameter () const |
int | GetuViaDiameter () const |
std::optional< int > | GetuViaDiameterOpt () const |
void | SetuViaDiameter (int aSize) |
void | SetuViaDiameter (std::optional< int > aSize) |
void | SetuViaDiameterParent (NETCLASS *parent) |
NETCLASS * | GetuViaDiameterParent () const |
bool | HasuViaDrill () const |
int | GetuViaDrill () const |
std::optional< int > | GetuViaDrillOpt () const |
void | SetuViaDrill (int aSize) |
void | SetuViaDrill (std::optional< int > aSize) |
void | SetuViaDrillParent (NETCLASS *parent) |
NETCLASS * | GetuViaDrillParent () const |
bool | HasDiffPairWidth () const |
int | GetDiffPairWidth () const |
std::optional< int > | GetDiffPairWidthOpt () const |
void | SetDiffPairWidth (int aSize) |
void | SetDiffPairWidth (std::optional< int > aSize) |
void | SetDiffPairWidthParent (NETCLASS *parent) |
NETCLASS * | GetDiffPairWidthParent () const |
bool | HasDiffPairGap () const |
int | GetDiffPairGap () const |
std::optional< int > | GetDiffPairGapOpt () const |
void | SetDiffPairGap (int aSize) |
void | SetDiffPairGap (std::optional< int > aSize) |
void | SetDiffPairGapParent (NETCLASS *parent) |
NETCLASS * | GetDiffPairGapParent () const |
bool | HasDiffPairViaGap () const |
int | GetDiffPairViaGap () const |
std::optional< int > | GetDiffPairViaGapOpt () const |
void | SetDiffPairViaGap (int aSize) |
void | SetDiffPairViaGap (std::optional< int > aSize) |
void | SetDiffPairViaGapParent (NETCLASS *parent) |
NETCLASS * | GetDiffPairViaGapParent () const |
bool | HasPcbColor () const |
COLOR4D | GetPcbColor (bool aIsForSave=false) const |
void | SetPcbColor (const COLOR4D &aColor) |
void | SetPcbColorParent (NETCLASS *parent) |
NETCLASS * | GetPcbColorParent () const |
bool | HasWireWidth () const |
int | GetWireWidth () const |
std::optional< int > | GetWireWidthOpt () const |
void | SetWireWidth (int aWidth) |
void | SetWireWidth (std::optional< int > aWidth) |
void | SetWireWidthParent (NETCLASS *parent) |
NETCLASS * | GetWireWidthParent () const |
bool | HasBusWidth () const |
int | GetBusWidth () const |
std::optional< int > | GetBusWidthOpt () const |
void | SetBusWidth (int aWidth) |
void | SetBusWidth (std::optional< int > aWidth) |
void | SetBusWidthParent (NETCLASS *parent) |
NETCLASS * | GetBusWidthParent () const |
COLOR4D | GetSchematicColor (bool aIsForSave=false) const |
void | SetSchematicColor (COLOR4D aColor) |
void | SetSchematicColorParent (NETCLASS *parent) |
NETCLASS * | GetSchematicColorParent () const |
bool | HasLineStyle () const |
int | GetLineStyle () const |
std::optional< int > | GetLineStyleOpt () const |
void | SetLineStyle (int aStyle) |
void | SetLineStyle (std::optional< int > aStyle) |
void | SetLineStyleParent (NETCLASS *parent) |
NETCLASS * | GetLineStyleParent () const |
void | SetPriority (int aPriority) |
int | GetPriority () const |
bool | HasDelayProfile () const |
void | SetDelayProfile (const wxString &aDelayProfile) |
wxString | GetDelayProfile () const |
void | SetDelayProfileParent (NETCLASS *aParent) |
NETCLASS * | GetDelayProfileParent () const |
Static Public Attributes | |
static const char | Default [] = "Default" |
the name of the default NETCLASS | |
Protected Attributes | |
bool | m_isDefault |
Mark if this instance is the default netclass. | |
std::vector< NETCLASS * > | m_constituents |
NETCLASSes contributing to an aggregate. | |
wxString | m_Name |
Name of the net class. | |
int | m_Priority |
The priority for multiple netclass resolution. | |
wxString | m_Description |
what this NETCLASS is for. | |
std::optional< int > | m_Clearance |
clearance when routing | |
std::optional< int > | m_TrackWidth |
track width used to route nets | |
std::optional< int > | m_ViaDia |
via diameter | |
std::optional< int > | m_ViaDrill |
via drill hole diameter | |
std::optional< int > | m_uViaDia |
microvia diameter | |
std::optional< int > | m_uViaDrill |
microvia drill hole diameter | |
std::optional< int > | m_diffPairWidth |
std::optional< int > | m_diffPairGap |
std::optional< int > | m_diffPairViaGap |
std::optional< int > | m_wireWidth |
std::optional< int > | m_busWidth |
COLOR4D | m_schematicColor |
std::optional< int > | m_lineStyle |
COLOR4D | m_pcbColor |
Optional PCB color override for this netclass. | |
wxString | m_DelayProfile |
The tuning profile name being used by this netclass. | |
NETCLASS * | m_clearanceParent |
NETCLASS * | m_trackWidthParent |
NETCLASS * | m_viaDiameterParent |
NETCLASS * | m_viaDrillParent |
NETCLASS * | m_uViaDiaParent |
NETCLASS * | m_uViaDrillParent |
NETCLASS * | m_diffPairWidthParent |
NETCLASS * | m_diffPairGapParent |
NETCLASS * | m_diffPairViaGapParent |
NETCLASS * | m_pcbColorParent |
NETCLASS * | m_wireWidthParent |
NETCLASS * | m_busWidthParent |
NETCLASS * | m_schematicColorParent |
NETCLASS * | m_lineStyleParent |
NETCLASS * | m_delayProfileParent |
A collection of nets and the parameters used to route or test these nets.
Definition at line 44 of file netclass.h.
NETCLASS::NETCLASS | ( | const wxString & | aName, |
bool | aInitWithDefaults = true ) |
Create a NETCLASS instance with aName.
The units on the optional parameters are Internal Units (1 nm)
aName | is the name of this new netclass. |
aInitWithDefaults | if true, initalise the netclass with default values |
Definition at line 56 of file netclass.cpp.
References DEFAULT_BUS_WIDTH, DEFAULT_CLEARANCE, DEFAULT_DIFF_PAIR_GAP, DEFAULT_DIFF_PAIR_VIAGAP, DEFAULT_DIFF_PAIR_WIDTH, DEFAULT_LINE_STYLE, DEFAULT_TRACK_WIDTH, DEFAULT_UVIA_DIAMETER, DEFAULT_UVIA_DRILL, DEFAULT_VIA_DIAMETER, DEFAULT_VIA_DRILL, DEFAULT_WIRE_WIDTH, m_constituents, m_isDefault, ResetParents(), SetBusWidth(), SetClearance(), SetDelayProfile(), SetDiffPairGap(), SetDiffPairViaGap(), SetDiffPairWidth(), SetLineStyle(), SetName(), SetPcbColor(), SetPriority(), SetSchematicColor(), SetTrackWidth(), SetuViaDiameter(), SetuViaDrill(), SetViaDiameter(), SetViaDrill(), SetWireWidth(), and COLOR4D::UNSPECIFIED.
Referenced by ContainsNetclassWithName(), GetBusWidthParent(), GetClearanceParent(), GetDelayProfileParent(), GetDiffPairGapParent(), GetDiffPairViaGapParent(), GetDiffPairWidthParent(), GetLineStyleParent(), GetPcbColorParent(), GetSchematicColorParent(), GetTrackWidthParent(), GetuViaDiameterParent(), GetuViaDrillParent(), GetViaDiameterParent(), GetViaDrillParent(), GetWireWidthParent(), NETCLASS(), operator=(), operator==(), Serialize(), SetBusWidthParent(), SetClearanceParent(), SetDelayProfileParent(), SetDiffPairGapParent(), SetDiffPairViaGapParent(), SetDiffPairWidthParent(), SetLineStyleParent(), SetPcbColorParent(), SetSchematicColorParent(), SetTrackWidthParent(), SetuViaDiameterParent(), SetuViaDrillParent(), SetViaDiameterParent(), SetViaDrillParent(), and SetWireWidthParent().
|
inline |
Definition at line 57 of file netclass.h.
|
delete |
References NETCLASS().
bool NETCLASS::ContainsNetclassWithName | ( | const wxString & | netclass | ) | const |
Determines if the given netclass name is a constituent of this (maybe aggregate) netclass.
Definition at line 278 of file netclass.cpp.
References m_constituents, and NETCLASS().
Referenced by DIALOG_CLEANUP_TRACKS_AND_VIAS::doCleanup(), hasNetclassFunc(), DIALOG_GLOBAL_EDIT_TEARDROPS::visitItem(), and DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::visitItem().
|
overridevirtual |
Deserializes the given protobuf message into this object.
aContainer | is an Any which should have a concrete type matching this object |
Reimplemented from SERIALIZABLE.
Definition at line 205 of file netclass.cpp.
References m_busWidth, m_Clearance, m_diffPairGap, m_diffPairViaGap, m_diffPairWidth, m_Name, m_pcbColor, m_Priority, m_schematicColor, m_TrackWidth, m_ViaDia, m_ViaDrill, m_wireWidth, SetConstituentNetclasses(), and kiapi::common::UnpackColor().
|
inline |
Definition at line 212 of file netclass.h.
References m_busWidth.
Referenced by SCH_BUS_BUS_ENTRY::GetPenWidth(), SCH_LINE::GetPenWidth(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 213 of file netclass.h.
References m_busWidth.
|
inline |
Definition at line 217 of file netclass.h.
References m_busWidthParent, and NETCLASS().
|
inline |
Definition at line 64 of file netclass.h.
|
inline |
Definition at line 117 of file netclass.h.
References m_Clearance.
Referenced by DSN::SPECCTRA_DB::exportNETCLASS(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 118 of file netclass.h.
References m_Clearance.
|
inline |
Definition at line 122 of file netclass.h.
References m_clearanceParent, and NETCLASS().
const std::vector< NETCLASS * > & NETCLASS::GetConstituentNetclasses | ( | ) | const |
Gets the netclasses which make up this netclass.
Definition at line 266 of file netclass.cpp.
References m_constituents.
|
inline |
Definition at line 246 of file netclass.h.
References m_DelayProfile.
Referenced by TIME_DOMAIN_PARAMETERS_USER_DEFINED::CalculatePropagationDelayForShapeLineChain(), TIME_DOMAIN_PARAMETERS_USER_DEFINED::GetPropagationDelay(), TIME_DOMAIN_PARAMETERS_USER_DEFINED::GetTrackLengthForPropagationDelay(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 248 of file netclass.h.
References m_delayProfileParent, and NETCLASS().
|
inline |
Definition at line 113 of file netclass.h.
References m_Description.
|
inline |
Definition at line 173 of file netclass.h.
References m_diffPairGap.
Referenced by NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 174 of file netclass.h.
References m_diffPairGap.
|
inline |
Definition at line 178 of file netclass.h.
References m_diffPairGapParent, and NETCLASS().
|
inline |
Definition at line 181 of file netclass.h.
References m_diffPairViaGap.
Referenced by NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 182 of file netclass.h.
References m_diffPairViaGap.
|
inline |
Definition at line 186 of file netclass.h.
References m_diffPairViaGapParent, and NETCLASS().
|
inline |
Definition at line 165 of file netclass.h.
References m_diffPairWidth.
Referenced by NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 166 of file netclass.h.
References m_diffPairWidth.
|
inline |
Definition at line 170 of file netclass.h.
References m_diffPairWidthParent, and NETCLASS().
const wxString NETCLASS::GetHumanReadableName | ( | ) | const |
Gets the consolidated name of this netclass (which may be an aggregate).
This is intended for display to users (e.g. in infobars or messages). WARNING: Do not use this to compare equivalence, or to export to other tools)
Definition at line 288 of file netclass.cpp.
References _, GetName(), m_constituents, m_Name, and name.
Referenced by BOARD_INSPECTION_TOOL::getItemDescription(), PCB_TUNING_PATTERN::GetMsgPanelInfo(), PCB_NET_INSPECTOR_PANEL::LIST_ITEM::LIST_ITEM(), and ROUTER_TOOL::UpdateMessagePanel().
|
inline |
Definition at line 234 of file netclass.h.
References m_lineStyle.
Referenced by SCH_BUS_ENTRY_BASE::GetEffectiveLineStyle(), SCH_LINE::GetEffectiveLineStyle(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 235 of file netclass.h.
References m_lineStyle.
|
inline |
Definition at line 239 of file netclass.h.
References m_lineStyleParent, and NETCLASS().
const wxString NETCLASS::GetName | ( | ) | const |
Gets the name of this (maybe aggregate) netclass in a format for internal usage or for export to external tools / netlists.
WARNING: Do not use this to display a netclass name to a user. Use GetHumanReadableName instead.
Definition at line 322 of file netclass.cpp.
References m_constituents, m_Name, and name.
Referenced by BOOST_AUTO_TEST_CASE(), DSN::SPECCTRA_DB::exportNETCLASS(), DSN::SPECCTRA_DB::FromBOARD(), GetHumanReadableName(), BOARD_CONNECTED_ITEM::GetNetClassName(), NETS_SEARCH_HANDLER::getResultCell(), RATSNEST_SEARCH_HANDLER::getResultCell(), API_HANDLER_PCB::handleGetNets(), hasExactNetclassFunc(), PCB_NET_INSPECTOR_PANEL::netFilterMatches(), and SCH_LABEL_BASE::ResolveTextVar().
|
inline |
Definition at line 189 of file netclass.h.
References m_isDefault, m_pcbColor, and COLOR4D::UNSPECIFIED.
Referenced by PNS_KICAD_IFACE::DisplayRatline(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), NET_SETTINGS::makeEffectiveNetclass(), and RATSNEST_VIEW_ITEM::ViewDraw().
|
inline |
Definition at line 201 of file netclass.h.
References m_pcbColorParent, and NETCLASS().
|
inline |
Definition at line 242 of file netclass.h.
References m_Priority.
|
inline |
Definition at line 219 of file netclass.h.
References m_isDefault, m_schematicColor, and COLOR4D::UNSPECIFIED.
Referenced by SCH_BUS_ENTRY_BASE::GetBusEntryColor(), SCH_FIELD::GetFieldColor(), SCH_JUNCTION::GetJunctionColor(), SCH_LABEL_BASE::GetLabelColor(), SCH_LINE::GetLineColor(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 231 of file netclass.h.
References m_schematicColorParent, and NETCLASS().
|
inline |
Definition at line 125 of file netclass.h.
References m_TrackWidth.
Referenced by DSN::SPECCTRA_DB::exportNETCLASS(), PCB_IO_EAGLE::LoadBoard(), NET_SETTINGS::makeEffectiveNetclass(), BOARD_EDITOR_CONTROL::TrackWidthDec(), and BOARD_EDITOR_CONTROL::TrackWidthInc().
|
inline |
Definition at line 126 of file netclass.h.
References m_TrackWidth.
|
inline |
Definition at line 130 of file netclass.h.
References m_trackWidthParent, and NETCLASS().
|
inline |
Definition at line 149 of file netclass.h.
References m_uViaDia.
Referenced by EDIT_TOOL::ChangeTrackWidth(), NET_SETTINGS::makeEffectiveNetclass(), and PCB_EDIT_FRAME::SetTrackSegmentWidth().
|
inline |
Definition at line 150 of file netclass.h.
References m_uViaDia.
|
inline |
Definition at line 154 of file netclass.h.
References m_uViaDiaParent, and NETCLASS().
|
inline |
Definition at line 157 of file netclass.h.
References m_uViaDrill.
Referenced by EDIT_TOOL::ChangeTrackWidth(), PCB_VIA::GetDrillValue(), NET_SETTINGS::makeEffectiveNetclass(), and PCB_EDIT_FRAME::SetTrackSegmentWidth().
|
inline |
Definition at line 158 of file netclass.h.
References m_uViaDrill.
|
inline |
Definition at line 162 of file netclass.h.
References m_uViaDrillParent, and NETCLASS().
|
inline |
Definition at line 133 of file netclass.h.
References m_ViaDia.
Referenced by DSN::SPECCTRA_DB::exportNETCLASS(), PCB_IO_EAGLE::LoadBoard(), NET_SETTINGS::makeEffectiveNetclass(), BOARD_EDITOR_CONTROL::ViaSizeDec(), and BOARD_EDITOR_CONTROL::ViaSizeInc().
|
inline |
Definition at line 134 of file netclass.h.
References m_ViaDia.
|
inline |
Definition at line 138 of file netclass.h.
References m_viaDiameterParent, and NETCLASS().
|
inline |
Definition at line 141 of file netclass.h.
References m_ViaDrill.
Referenced by DSN::SPECCTRA_DB::exportNETCLASS(), PCB_VIA::GetDrillValue(), PCB_IO_EAGLE::LoadBoard(), NET_SETTINGS::makeEffectiveNetclass(), BOARD_EDITOR_CONTROL::ViaSizeDec(), and BOARD_EDITOR_CONTROL::ViaSizeInc().
|
inline |
Definition at line 142 of file netclass.h.
References m_ViaDrill.
|
inline |
Definition at line 146 of file netclass.h.
References m_viaDrillParent, and NETCLASS().
|
inline |
Definition at line 204 of file netclass.h.
References m_wireWidth.
Referenced by SCH_BUS_WIRE_ENTRY::GetPenWidth(), SCH_LINE::GetPenWidth(), SCH_EDIT_FRAME::GetSchematicJunctionSize(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 205 of file netclass.h.
References m_wireWidth.
|
inline |
Definition at line 209 of file netclass.h.
References m_wireWidthParent, and NETCLASS().
|
inline |
Definition at line 211 of file netclass.h.
References m_busWidth.
Referenced by NET_SETTINGS::addMissingDefaults(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 116 of file netclass.h.
References m_Clearance.
Referenced by NET_SETTINGS::addMissingDefaults(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 244 of file netclass.h.
References m_DelayProfile.
Referenced by NET_SETTINGS::addMissingDefaults(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 172 of file netclass.h.
References m_diffPairGap.
Referenced by NET_SETTINGS::addMissingDefaults(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 180 of file netclass.h.
References m_diffPairViaGap.
Referenced by NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 164 of file netclass.h.
References m_diffPairWidth.
Referenced by NET_SETTINGS::addMissingDefaults(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 233 of file netclass.h.
References m_lineStyle.
Referenced by NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 188 of file netclass.h.
References m_isDefault, m_pcbColor, and COLOR4D::UNSPECIFIED.
Referenced by PNS_KICAD_IFACE::DisplayRatline(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), and RATSNEST_VIEW_ITEM::ViewDraw().
|
inline |
Definition at line 124 of file netclass.h.
References m_TrackWidth.
Referenced by NET_SETTINGS::addMissingDefaults(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 148 of file netclass.h.
References m_uViaDia.
Referenced by NET_SETTINGS::addMissingDefaults(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 156 of file netclass.h.
References m_uViaDrill.
Referenced by NET_SETTINGS::addMissingDefaults(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 132 of file netclass.h.
References m_ViaDia.
Referenced by NET_SETTINGS::addMissingDefaults(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 140 of file netclass.h.
References m_ViaDrill.
Referenced by NET_SETTINGS::addMissingDefaults(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
Definition at line 203 of file netclass.h.
References m_wireWidth.
Referenced by NET_SETTINGS::addMissingDefaults(), and NET_SETTINGS::makeEffectiveNetclass().
|
inline |
@ brief Determines if this is marked as the default netclass
Definition at line 91 of file netclass.h.
References m_isDefault.
References NETCLASS().
bool NETCLASS::operator== | ( | const NETCLASS & | other | ) | const |
Definition at line 130 of file netclass.cpp.
References m_constituents, and NETCLASS().
void NETCLASS::ResetParameters | ( | ) |
Resets all parameters (except Name and Description)
Definition at line 109 of file netclass.cpp.
References ResetParents(), SetBusWidth(), SetClearance(), SetDiffPairGap(), SetDiffPairViaGap(), SetDiffPairWidth(), SetLineStyle(), SetPcbColor(), SetSchematicColor(), SetTrackWidth(), SetuViaDiameter(), SetuViaDrill(), SetViaDiameter(), SetViaDrill(), SetWireWidth(), and COLOR4D::UNSPECIFIED.
void NETCLASS::ResetParents | ( | ) |
Resets all parent fields to point to this netclass.
Definition at line 89 of file netclass.cpp.
References SetBusWidthParent(), SetClearanceParent(), SetDelayProfileParent(), SetDiffPairGapParent(), SetDiffPairViaGapParent(), SetDiffPairWidthParent(), SetLineStyleParent(), SetPcbColorParent(), SetSchematicColorParent(), SetTrackWidthParent(), SetuViaDiameterParent(), SetuViaDrillParent(), SetViaDiameterParent(), SetViaDrillParent(), and SetWireWidthParent().
Referenced by NETCLASS(), and ResetParameters().
|
overridevirtual |
Serializes this object to the given Any message.
The Any message's concrete type will be specific to the object in question.
aContainer | will be filled with a message describing this object |
Reimplemented from SERIALIZABLE.
Definition at line 136 of file netclass.cpp.
References m_busWidth, m_Clearance, m_constituents, m_diffPairGap, m_diffPairViaGap, m_diffPairWidth, m_lineStyle, m_Name, m_pcbColor, m_Priority, m_schematicColor, m_TrackWidth, m_ViaDia, m_ViaDrill, m_wireWidth, NETCLASS(), kiapi::common::PackColor(), kiapi::common::PackVector2(), and COLOR4D::UNSPECIFIED.
Referenced by API_HANDLER_PCB::handleGetNetClassForNets().
|
inline |
Definition at line 214 of file netclass.h.
References m_busWidth.
Referenced by NET_SETTINGS::addMissingDefaults(), NETCLASS(), and ResetParameters().
|
inline |
Definition at line 215 of file netclass.h.
References m_busWidth.
|
inline |
Definition at line 216 of file netclass.h.
References m_busWidthParent, and NETCLASS().
Referenced by NET_SETTINGS::addMissingDefaults(), and ResetParents().
|
inline |
Definition at line 119 of file netclass.h.
References m_Clearance.
Referenced by NET_SETTINGS::addMissingDefaults(), EVT_GRID_CMD_CELL_CHANGED(), FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME(), NETCLASS(), and ResetParameters().
|
inline |
Definition at line 120 of file netclass.h.
References m_Clearance.
|
inline |
Definition at line 121 of file netclass.h.
References m_clearanceParent, and NETCLASS().
Referenced by NET_SETTINGS::addMissingDefaults(), and ResetParents().
void NETCLASS::SetConstituentNetclasses | ( | std::vector< NETCLASS * > && | constituents | ) |
Sets the netclasses which make up this netclass.
Definition at line 272 of file netclass.cpp.
References m_constituents.
Referenced by Deserialize().
|
inline |
Definition at line 245 of file netclass.h.
References m_DelayProfile.
Referenced by NET_SETTINGS::addMissingDefaults(), and NETCLASS().
|
inline |
Definition at line 247 of file netclass.h.
References m_delayProfileParent, and NETCLASS().
Referenced by NET_SETTINGS::addMissingDefaults(), and ResetParents().
|
inline |
|
inline |
Definition at line 175 of file netclass.h.
References m_diffPairGap.
Referenced by NET_SETTINGS::addMissingDefaults(), NETCLASS(), and ResetParameters().
|
inline |
Definition at line 176 of file netclass.h.
References m_diffPairGap.
|
inline |
Definition at line 177 of file netclass.h.
References m_diffPairGapParent, and NETCLASS().
Referenced by NET_SETTINGS::addMissingDefaults(), and ResetParents().
|
inline |
Definition at line 183 of file netclass.h.
References m_diffPairViaGap.
Referenced by NETCLASS(), and ResetParameters().
|
inline |
Definition at line 184 of file netclass.h.
References m_diffPairViaGap.
|
inline |
Definition at line 185 of file netclass.h.
References m_diffPairViaGapParent, and NETCLASS().
Referenced by ResetParents().
|
inline |
Definition at line 167 of file netclass.h.
References m_diffPairWidth.
Referenced by NET_SETTINGS::addMissingDefaults(), NETCLASS(), and ResetParameters().
|
inline |
Definition at line 168 of file netclass.h.
References m_diffPairWidth.
|
inline |
Definition at line 169 of file netclass.h.
References m_diffPairWidthParent, and NETCLASS().
Referenced by NET_SETTINGS::addMissingDefaults(), and ResetParents().
|
inline |
Definition at line 236 of file netclass.h.
References m_lineStyle.
Referenced by NETCLASS(), and ResetParameters().
|
inline |
Definition at line 237 of file netclass.h.
References m_lineStyle.
|
inline |
Definition at line 238 of file netclass.h.
References m_lineStyleParent, and NETCLASS().
Referenced by ResetParents().
|
inline |
Set the name of this netclass.
Only relevant for root netclasses (i.e. those which are not an aggregate)
Definition at line 95 of file netclass.h.
References Default, m_isDefault, and m_Name.
Referenced by NETCLASS().
|
inline |
Definition at line 199 of file netclass.h.
References m_pcbColor.
Referenced by NETCLASS(), and ResetParameters().
|
inline |
Definition at line 200 of file netclass.h.
References m_pcbColorParent, and NETCLASS().
Referenced by ResetParents().
|
inline |
|
inline |
Definition at line 229 of file netclass.h.
References m_schematicColor.
Referenced by NETCLASS(), and ResetParameters().
|
inline |
Definition at line 230 of file netclass.h.
References m_schematicColorParent, and NETCLASS().
Referenced by ResetParents().
|
inline |
Definition at line 127 of file netclass.h.
References m_TrackWidth.
Referenced by NET_SETTINGS::addMissingDefaults(), NETCLASS(), and ResetParameters().
|
inline |
Definition at line 128 of file netclass.h.
References m_TrackWidth.
|
inline |
Definition at line 129 of file netclass.h.
References m_trackWidthParent, and NETCLASS().
Referenced by NET_SETTINGS::addMissingDefaults(), and ResetParents().
|
inline |
Definition at line 151 of file netclass.h.
References m_uViaDia.
Referenced by NET_SETTINGS::addMissingDefaults(), NETCLASS(), and ResetParameters().
|
inline |
Definition at line 152 of file netclass.h.
References m_uViaDia.
|
inline |
Definition at line 153 of file netclass.h.
References m_uViaDiaParent, and NETCLASS().
Referenced by NET_SETTINGS::addMissingDefaults(), and ResetParents().
|
inline |
Definition at line 159 of file netclass.h.
References m_uViaDrill.
Referenced by NET_SETTINGS::addMissingDefaults(), NETCLASS(), and ResetParameters().
|
inline |
Definition at line 160 of file netclass.h.
References m_uViaDrill.
|
inline |
Definition at line 161 of file netclass.h.
References m_uViaDrillParent, and NETCLASS().
Referenced by NET_SETTINGS::addMissingDefaults(), and ResetParents().
|
inline |
Definition at line 135 of file netclass.h.
References m_ViaDia.
Referenced by NET_SETTINGS::addMissingDefaults(), NETCLASS(), and ResetParameters().
|
inline |
Definition at line 136 of file netclass.h.
References m_ViaDia.
|
inline |
Definition at line 137 of file netclass.h.
References m_viaDiameterParent, and NETCLASS().
Referenced by NET_SETTINGS::addMissingDefaults(), and ResetParents().
|
inline |
Definition at line 143 of file netclass.h.
References m_ViaDrill.
Referenced by NET_SETTINGS::addMissingDefaults(), NETCLASS(), and ResetParameters().
|
inline |
Definition at line 144 of file netclass.h.
References m_ViaDrill.
|
inline |
Definition at line 145 of file netclass.h.
References m_viaDrillParent, and NETCLASS().
Referenced by NET_SETTINGS::addMissingDefaults(), and ResetParents().
|
inline |
Definition at line 206 of file netclass.h.
References m_wireWidth.
Referenced by NET_SETTINGS::addMissingDefaults(), NETCLASS(), and ResetParameters().
|
inline |
Definition at line 207 of file netclass.h.
References m_wireWidth.
|
inline |
Definition at line 208 of file netclass.h.
References m_wireWidthParent, and NETCLASS().
Referenced by NET_SETTINGS::addMissingDefaults(), and ResetParents().
|
static |
the name of the default NETCLASS
Definition at line 47 of file netclass.h.
Referenced by BOARD::BOARD(), DSN::SPECCTRA_DB::exportNETCLASS(), DSN::SPECCTRA_DB::FromBOARD(), NET_SETTINGS::GetEffectiveNetClass(), NET_SETTINGS::migrateSchema3to4(), NET_SETTINGS::NET_SETTINGS(), APPEARANCE_CONTROLS::onNetclassContextMenu(), PANEL_SETUP_NETCLASSES::OnRemoveNetclassClick(), NET_SETTINGS::RecomputeEffectiveNetclasses(), SetName(), and DIALOG_ASSIGN_NETCLASS::TransferDataToWindow().
|
protected |
Definition at line 273 of file netclass.h.
Referenced by Deserialize(), GetBusWidth(), GetBusWidthOpt(), HasBusWidth(), Serialize(), SetBusWidth(), and SetBusWidth().
|
protected |
Definition at line 293 of file netclass.h.
Referenced by GetBusWidthParent(), and SetBusWidthParent().
|
protected |
clearance when routing
Definition at line 259 of file netclass.h.
Referenced by Deserialize(), GetClearance(), GetClearanceOpt(), HasClearance(), Serialize(), SetClearance(), and SetClearance().
|
protected |
Definition at line 282 of file netclass.h.
Referenced by GetClearanceParent(), and SetClearanceParent().
|
protected |
NETCLASSes contributing to an aggregate.
Definition at line 253 of file netclass.h.
Referenced by ContainsNetclassWithName(), GetConstituentNetclasses(), GetHumanReadableName(), GetName(), NETCLASS(), operator==(), Serialize(), and SetConstituentNetclasses().
|
protected |
The tuning profile name being used by this netclass.
Definition at line 279 of file netclass.h.
Referenced by GetDelayProfile(), HasDelayProfile(), and SetDelayProfile().
|
protected |
Definition at line 296 of file netclass.h.
Referenced by GetDelayProfileParent(), and SetDelayProfileParent().
|
protected |
what this NETCLASS is for.
Definition at line 257 of file netclass.h.
Referenced by GetDescription(), and SetDescription().
|
protected |
Definition at line 269 of file netclass.h.
Referenced by Deserialize(), GetDiffPairGap(), GetDiffPairGapOpt(), HasDiffPairGap(), Serialize(), SetDiffPairGap(), and SetDiffPairGap().
|
protected |
Definition at line 289 of file netclass.h.
Referenced by GetDiffPairGapParent(), and SetDiffPairGapParent().
|
protected |
Definition at line 270 of file netclass.h.
Referenced by Deserialize(), GetDiffPairViaGap(), GetDiffPairViaGapOpt(), HasDiffPairViaGap(), Serialize(), SetDiffPairViaGap(), and SetDiffPairViaGap().
|
protected |
Definition at line 290 of file netclass.h.
Referenced by GetDiffPairViaGapParent(), and SetDiffPairViaGapParent().
|
protected |
Definition at line 268 of file netclass.h.
Referenced by Deserialize(), GetDiffPairWidth(), GetDiffPairWidthOpt(), HasDiffPairWidth(), Serialize(), SetDiffPairWidth(), and SetDiffPairWidth().
|
protected |
Definition at line 288 of file netclass.h.
Referenced by GetDiffPairWidthParent(), and SetDiffPairWidthParent().
|
protected |
Mark if this instance is the default netclass.
Definition at line 251 of file netclass.h.
Referenced by GetPcbColor(), GetSchematicColor(), HasPcbColor(), IsDefault(), NETCLASS(), and SetName().
|
protected |
Definition at line 275 of file netclass.h.
Referenced by GetLineStyle(), GetLineStyleOpt(), HasLineStyle(), Serialize(), SetLineStyle(), and SetLineStyle().
|
protected |
Definition at line 295 of file netclass.h.
Referenced by GetLineStyleParent(), and SetLineStyleParent().
|
protected |
Name of the net class.
Definition at line 255 of file netclass.h.
Referenced by Deserialize(), GetHumanReadableName(), GetName(), Serialize(), and SetName().
|
protected |
Optional PCB color override for this netclass.
Definition at line 277 of file netclass.h.
Referenced by Deserialize(), GetPcbColor(), HasPcbColor(), Serialize(), and SetPcbColor().
|
protected |
Definition at line 291 of file netclass.h.
Referenced by GetPcbColorParent(), and SetPcbColorParent().
|
protected |
The priority for multiple netclass resolution.
Definition at line 256 of file netclass.h.
Referenced by Deserialize(), GetPriority(), Serialize(), and SetPriority().
|
protected |
Definition at line 274 of file netclass.h.
Referenced by Deserialize(), GetSchematicColor(), Serialize(), and SetSchematicColor().
|
protected |
Definition at line 294 of file netclass.h.
Referenced by GetSchematicColorParent(), and SetSchematicColorParent().
|
protected |
track width used to route nets
Definition at line 261 of file netclass.h.
Referenced by Deserialize(), GetTrackWidth(), GetTrackWidthOpt(), HasTrackWidth(), Serialize(), SetTrackWidth(), and SetTrackWidth().
|
protected |
Definition at line 283 of file netclass.h.
Referenced by GetTrackWidthParent(), and SetTrackWidthParent().
|
protected |
microvia diameter
Definition at line 265 of file netclass.h.
Referenced by GetuViaDiameter(), GetuViaDiameterOpt(), HasuViaDiameter(), SetuViaDiameter(), and SetuViaDiameter().
|
protected |
Definition at line 286 of file netclass.h.
Referenced by GetuViaDiameterParent(), and SetuViaDiameterParent().
|
protected |
microvia drill hole diameter
Definition at line 266 of file netclass.h.
Referenced by GetuViaDrill(), GetuViaDrillOpt(), HasuViaDrill(), SetuViaDrill(), and SetuViaDrill().
|
protected |
Definition at line 287 of file netclass.h.
Referenced by GetuViaDrillParent(), and SetuViaDrillParent().
|
protected |
via diameter
Definition at line 262 of file netclass.h.
Referenced by Deserialize(), GetViaDiameter(), GetViaDiameterOpt(), HasViaDiameter(), Serialize(), SetViaDiameter(), and SetViaDiameter().
|
protected |
Definition at line 284 of file netclass.h.
Referenced by GetViaDiameterParent(), and SetViaDiameterParent().
|
protected |
via drill hole diameter
Definition at line 263 of file netclass.h.
Referenced by Deserialize(), GetViaDrill(), GetViaDrillOpt(), HasViaDrill(), Serialize(), SetViaDrill(), and SetViaDrill().
|
protected |
Definition at line 285 of file netclass.h.
Referenced by GetViaDrillParent(), and SetViaDrillParent().
|
protected |
Definition at line 272 of file netclass.h.
Referenced by Deserialize(), GetWireWidth(), GetWireWidthOpt(), HasWireWidth(), Serialize(), SetWireWidth(), and SetWireWidth().
|
protected |
Definition at line 292 of file netclass.h.
Referenced by GetWireWidthParent(), and SetWireWidthParent().