LibrePCB Developers Documentation
|
The BI_NetSegment class. More...
#include <bi_netsegment.h>
Signals | |
void | elementsAdded (const QList< BI_Via * > &vias, const QList< BI_NetPoint * > &netPoints, const QList< BI_NetLine * > &netLines) |
void | elementsRemoved (const QList< BI_Via * > &vias, const QList< BI_NetPoint * > &netPoints, const QList< BI_NetLine * > &netLines) |
Public Member Functions | |
BI_NetSegment ()=delete | |
BI_NetSegment (const BI_NetSegment &other)=delete | |
BI_NetSegment (Board &board, const Uuid &uuid, NetSignal *signal) | |
~BI_NetSegment () noexcept | |
const Uuid & | getUuid () const noexcept |
NetSignal * | getNetSignal () const noexcept |
QString | getNetNameToDisplay (bool fallback=false) const noexcept |
bool | isUsed () const noexcept |
void | setNetSignal (NetSignal *netsignal) |
const QMap< Uuid, BI_Via * > & | getVias () const noexcept |
const QMap< Uuid, BI_NetPoint * > & | getNetPoints () const noexcept |
const QMap< Uuid, BI_NetLine * > & | getNetLines () const noexcept |
void | addElements (const QList< BI_Via * > &vias, const QList< BI_NetPoint * > &netpoints, const QList< BI_NetLine * > &netlines) |
void | removeElements (const QList< BI_Via * > &vias, const QList< BI_NetPoint * > &netpoints, const QList< BI_NetLine * > &netlines) |
void | addToBoard () override |
void | removeFromBoard () override |
void | serialize (SExpression &root) const |
Serialize into librepcb::SExpression node. More... | |
BI_NetSegment & | operator= (const BI_NetSegment &rhs)=delete |
bool | operator== (const BI_NetSegment &rhs) noexcept |
bool | operator!= (const BI_NetSegment &rhs) noexcept |
Public Member Functions inherited from BI_Base | |
BI_Base ()=delete | |
BI_Base (const BI_Base &other)=delete | |
BI_Base (Board &board) noexcept | |
virtual | ~BI_Base () noexcept |
Project & | getProject () const noexcept |
Circuit & | getCircuit () const noexcept |
Board & | getBoard () const noexcept |
virtual bool | isAddedToBoard () const noexcept |
virtual void | addToBoard () |
virtual void | removeFromBoard () |
BI_Base & | operator= (const BI_Base &rhs)=delete |
Private Member Functions | |
bool | checkAttributesValidity () const noexcept |
bool | areAllNetPointsConnectedTogether () const noexcept |
void | findAllConnectedNetPoints (const BI_NetLineAnchor &p, QSet< const BI_Via * > &vias, QSet< const BI_FootprintPad * > &pads, QSet< const BI_NetPoint * > &points) const noexcept |
Private Attributes | |
Uuid | mUuid |
NetSignal * | mNetSignal |
QMap< Uuid, BI_Via * > | mVias |
QMap< Uuid, BI_NetPoint * > | mNetPoints |
QMap< Uuid, BI_NetLine * > | mNetLines |
Additional Inherited Members | |
Protected Attributes inherited from BI_Base | |
Board & | mBoard |
The BI_NetSegment class.
|
delete |
|
delete |
BI_NetSegment | ( | Board & | board, |
const Uuid & | uuid, | ||
NetSignal * | signal | ||
) |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Get the net signal this segment belongs to
|
noexcept |
Get the net name to display
If connected to a net, the net name is returned. Otherwise a fallback string is returned (either an empty string, or something like "(no net)" in the user's locale). This is just for convenience to avoid implementing exactly the same logic in many different modules.
fallback | If the segment has no net, this determines whether an empty string should be returned (false, default) or something like "(no net)". |
|
noexcept |
void setNetSignal | ( | NetSignal * | netsignal | ) |
|
inlinenoexcept |
|
inlinenoexcept |
void addElements | ( | const QList< BI_Via * > & | vias, |
const QList< BI_NetPoint * > & | netpoints, | ||
const QList< BI_NetLine * > & | netlines | ||
) |
void removeElements | ( | const QList< BI_Via * > & | vias, |
const QList< BI_NetPoint * > & | netpoints, | ||
const QList< BI_NetLine * > & | netlines | ||
) |
|
overridevirtual |
Reimplemented from BI_Base.
|
overridevirtual |
Reimplemented from BI_Base.
void serialize | ( | SExpression & | root | ) | const |
Serialize into librepcb::SExpression node.
root | Root node to serialize into. |
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |
|
signal |
|
signal |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
private |
|
private |
The net signal this segment belongs to
This is nullptr if not connected!
|
private |
|
private |