LibrePCB Developers Documentation
|
The SI_NetSegment class. More...
#include <si_netsegment.h>
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 Uuid & | getUuid () const noexcept |
NetSignal & | getNetSignal () 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_NetSegment & | operator= (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 |
Project & | getProject () const noexcept |
Circuit & | getCircuit () const noexcept |
Schematic & | getSchematic () const noexcept |
virtual bool | isAddedToSchematic () const noexcept |
SI_Base & | operator= (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 |
NetSignal * | mNetSignal |
QMap< Uuid, SI_NetPoint * > | mNetPoints |
QMap< Uuid, SI_NetLine * > | mNetLines |
QMap< Uuid, SI_NetLabel * > | mNetLabels |
Additional Inherited Members | |
Protected Attributes inherited from SI_Base | |
Schematic & | mSchematic |
The SI_NetSegment class.
|
delete |
|
delete |
SI_NetSegment | ( | Schematic & | schematic, |
const Uuid & | uuid, | ||
NetSignal & | signal | ||
) |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
void setNetSignal | ( | NetSignal & | netsignal | ) |
|
inlinenoexcept |
|
inlinenoexcept |
void addNetPointsAndNetLines | ( | const QList< SI_NetPoint * > & | netpoints, |
const QList< SI_NetLine * > & | netlines | ||
) |
void removeNetPointsAndNetLines | ( | const QList< SI_NetPoint * > & | netpoints, |
const QList< SI_NetLine * > & | netlines | ||
) |
|
inlinenoexcept |
void addNetLabel | ( | SI_NetLabel & | netlabel | ) |
void removeNetLabel | ( | SI_NetLabel & | netlabel | ) |
|
noexcept |
|
overridevirtual |
Reimplemented from SI_Base.
|
overridevirtual |
Reimplemented from SI_Base.
void serialize | ( | SExpression & | root | ) | const |
Serialize into librepcb::SExpression node.
root | Root node to serialize into. |
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |
|
signal |
|
signal |
|
signal |
|
signal |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
private |
|
private |
|
private |
|
private |
|
private |