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) | |
Create a NETCLASS instance with aName. More... | |
~NETCLASS () | |
wxString | GetClass () const |
const wxString | GetName () const |
void | SetName (const wxString &aName) |
const wxString & | GetDescription () const |
void | SetDescription (const wxString &aDesc) |
bool | HasClearance () const |
int | GetClearance () const |
void | SetClearance (int aClearance) |
bool | HasTrackWidth () const |
int | GetTrackWidth () const |
void | SetTrackWidth (int aWidth) |
bool | HasViaDiameter () const |
int | GetViaDiameter () const |
void | SetViaDiameter (int aDia) |
int | HasViaDrill () const |
int | GetViaDrill () const |
void | SetViaDrill (int aSize) |
bool | HasuViaDiameter () const |
int | GetuViaDiameter () const |
void | SetuViaDiameter (int aSize) |
bool | HasuViaDrill () const |
int | GetuViaDrill () const |
void | SetuViaDrill (int aSize) |
bool | HasDiffPairWidth () const |
int | GetDiffPairWidth () const |
void | SetDiffPairWidth (int aSize) |
bool | HasDiffPairGap () const |
int | GetDiffPairGap () const |
void | SetDiffPairGap (int aSize) |
bool | HasDiffPairViaGap () const |
int | GetDiffPairViaGap () const |
void | SetDiffPairViaGap (int aSize) |
COLOR4D | GetPcbColor () const |
void | SetPcbColor (const COLOR4D &aColor) |
int | GetWireWidth () const |
void | SetWireWidth (int aWidth) |
int | GetBusWidth () const |
void | SetBusWidth (int aWidth) |
COLOR4D | GetSchematicColor () const |
void | SetSchematicColor (COLOR4D aColor) |
int | GetLineStyle () const |
void | SetLineStyle (int aStyle) |
Static Public Attributes | |
static const char | Default [] = "Default" |
the name of the default NETCLASS More... | |
Protected Attributes | |
wxString | m_Name |
Name of the net class. More... | |
wxString | m_Description |
what this NETCLASS is for. More... | |
std::optional< int > | m_Clearance |
clearance when routing More... | |
std::optional< int > | m_TrackWidth |
track width used to route NETs in this NETCLASS More... | |
std::optional< int > | m_ViaDia |
via diameter More... | |
std::optional< int > | m_ViaDrill |
via drill hole diameter More... | |
std::optional< int > | m_uViaDia |
microvia diameter More... | |
std::optional< int > | m_uViaDrill |
microvia drill hole diameter More... | |
std::optional< int > | m_diffPairWidth |
std::optional< int > | m_diffPairGap |
std::optional< int > | m_diffPairViaGap |
int | m_wireWidth |
int | m_busWidth |
COLOR4D | m_schematicColor |
int | m_lineStyle |
COLOR4D | m_PcbColor |
Optional color override for this netclass (PCB context) More... | |
A collection of nets and the parameters used to route or test these nets.
Definition at line 46 of file netclass.h.
NETCLASS::NETCLASS | ( | const wxString & | aName | ) |
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. |
Definition at line 50 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, SetBusWidth(), SetClearance(), SetDiffPairGap(), SetDiffPairViaGap(), SetDiffPairWidth(), SetLineStyle(), SetSchematicColor(), SetTrackWidth(), SetuViaDiameter(), SetuViaDrill(), SetViaDiameter(), SetViaDrill(), and SetWireWidth().
NETCLASS::~NETCLASS | ( | ) |
Definition at line 74 of file netclass.cpp.
|
inline |
Definition at line 113 of file netclass.h.
|
inline |
Definition at line 60 of file netclass.h.
|
inline |
Definition at line 72 of file netclass.h.
|
inline |
Definition at line 68 of file netclass.h.
|
inline |
Definition at line 100 of file netclass.h.
|
inline |
Definition at line 104 of file netclass.h.
|
inline |
Definition at line 96 of file netclass.h.
|
inline |
Definition at line 119 of file netclass.h.
|
inline |
Definition at line 65 of file netclass.h.
Referenced by PCBEXPR_NETCLASS_VALUE::AsString(), BOARD_INSPECTION_TOOL::getItemDescription(), PCB_TUNING_PATTERN::GetMsgPanelInfo(), BOARD_CONNECTED_ITEM::GetNetClassName(), NETS_SEARCH_HANDLER::getResultCell(), RATSNEST_SEARCH_HANDLER::getResultCell(), DIALOG_GLOBAL_EDIT_TEARDROPS::TransferDataToWindow(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::TransferDataToWindow(), ROUTER_TOOL::UpdateMessagePanel(), DIALOG_GLOBAL_EDIT_TEARDROPS::visitItem(), and DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::visitItem().
|
inline |
Definition at line 107 of file netclass.h.
|
inline |
Definition at line 116 of file netclass.h.
|
inline |
Definition at line 76 of file netclass.h.
Referenced by EAGLE_PLUGIN::LoadBoard().
|
inline |
Definition at line 88 of file netclass.h.
Referenced by EDIT_TOOL::ChangeTrackWidth(), DRAWING_TOOL::DrawVia(), and PCB_EDIT_FRAME::SetTrackSegmentWidth().
|
inline |
Definition at line 92 of file netclass.h.
Referenced by EDIT_TOOL::ChangeTrackWidth(), DRAWING_TOOL::DrawVia(), PCB_VIA::GetDrillValue(), and PCB_EDIT_FRAME::SetTrackSegmentWidth().
|
inline |
Definition at line 80 of file netclass.h.
Referenced by EAGLE_PLUGIN::LoadBoard().
|
inline |
Definition at line 84 of file netclass.h.
Referenced by PCB_VIA::GetDrillValue(), and EAGLE_PLUGIN::LoadBoard().
|
inline |
Definition at line 110 of file netclass.h.
|
inline |
Definition at line 71 of file netclass.h.
|
inline |
Definition at line 99 of file netclass.h.
|
inline |
Definition at line 103 of file netclass.h.
|
inline |
Definition at line 95 of file netclass.h.
|
inline |
Definition at line 75 of file netclass.h.
|
inline |
Definition at line 87 of file netclass.h.
|
inline |
Definition at line 91 of file netclass.h.
|
inline |
Definition at line 79 of file netclass.h.
|
inline |
Definition at line 83 of file netclass.h.
|
inline |
Definition at line 114 of file netclass.h.
Referenced by NETCLASS().
|
inline |
Definition at line 73 of file netclass.h.
Referenced by NETCLASS().
|
inline |
Definition at line 69 of file netclass.h.
|
inline |
Definition at line 101 of file netclass.h.
Referenced by NETCLASS().
|
inline |
Definition at line 105 of file netclass.h.
Referenced by NETCLASS().
|
inline |
Definition at line 97 of file netclass.h.
Referenced by NETCLASS().
|
inline |
Definition at line 120 of file netclass.h.
Referenced by NETCLASS().
|
inline |
Definition at line 66 of file netclass.h.
|
inline |
Definition at line 108 of file netclass.h.
|
inline |
Definition at line 117 of file netclass.h.
Referenced by NETCLASS().
|
inline |
Definition at line 77 of file netclass.h.
Referenced by NETCLASS().
|
inline |
Definition at line 89 of file netclass.h.
Referenced by NETCLASS().
|
inline |
Definition at line 93 of file netclass.h.
Referenced by NETCLASS().
|
inline |
Definition at line 81 of file netclass.h.
Referenced by NETCLASS().
|
inline |
Definition at line 85 of file netclass.h.
Referenced by NETCLASS().
|
inline |
Definition at line 111 of file netclass.h.
Referenced by NETCLASS().
|
static |
the name of the default NETCLASS
Definition at line 49 of file netclass.h.
Referenced by BOARD::BOARD(), CONNECTIVITY_DATA::Build(), DIALOG_ASSIGN_NETCLASS::DIALOG_ASSIGN_NETCLASS(), DSN::SPECCTRA_DB::exportNETCLASS(), NET_SETTINGS::NET_SETTINGS(), APPEARANCE_CONTROLS::onNetclassContextMenu(), and PANEL_SETUP_NETCLASSES::OnRemoveNetclassClick().
|
protected |
Definition at line 142 of file netclass.h.
|
protected |
clearance when routing
Definition at line 128 of file netclass.h.
|
protected |
what this NETCLASS is for.
Definition at line 124 of file netclass.h.
|
protected |
Definition at line 138 of file netclass.h.
|
protected |
Definition at line 139 of file netclass.h.
|
protected |
Definition at line 137 of file netclass.h.
|
protected |
Definition at line 144 of file netclass.h.
|
protected |
Name of the net class.
Definition at line 123 of file netclass.h.
|
protected |
Optional color override for this netclass (PCB context)
Definition at line 146 of file netclass.h.
|
protected |
Definition at line 143 of file netclass.h.
|
protected |
track width used to route NETs in this NETCLASS
Definition at line 130 of file netclass.h.
|
protected |
microvia diameter
Definition at line 134 of file netclass.h.
|
protected |
microvia drill hole diameter
Definition at line 135 of file netclass.h.
|
protected |
via diameter
Definition at line 131 of file netclass.h.
|
protected |
via drill hole diameter
Definition at line 132 of file netclass.h.
|
protected |
Definition at line 141 of file netclass.h.