LibrePCB Developers Documentation
Loading...
Searching...
No Matches
NetClass Class Referencefinal

The NetClass class. More...

#include <netclass.h>

Inherits QObject.

+ Collaboration diagram for NetClass:

Signals

void designRulesModified ()
 

Public Member Functions

 NetClass ()=delete
 
 NetClass (const NetClass &other)=delete
 
 NetClass (Circuit &circuit, const Uuid &uuid, const ElementName &name)
 
 NetClass (Circuit &circuit, const SExpression &node)
 
 ~NetClass () noexcept
 
CircuitgetCircuit () const noexcept
 
const UuidgetUuid () const noexcept
 
const ElementNamegetName () const noexcept
 
const std::optional< PositiveLength > & getDefaultTraceWidth () const noexcept
 
const std::optional< PositiveLength > & getDefaultViaDrill () const noexcept
 
const UnsignedLengthgetMinCopperCopperClearance () const noexcept
 
const UnsignedLengthgetMinCopperWidth () const noexcept
 
const UnsignedLengthgetMinViaDrillDiameter () const noexcept
 
int getNetSignalCount () const noexcept
 
bool isUsed () const noexcept
 
void setName (const ElementName &name) noexcept
 
void setDefaultTraceWidth (const std::optional< PositiveLength > &value) noexcept
 
void setDefaultViaDrill (const std::optional< PositiveLength > &value) noexcept
 
void setMinCopperCopperClearance (const UnsignedLength &value) noexcept
 
void setMinCopperWidth (const UnsignedLength &value) noexcept
 
void setMinViaDrillDiameter (const UnsignedLength &value) noexcept
 
void addToCircuit ()
 
void removeFromCircuit ()
 
void registerNetSignal (NetSignal &signal)
 
void unregisterNetSignal (NetSignal &signal)
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node.
 
NetClassoperator= (const NetClass &rhs)=delete
 

Private Attributes

CircuitmCircuit
 
bool mIsAddedToCircuit
 
Uuid mUuid
 
ElementName mName
 
std::optional< PositiveLengthmDefaultTraceWidth
 
std::optional< PositiveLengthmDefaultViaDrill
 
UnsignedLength mMinCopperCopperClearance
 
UnsignedLength mMinCopperWidth
 
UnsignedLength mMinViaDrillDiameter
 
QHash< Uuid, NetSignal * > mRegisteredNetSignals
 all registered netsignals
 

Detailed Description

The NetClass class.

Constructor & Destructor Documentation

◆ NetClass() [1/4]

NetClass ( )
delete

◆ NetClass() [2/4]

NetClass ( const NetClass other)
delete

◆ NetClass() [3/4]

NetClass ( Circuit circuit,
const Uuid uuid,
const ElementName name 
)
explicit

◆ NetClass() [4/4]

NetClass ( Circuit circuit,
const SExpression node 
)
explicit

◆ ~NetClass()

~NetClass ( )
noexcept
+ Here is the call graph for this function:

Member Function Documentation

◆ getCircuit()

Circuit & getCircuit ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getUuid()

const Uuid & getUuid ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getName()

const ElementName & getName ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getDefaultTraceWidth()

const std::optional< PositiveLength > & getDefaultTraceWidth ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getDefaultViaDrill()

const std::optional< PositiveLength > & getDefaultViaDrill ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getMinCopperCopperClearance()

const UnsignedLength & getMinCopperCopperClearance ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getMinCopperWidth()

const UnsignedLength & getMinCopperWidth ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getMinViaDrillDiameter()

const UnsignedLength & getMinViaDrillDiameter ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getNetSignalCount()

int getNetSignalCount ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ isUsed()

bool isUsed ( ) const
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setName()

void setName ( const ElementName name)
noexcept
+ Here is the caller graph for this function:

◆ setDefaultTraceWidth()

void setDefaultTraceWidth ( const std::optional< PositiveLength > &  value)
noexcept
+ Here is the caller graph for this function:

◆ setDefaultViaDrill()

void setDefaultViaDrill ( const std::optional< PositiveLength > &  value)
noexcept
+ Here is the caller graph for this function:

◆ setMinCopperCopperClearance()

void setMinCopperCopperClearance ( const UnsignedLength value)
noexcept

◆ setMinCopperWidth()

void setMinCopperWidth ( const UnsignedLength value)
noexcept

◆ setMinViaDrillDiameter()

void setMinViaDrillDiameter ( const UnsignedLength value)
noexcept

◆ addToCircuit()

void addToCircuit ( )
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeFromCircuit()

void removeFromCircuit ( )
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ registerNetSignal()

void registerNetSignal ( NetSignal signal)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unregisterNetSignal()

void unregisterNetSignal ( NetSignal signal)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ serialize()

void serialize ( SExpression root) const

Serialize into librepcb::SExpression node.

Parameters
rootRoot node to serialize into.
+ Here is the call graph for this function:

◆ operator=()

NetClass & operator= ( const NetClass rhs)
delete

◆ designRulesModified

void designRulesModified ( )
signal
+ Here is the caller graph for this function:

Member Data Documentation

◆ mCircuit

Circuit& mCircuit
private

◆ mIsAddedToCircuit

bool mIsAddedToCircuit
private

◆ mUuid

Uuid mUuid
private

◆ mName

ElementName mName
private

◆ mDefaultTraceWidth

std::optional<PositiveLength> mDefaultTraceWidth
private

◆ mDefaultViaDrill

std::optional<PositiveLength> mDefaultViaDrill
private

◆ mMinCopperCopperClearance

UnsignedLength mMinCopperCopperClearance
private

◆ mMinCopperWidth

UnsignedLength mMinCopperWidth
private

◆ mMinViaDrillDiameter

UnsignedLength mMinViaDrillDiameter
private

◆ mRegisteredNetSignals

QHash<Uuid, NetSignal*> mRegisteredNetSignals
private

all registered netsignals


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