KiCad PCB EDA Suite
Loading...
Searching...
No Matches
NETCLASS Class Reference

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.
 
 ~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
 

Protected Attributes

wxString m_Name
 Name of the net class.
 
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 in this NETCLASS
 
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
 
int m_wireWidth
 
int m_busWidth
 
COLOR4D m_schematicColor
 
int m_lineStyle
 
COLOR4D m_PcbColor
 Optional color override for this netclass (PCB context)
 

Detailed Description

A collection of nets and the parameters used to route or test these nets.

Definition at line 43 of file netclass.h.

Constructor & Destructor Documentation

◆ NETCLASS()

◆ ~NETCLASS()

NETCLASS::~NETCLASS ( )

Definition at line 74 of file netclass.cpp.

Member Function Documentation

◆ GetBusWidth()

int NETCLASS::GetBusWidth ( ) const
inline

Definition at line 110 of file netclass.h.

◆ GetClass()

wxString NETCLASS::GetClass ( ) const
inline

Definition at line 57 of file netclass.h.

◆ GetClearance()

int NETCLASS::GetClearance ( ) const
inline

Definition at line 69 of file netclass.h.

◆ GetDescription()

const wxString & NETCLASS::GetDescription ( ) const
inline

Definition at line 65 of file netclass.h.

◆ GetDiffPairGap()

int NETCLASS::GetDiffPairGap ( ) const
inline

Definition at line 97 of file netclass.h.

◆ GetDiffPairViaGap()

int NETCLASS::GetDiffPairViaGap ( ) const
inline

Definition at line 101 of file netclass.h.

◆ GetDiffPairWidth()

int NETCLASS::GetDiffPairWidth ( ) const
inline

Definition at line 93 of file netclass.h.

◆ GetLineStyle()

int NETCLASS::GetLineStyle ( ) const
inline

Definition at line 116 of file netclass.h.

◆ GetName()

◆ GetPcbColor()

COLOR4D NETCLASS::GetPcbColor ( ) const
inline

Definition at line 104 of file netclass.h.

◆ GetSchematicColor()

COLOR4D NETCLASS::GetSchematicColor ( ) const
inline

Definition at line 113 of file netclass.h.

◆ GetTrackWidth()

int NETCLASS::GetTrackWidth ( ) const
inline

Definition at line 73 of file netclass.h.

Referenced by PCB_IO_EAGLE::LoadBoard().

◆ GetuViaDiameter()

int NETCLASS::GetuViaDiameter ( ) const
inline

◆ GetuViaDrill()

int NETCLASS::GetuViaDrill ( ) const
inline

◆ GetViaDiameter()

int NETCLASS::GetViaDiameter ( ) const
inline

Definition at line 77 of file netclass.h.

Referenced by PCB_IO_EAGLE::LoadBoard().

◆ GetViaDrill()

int NETCLASS::GetViaDrill ( ) const
inline

Definition at line 81 of file netclass.h.

Referenced by PCB_VIA::GetDrillValue(), and PCB_IO_EAGLE::LoadBoard().

◆ GetWireWidth()

int NETCLASS::GetWireWidth ( ) const
inline

Definition at line 107 of file netclass.h.

◆ HasClearance()

bool NETCLASS::HasClearance ( ) const
inline

Definition at line 68 of file netclass.h.

◆ HasDiffPairGap()

bool NETCLASS::HasDiffPairGap ( ) const
inline

Definition at line 96 of file netclass.h.

◆ HasDiffPairViaGap()

bool NETCLASS::HasDiffPairViaGap ( ) const
inline

Definition at line 100 of file netclass.h.

◆ HasDiffPairWidth()

bool NETCLASS::HasDiffPairWidth ( ) const
inline

Definition at line 92 of file netclass.h.

◆ HasTrackWidth()

bool NETCLASS::HasTrackWidth ( ) const
inline

Definition at line 72 of file netclass.h.

◆ HasuViaDiameter()

bool NETCLASS::HasuViaDiameter ( ) const
inline

Definition at line 84 of file netclass.h.

◆ HasuViaDrill()

bool NETCLASS::HasuViaDrill ( ) const
inline

Definition at line 88 of file netclass.h.

◆ HasViaDiameter()

bool NETCLASS::HasViaDiameter ( ) const
inline

Definition at line 76 of file netclass.h.

◆ HasViaDrill()

int NETCLASS::HasViaDrill ( ) const
inline

Definition at line 80 of file netclass.h.

◆ SetBusWidth()

void NETCLASS::SetBusWidth ( int  aWidth)
inline

Definition at line 111 of file netclass.h.

Referenced by NETCLASS().

◆ SetClearance()

void NETCLASS::SetClearance ( int  aClearance)
inline

Definition at line 70 of file netclass.h.

Referenced by NETCLASS().

◆ SetDescription()

void NETCLASS::SetDescription ( const wxString &  aDesc)
inline

Definition at line 66 of file netclass.h.

◆ SetDiffPairGap()

void NETCLASS::SetDiffPairGap ( int  aSize)
inline

Definition at line 98 of file netclass.h.

Referenced by NETCLASS().

◆ SetDiffPairViaGap()

void NETCLASS::SetDiffPairViaGap ( int  aSize)
inline

Definition at line 102 of file netclass.h.

Referenced by NETCLASS().

◆ SetDiffPairWidth()

void NETCLASS::SetDiffPairWidth ( int  aSize)
inline

Definition at line 94 of file netclass.h.

Referenced by NETCLASS().

◆ SetLineStyle()

void NETCLASS::SetLineStyle ( int  aStyle)
inline

Definition at line 117 of file netclass.h.

Referenced by NETCLASS().

◆ SetName()

void NETCLASS::SetName ( const wxString &  aName)
inline

Definition at line 63 of file netclass.h.

◆ SetPcbColor()

void NETCLASS::SetPcbColor ( const COLOR4D aColor)
inline

Definition at line 105 of file netclass.h.

◆ SetSchematicColor()

void NETCLASS::SetSchematicColor ( COLOR4D  aColor)
inline

Definition at line 114 of file netclass.h.

Referenced by NETCLASS().

◆ SetTrackWidth()

void NETCLASS::SetTrackWidth ( int  aWidth)
inline

Definition at line 74 of file netclass.h.

Referenced by NETCLASS().

◆ SetuViaDiameter()

void NETCLASS::SetuViaDiameter ( int  aSize)
inline

Definition at line 86 of file netclass.h.

Referenced by NETCLASS().

◆ SetuViaDrill()

void NETCLASS::SetuViaDrill ( int  aSize)
inline

Definition at line 90 of file netclass.h.

Referenced by NETCLASS().

◆ SetViaDiameter()

void NETCLASS::SetViaDiameter ( int  aDia)
inline

Definition at line 78 of file netclass.h.

Referenced by NETCLASS().

◆ SetViaDrill()

void NETCLASS::SetViaDrill ( int  aSize)
inline

Definition at line 82 of file netclass.h.

Referenced by NETCLASS().

◆ SetWireWidth()

void NETCLASS::SetWireWidth ( int  aWidth)
inline

Definition at line 108 of file netclass.h.

Referenced by NETCLASS().

Member Data Documentation

◆ Default

◆ m_busWidth

int NETCLASS::m_busWidth
protected

Definition at line 139 of file netclass.h.

◆ m_Clearance

std::optional<int> NETCLASS::m_Clearance
protected

clearance when routing

Definition at line 125 of file netclass.h.

◆ m_Description

wxString NETCLASS::m_Description
protected

what this NETCLASS is for.

Definition at line 121 of file netclass.h.

◆ m_diffPairGap

std::optional<int> NETCLASS::m_diffPairGap
protected

Definition at line 135 of file netclass.h.

◆ m_diffPairViaGap

std::optional<int> NETCLASS::m_diffPairViaGap
protected

Definition at line 136 of file netclass.h.

◆ m_diffPairWidth

std::optional<int> NETCLASS::m_diffPairWidth
protected

Definition at line 134 of file netclass.h.

◆ m_lineStyle

int NETCLASS::m_lineStyle
protected

Definition at line 141 of file netclass.h.

◆ m_Name

wxString NETCLASS::m_Name
protected

Name of the net class.

Definition at line 120 of file netclass.h.

◆ m_PcbColor

COLOR4D NETCLASS::m_PcbColor
protected

Optional color override for this netclass (PCB context)

Definition at line 143 of file netclass.h.

◆ m_schematicColor

COLOR4D NETCLASS::m_schematicColor
protected

Definition at line 140 of file netclass.h.

◆ m_TrackWidth

std::optional<int> NETCLASS::m_TrackWidth
protected

track width used to route NETs in this NETCLASS

Definition at line 127 of file netclass.h.

◆ m_uViaDia

std::optional<int> NETCLASS::m_uViaDia
protected

microvia diameter

Definition at line 131 of file netclass.h.

◆ m_uViaDrill

std::optional<int> NETCLASS::m_uViaDrill
protected

microvia drill hole diameter

Definition at line 132 of file netclass.h.

◆ m_ViaDia

std::optional<int> NETCLASS::m_ViaDia
protected

via diameter

Definition at line 128 of file netclass.h.

◆ m_ViaDrill

std::optional<int> NETCLASS::m_ViaDrill
protected

via drill hole diameter

Definition at line 129 of file netclass.h.

◆ m_wireWidth

int NETCLASS::m_wireWidth
protected

Definition at line 138 of file netclass.h.


The documentation for this class was generated from the following files: