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

The SI_NetSegment class. More...

#include <si_netsegment.h>

+ Inheritance diagram for SI_NetSegment:
+ Collaboration diagram for SI_NetSegment:

Signals

void netPointsAndNetLinesAdded (const QList< SI_NetPoint * > &netPoints, const QList< SI_NetLine * > &netLines)
 
void netPointsAndNetLinesRemoved (const QList< SI_NetPoint * > &netPoints, const QList< SI_NetLine * > &netLines)
 
void netLabelAdded (SI_NetLabel &netLabel)
 
void netLabelRemoved (SI_NetLabel &netLabel)
 

Public Member Functions

 SI_NetSegment ()=delete
 
 SI_NetSegment (const SI_NetSegment &other)=delete
 
 SI_NetSegment (Schematic &schematic, const Uuid &uuid, NetSignal &signal)
 
 ~SI_NetSegment () noexcept
 
const UuidgetUuid () const noexcept
 
NetSignalgetNetSignal () const noexcept
 
bool isUsed () const noexcept
 
QSet< QString > getForcedNetNames () const noexcept
 
QString getForcedNetName () const noexcept
 
Point calcNearestPoint (const Point &p) const noexcept
 
QSet< SI_SymbolPin * > getAllConnectedPins () const noexcept
 
void setNetSignal (NetSignal &netsignal)
 
const QMap< Uuid, SI_NetPoint * > & getNetPoints () const noexcept
 
const QMap< Uuid, SI_NetLine * > & getNetLines () const noexcept
 
void addNetPointsAndNetLines (const QList< SI_NetPoint * > &netpoints, const QList< SI_NetLine * > &netlines)
 
void removeNetPointsAndNetLines (const QList< SI_NetPoint * > &netpoints, const QList< SI_NetLine * > &netlines)
 
const QMap< Uuid, SI_NetLabel * > & getNetLabels () const noexcept
 
void addNetLabel (SI_NetLabel &netlabel)
 
void removeNetLabel (SI_NetLabel &netlabel)
 
void updateAllNetLabelAnchors () noexcept
 
void addToSchematic () override
 
void removeFromSchematic () override
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node.
 
SI_NetSegmentoperator= (const SI_NetSegment &rhs)=delete
 
bool operator== (const SI_NetSegment &rhs) noexcept
 
bool operator!= (const SI_NetSegment &rhs) noexcept
 
- Public Member Functions inherited from SI_Base
 SI_Base ()=delete
 
 SI_Base (const SI_Base &other)=delete
 
 SI_Base (Schematic &schematic) noexcept
 
virtual ~SI_Base () noexcept
 
ProjectgetProject () const noexcept
 
CircuitgetCircuit () const noexcept
 
SchematicgetSchematic () const noexcept
 
virtual bool isAddedToSchematic () const noexcept
 
SI_Baseoperator= (const SI_Base &rhs)=delete
 

Private Member Functions

bool checkAttributesValidity () const noexcept
 
bool areAllNetPointsConnectedTogether () const noexcept
 
void findAllConnectedNetPoints (const SI_NetLineAnchor &p, QSet< const SI_SymbolPin * > &pins, QSet< const SI_NetPoint * > &points) const noexcept
 

Private Attributes

Uuid mUuid
 
NetSignalmNetSignal
 
QMap< Uuid, SI_NetPoint * > mNetPoints
 
QMap< Uuid, SI_NetLine * > mNetLines
 
QMap< Uuid, SI_NetLabel * > mNetLabels
 

Additional Inherited Members

- Protected Attributes inherited from SI_Base
SchematicmSchematic
 

Detailed Description

The SI_NetSegment class.

Todo:
Do not allow to create empty netsegments!

Constructor & Destructor Documentation

◆ SI_NetSegment() [1/3]

SI_NetSegment ( )
delete

◆ SI_NetSegment() [2/3]

SI_NetSegment ( const SI_NetSegment other)
delete

◆ SI_NetSegment() [3/3]

SI_NetSegment ( Schematic schematic,
const Uuid uuid,
NetSignal signal 
)

◆ ~SI_NetSegment()

~SI_NetSegment ( )
noexcept

Member Function Documentation

◆ getUuid()

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

◆ getNetSignal()

NetSignal & getNetSignal ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ isUsed()

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

◆ getForcedNetNames()

QSet< QString > getForcedNetNames ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getForcedNetName()

QString getForcedNetName ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ calcNearestPoint()

Point calcNearestPoint ( const Point p) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAllConnectedPins()

QSet< SI_SymbolPin * > getAllConnectedPins ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setNetSignal()

void setNetSignal ( NetSignal netsignal)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getNetPoints()

const QMap< Uuid, SI_NetPoint * > & getNetPoints ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getNetLines()

const QMap< Uuid, SI_NetLine * > & getNetLines ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ addNetPointsAndNetLines()

void addNetPointsAndNetLines ( const QList< SI_NetPoint * > &  netpoints,
const QList< SI_NetLine * > &  netlines 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeNetPointsAndNetLines()

void removeNetPointsAndNetLines ( const QList< SI_NetPoint * > &  netpoints,
const QList< SI_NetLine * > &  netlines 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getNetLabels()

const QMap< Uuid, SI_NetLabel * > & getNetLabels ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ addNetLabel()

void addNetLabel ( SI_NetLabel netlabel)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeNetLabel()

void removeNetLabel ( SI_NetLabel netlabel)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateAllNetLabelAnchors()

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

◆ addToSchematic()

void addToSchematic ( )
overridevirtual

Reimplemented from SI_Base.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeFromSchematic()

void removeFromSchematic ( )
overridevirtual

Reimplemented from SI_Base.

+ 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=()

SI_NetSegment & operator= ( const SI_NetSegment rhs)
delete

◆ operator==()

bool operator== ( const SI_NetSegment rhs)
inlinenoexcept

◆ operator!=()

bool operator!= ( const SI_NetSegment rhs)
inlinenoexcept

◆ netPointsAndNetLinesAdded

void netPointsAndNetLinesAdded ( const QList< SI_NetPoint * > &  netPoints,
const QList< SI_NetLine * > &  netLines 
)
signal
+ Here is the caller graph for this function:

◆ netPointsAndNetLinesRemoved

void netPointsAndNetLinesRemoved ( const QList< SI_NetPoint * > &  netPoints,
const QList< SI_NetLine * > &  netLines 
)
signal
+ Here is the caller graph for this function:

◆ netLabelAdded

void netLabelAdded ( SI_NetLabel netLabel)
signal
+ Here is the caller graph for this function:

◆ netLabelRemoved

void netLabelRemoved ( SI_NetLabel netLabel)
signal
+ Here is the caller graph for this function:

◆ checkAttributesValidity()

bool checkAttributesValidity ( ) const
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ areAllNetPointsConnectedTogether()

bool areAllNetPointsConnectedTogether ( ) const
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findAllConnectedNetPoints()

void findAllConnectedNetPoints ( const SI_NetLineAnchor p,
QSet< const SI_SymbolPin * > &  pins,
QSet< const SI_NetPoint * > &  points 
) const
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mUuid

Uuid mUuid
private

◆ mNetSignal

NetSignal* mNetSignal
private

◆ mNetPoints

QMap<Uuid, SI_NetPoint*> mNetPoints
private

◆ mNetLines

QMap<Uuid, SI_NetLine*> mNetLines
private

◆ mNetLabels

QMap<Uuid, SI_NetLabel*> mNetLabels
private

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